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

Class Watcher


Encapsulate the logic for restarting erroneously halted virtual machines.

The calling program should periodically instantiate me and call Run(). This will traverse the list of instances, and make up to MAXTRIES attempts to restart machines that are down.

Instance Methods [hide private]
 
__init__(self, opts, notepad)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
Run(self)
Watcher run sequence.
 
CheckDisks(self, notepad)
Check all nodes for restarted ones.
 
CheckInstances(self, notepad)
Make a pass over the list of instances, restarting downed ones.

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

Static Methods [hide private]
 
ArchiveJobs(age)
Archive old jobs.
 
VerifyDisks()
Run gnt-cluster verify-disks.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, opts, notepad)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)