From 49f6d34d1e1b450309ca2aeacd779ebbeec6c8f9 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 10 Feb 2012 17:40:10 +0000 Subject: [PATCH] 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 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) 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.")