diff options
author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-10 17:40:10 +0000 |
---|---|---|
committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-10 17:40:10 +0000 |
commit | 9974dcbd304a4e092e952e937f4dc78f9500e304 (patch) | |
tree | 6fff782dd8b4dfbc9e583750106f3976e239f425 /nova/exception.py | |
parent | 5ad971810aaedcf5c9efd1b56add0e23921899ae (diff) | |
download | nova-9974dcbd304a4e092e952e937f4dc78f9500e304.tar.gz nova-9974dcbd304a4e092e952e937f4dc78f9500e304.tar.xz nova-9974dcbd304a4e092e952e937f4dc78f9500e304.zip |
Extend glance retries to show() as well
Fixes bug 930245
nova/image/glance.py would already retry get() requests if there was a
connection error, but didn't do so for show() requests.
Change-Id: Ifb1a17da18b7e10ddaaec46e124efcc963681c80
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index c93e2de11..5c4da0f41 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -196,6 +196,10 @@ class VirtualInterfaceMacAddressException(NovaException): "with unique mac address failed") +class GlanceConnectionFailed(NovaException): + message = _("Connection to glance failed") + ": %(reason)s" + + class NotAuthorized(NovaException): message = _("Not authorized.") |