Trees | Indices | Help |
|
---|
|
Create an instance.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
tuple; (list, list) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
NoneType |
|
||
|
|||
dict of string to string |
|
||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
HPATH = "instance-add" hash(x) |
|||
HTYPE = constants.HTYPE_INSTANCE hash(x) |
|||
REQ_BGL = False
|
|
|||
Inherited from |
|
|||
Inherited from |
|
Check arguments.
|
ExpandNames for CreateInstance. Figure out the right locks for instance creation.
|
Build hooks env. This runs on master, primary and secondary nodes of the instance.
|
Build hooks nodes.
|
Reads the export information from disk. It will override the opcode source node and path with the actual information, if these two were not specified before.
|
Use export parameters as defaults. In case the opcode doesn't specify (as in override) some instance parameters, then try to use them from the export information, if that declares them. |
Check prerequisites.
|
Removes degraded disks and instance. It optionally checks whether disks are degraded. If the disks are degraded, they are removed and the instance is also removed from the configuration. If If
|
Run OS scripts If necessary, disks are paused. It handles instance create, import, and remote import.
|
Returns the OS scripts environment for the helper VM
|
Updates the OS parameter 'os-install-package' for an instance. The OS install package is an archive containing an OS definition and a file containing the environment variables needed to run the OS scripts. The OS install package is served by the metadata daemon to the instances, so the OS scripts can run inside the virtualized environment.
|
Runs the OS scripts inside a safe virtualized environment. The virtualized environment reuses the instance and temporarily creates a disk onto which the image of the helper VM is dumped. The temporary disk is used to boot the helper VM. The OS scripts are passed to the helper VM through the metadata daemon and the OS install package.
|
Create and add the instance to the cluster.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jan 12 17:28:43 2016 | http://epydoc.sourceforge.net |