-#!/usr/bin/python
+#
#
# Copyright (C) 2006, 2007 Google Inc.
This is raised when an OS exists on the master (or is otherwise
requested to the code) but not on the target node.
- This exception has two arguments:
+ This exception has three arguments:
- the name of the os
+ - the source directory, if any
- the reason why we consider this an invalid OS (text of error message)
"""
"""
+class OpRetryError(OpExecError):
+ """Error during OpCode execution, action can be retried.
+
+ """
+
+
class OpCodeUnknown(GenericError):
"""Unknown opcode submitted.
"""
+class ResolverError(GenericError):
+ """Host name cannot be resolved.
+
+ This is not a normal situation for Ganeti, as we rely on having a
+ working resolver.
+
+ The non-resolvable hostname is available as the first element of the
+ args tuple; the other two elements of the tuple are the first two
+ args of the socket.gaierror exception (error code and description).
+
+ """
+
+
class HooksFailure(GenericError):
"""A generic hook failure.
class SshKeyError(GenericError):
"""Invalid SSH key.
"""
+
+
+class TagError(GenericError):
+ """Generic tag error.
+
+ The argument to this exception will show the exact error.
+
+ """