On Tue, Sep 23, 2014 at 12:00:20PM +0200, 'Klaus Aehlig' via ganeti-devel wrote:
LUs that temporarily run out of resources, most notably
instance creation with opportunistic locking, may opt
into retrying. If they don't do so, this is the exception
to be thrown on a retry-preparation attempt. Having a
custom exception rather than throwing NotImplementedError
pleases lint.
Signed-off-by: Klaus Aehlig <[email protected]>
---
lib/errors.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/errors.py b/lib/errors.py
index 28cefa3..03bb862 100644
--- a/lib/errors.py
+++ b/lib/errors.py
@@ -202,6 +202,12 @@ class OpResultError(GenericError):
"""
+class OpRetryNotSupportedError(GenericError):
+ """This opcode does not support retries
+
+ """
+
+
class DeviceCreationError(GenericError):
"""Error during the creation of a device.
--
2.1.0.rc2.206.gedb03e5
LGTM