Package ganeti :: Module cmdlib :: Class LUClusterDestroy
[hide private]
[frames] | no frames]

Class LUClusterDestroy

source code


Logical unit for destroying the cluster.

Instance Methods [hide private]
 
BuildHooksEnv(self)
Build hooks env.
source code
 
CheckPrereq(self)
Check prerequisites.
source code
 
Exec(self, feedback_fn)
Destroys the cluster.
source code

Inherited from LogicalUnit: CheckArguments, DeclareLocks, ExpandNames, HooksCallBack, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  HPATH = "cluster-destroy"
  HTYPE = "CLUSTER"

Inherited from LogicalUnit: REQ_BGL, ssh

Instance Variables [hide private]

Inherited from LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

BuildHooksEnv(self)

source code 

Build hooks env.

Overrides: LogicalUnit.BuildHooksEnv

CheckPrereq(self)

source code 

Check prerequisites.

This checks whether the cluster is empty.

Any errors are signaled by raising errors.OpPrereqError.

Overrides: LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Destroys the cluster.

Overrides: LogicalUnit.Exec