class documentation
class LUOobCommand(NoHooksLU):
Logical unit for OOB handling.
| Method | |
Check prerequisites. |
| Method | |
Execute OOB and return result if we expect any. |
| Method | |
Gather locks we need. |
| Constant | REQ |
Undocumented |
| Instance Variable | master |
Undocumented |
| Instance Variable | needed |
Undocumented |
| Instance Variable | nodes |
Undocumented |
| Method | _ |
Checks if the payload is valid. |
| Constant | _SKIP |
Undocumented |
Inherited from NoHooksLU:
| Method | |
Empty BuildHooksEnv for NoHooksLu. |
| Method | |
Empty BuildHooksNodes for NoHooksLU. |
| Method | |
Empty PreparePostHookNodes for NoHooksLU. |
| Constant | HPATH |
Undocumented |
| Constant | HTYPE |
Undocumented |
Inherited from LogicalUnit (via NoHooksLU):
| Method | __init__ |
Constructor for LogicalUnit. |
| Method | |
Raise AssertionError if the LU holds some locks of the given level. |
| Method | |
Check syntactic validity for the opcode arguments. |
| Method | |
Declare LU locking needs for a level |
| Method | |
Notify the LU about the results of its hooks. |
| Method | owned |
Return the list of locks owned by the LU at a given level. |
| Method | |
Prepare the LU to run again. |
| Method | release |
Return a request to release the specified locks of the given level. |
| Method | |
Undocumented |
| Instance Variable | add |
Undocumented |
| Instance Variable | cfg |
Undocumented |
| Instance Variable | dont |
Undocumented |
| Instance Variable | dry |
the value (if any) that will be returned to the caller in dry-run mode (signalled by opcode dry_run parameter) |
| Instance Variable | |
Undocumented |
| Instance Variable | |
Undocumented |
| Instance Variable | |
Undocumented |
| Instance Variable | |
Undocumented |
| Instance Variable | op |
Undocumented |
| Instance Variable | opportunistic |
Undocumented |
| Instance Variable | opportunistic |
Undocumented |
| Instance Variable | proc |
Undocumented |
| Instance Variable | recalculate |
Undocumented |
| Instance Variable | rpc |
Undocumented |
| Instance Variable | share |
Undocumented |
| Instance Variable | tasklets |
Undocumented |
| Instance Variable | wconfd |
Undocumented |
| Instance Variable | wconfdcontext |
Undocumented |
| Instance Variable | wconfdlocks |
Undocumented |
| Method | _ |
Helper function to expand and lock an instance. |
| Method | _ |
Helper function to declare instances' nodes for locking. |
Check prerequisites.
This checks:
- the node exists in the configuration
- OOB is supported
Any errors are signaled by raising errors.OpPrereqError.
Checks if the payload is valid.
| Parameters | |
| result | RPC result |
| Raises | |
errors.OpExecError | If payload is not valid |