class documentation
class _VerifyErrors(object):
Known subclasses: ganeti.cmdlib.cluster.verify.LUClusterVerifyConfig, ganeti.cmdlib.cluster.verify.LUClusterVerifyGroup
Mix-in for cluster/group verify LUs.
It provides _Error and _ErrorIf, and updates the self.bad boolean. (Expects self.op and self._feedback_fn to be available.)
| Instance Variable | bad |
Undocumented |
| Method | _ |
Log an error message if the passed condition is True. |
| Method | _ |
Log an error message if the passed condition is True. |
| Method | _ |
Log a single error message. |
| Method | _ |
Format multiple error messages. |
overridden in
ganeti.cmdlib.cluster.verify.LUClusterVerifyConfig, ganeti.cmdlib.cluster.verify.LUClusterVerifyGroupUndocumented
Format multiple error messages.
Based on the opcode's error_codes parameter, either format a parseable error code, or a simpler error string.
This must be called only from Exec and functions called from Exec.
| Parameters | |
| error | triplet describing the error (object_type, code, description) |
| object | name of object (instance, node ..) the error relates to |
| message | body of error messages |
| log | log message type (WARNING, ERROR ..) |