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

Class Watcher

source code


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
source code
 
Run(self)
Watcher run sequence.
source code
 
CheckDisks(self, notepad)
Check all nodes for restarted ones.
source code
 
CheckInstances(self, notepad)
Make a pass over the list of instances, restarting downed ones.
source code

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.
source code
 
VerifyDisks()
Run gnt-cluster verify-disks.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, opts, notepad)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)