Script ganeti_watcher :: Class NodeMaintenance
[hide private]
[frames] | no frames]

Class NodeMaintenance


Talks to confd daemons and possible shutdown instances/drbd devices.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
Exec(self)
Check node status versus cluster desired state.

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

Class Methods [hide private]
 
DoMaintenance(cls, role)
Maintain the instance list.
Static Methods [hide private]
 
ShouldRun()
Checks whether node maintenance should run.
 
GetRunningInstances()
Compute list of hypervisor/running instances.
 
GetUsedDRBDs()
Get list of used DRBD minors.
 
ShutdownInstances(inst_running)
Shutdown running instances.
 
ShutdownDRBD(drbd_running)
Shutdown active DRBD devices.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)