Trees | Indices | Help |
|
---|
|
Fake hypervisor interface.
This can be used for testing the ganeti code without having to have a real virtualisation software installed.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
boolean |
CAN_MIGRATE = True whether this hypervisor can do migration (either live or non-live) |
||
_ROOT_DIR = constants.RUN_GANETI_DIR+ "/fake-hypervisor"
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Get the list of running instances.
|
Get instance properties.
|
Get properties of all instances.
|
Mark the instance as running. This does no checks, which should be done by its callers. |
Mark the instance as running. This does no checks, which should be done by its callers. |
Start an instance. For the fake hypervisor, it just creates a file in the base dir, creating an exception if it already exists. We don't actually handle race conditions properly, since these are *FAKE* instances.
|
Stop an instance. For the fake hypervisor, this just removes the file in the base dir, if it exist, otherwise we raise an exception.
|
Reboot an instance. For the fake hypervisor, this does nothing.
|
Return information about the node. This is just a wrapper over the base GetLinuxNodeInfo method.
|
Return a command for connecting to the console of an instance. |
Verify the hypervisor. For the fake hypervisor, it just checks the existence of the base dir.
|
Fake hypervisor powercycle, just a wrapper over Linux powercycle.
|
Prepare to accept an instance.
|
Migrate an instance.
|
Finalize an instance migration. For the fake hv, this just marks the instance up.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:43 2010 | http://epydoc.sourceforge.net |