Package ganeti :: Package watcher :: Class NodeMaintenance
[hide private]
[frames] | no frames]

Class NodeMaintenance

source code


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
source code
 
Exec(self)
Check node status versus cluster desired state.
source code

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.
source code
Static Methods [hide private]
 
ShouldRun()
Checks whether node maintenance should run.
source code
 
GetRunningInstances()
Compute list of hypervisor/running instances.
source code
 
GetUsedDRBDs()
Get list of used DRBD minors.
source code
 
ShutdownInstances(inst_running)
Shutdown running instances.
source code
 
ShutdownDRBD(drbd_running)
Shutdown active DRBD devices.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)