summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorNicholas Kuechler <nkuechler@gmail.com>2013-02-27 10:02:33 -0600
committerNicholas Kuechler <nkuechler@gmail.com>2013-02-27 17:01:01 -0600
commit2db1a0f62b797acdb8506e7e36fbced0828dd796 (patch)
tree70a616309b57f70ef2fe777e5c129cdb1406e528 /nova/exception.py
parent907594ec28193a1ba9fdaf7420b153433e7ea47b (diff)
downloadnova-2db1a0f62b797acdb8506e7e36fbced0828dd796.tar.gz
nova-2db1a0f62b797acdb8506e7e36fbced0828dd796.tar.xz
nova-2db1a0f62b797acdb8506e7e36fbced0828dd796.zip
Adds retry on upload_vhd for xapi glance plugin
Add a retry for the xapi glance plugin to handle transient issues when uploading the vhd. An example issue we're seeing is a connection timeout: ['XENAPI_PLUGIN_FAILURE', 'upload_vhd', 'error', "(110, 'Connection timed out')"] To work around transient issues such as a connection timeout, we should retry based on glance_num_retries before outright failing. Change-Id: Ice6fdd3dd39ef40e5997d69209aaafa66bff5d6e Fixes: bug #1134493
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index cad1c5c02..d1037aabc 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1080,6 +1080,10 @@ class CouldNotFetchImage(NovaException):
message = _("Could not fetch image %(image_id)s")
+class CouldNotUploadImage(NovaException):
+ message = _("Could not upload image %(image_id)s")
+
+
class TaskAlreadyRunning(NovaException):
message = _("Task %(task_name)s is already running on host %(host)s")