class documentation

class LUNodeRemove(LogicalUnit):

View In Hierarchy

Logical unit for removing a node.

Method BuildHooksEnv Build hooks env.
Method BuildHooksNodes Build hooks nodes.
Method CheckPrereq Check prerequisites.
Method Exec Removes the node from the cluster.
Constant HPATH Undocumented
Instance Variable node Undocumented

Inherited from LogicalUnit:

Method __init__ Constructor for LogicalUnit.
Method AssertReleasedLocks Raise AssertionError if the LU holds some locks of the given level.
Method CheckArguments Check syntactic validity for the opcode arguments.
Method DeclareLocks Declare LU locking needs for a level
Method ExpandNames Expand names for this LU.
Method HooksCallBack Notify the LU about the results of its hooks.
Method owned_locks Return the list of locks owned by the LU at a given level.
Method PreparePostHookNodes Extend list of nodes to run the post LU hook.
Method PrepareRetry Prepare the LU to run again.
Method release_request Return a request to release the specified locks of the given level.
Method WConfdClient Undocumented
Constant HTYPE Undocumented
Constant REQ_BGL Undocumented
Instance Variable add_locks Undocumented
Instance Variable cfg Undocumented
Instance Variable dont_collate_locks Undocumented
Instance Variable dry_run_result the value (if any) that will be returned to the caller in dry-run mode (signalled by opcode dry_run parameter)
Instance Variable Log Undocumented
Instance Variable LogInfo Undocumented
Instance Variable LogStep Undocumented
Instance Variable LogWarning Undocumented
Instance Variable needed_locks Undocumented
Instance Variable op Undocumented
Instance Variable opportunistic_locks Undocumented
Instance Variable opportunistic_locks_count Undocumented
Instance Variable proc Undocumented
Instance Variable recalculate_locks Undocumented
Instance Variable rpc Undocumented
Instance Variable share_locks Undocumented
Instance Variable tasklets Undocumented
Instance Variable wconfd Undocumented
Instance Variable wconfdcontext Undocumented
Instance Variable wconfdlocks Undocumented
Method _ExpandAndLockInstance Helper function to expand and lock an instance.
Method _LockInstancesNodes Helper function to declare instances' nodes for locking.
def BuildHooksEnv(self):
def BuildHooksNodes(self):

Build hooks nodes.

This doesn't run on the target node in the pre phase as a failed node would then be impossible to remove.

def CheckPrereq(self):

Check prerequisites.

This checks:

  • the node exists in the configuration
  • it does not have primary or secondary instances
  • it's not the master

Any errors are signaled by raising errors.OpPrereqError.

def Exec(self, feedback_fn):

Removes the node from the cluster.

HPATH: str =

Undocumented

Value
'node-remove'
node =

Undocumented