Package ganeti :: Module opcodes :: Class OpInstanceCreate
[hide private]
[frames] | no frames]

Class OpInstanceCreate

source code


Create an instance.

Nested Classes [hide private]

Inherited from BaseOpCode: __metaclass__

Instance Methods [hide private]

Inherited from OpCode: Summary, __getstate__

Inherited from BaseOpCode: Validate, __init__, __setstate__

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

Class Methods [hide private]

Inherited from OpCode: LoadOpCode

Inherited from BaseOpCode: GetAllParams

Inherited from BaseOpCode (private): _all_slots

Class Variables [hide private]
  OP_DSC_FIELD = "instance_name"
The name of a field whose value will be included in the string returned by Summary(); see the docstring of that method for details).
  OP_PARAMS = [_PInstanceName, ("beparams", ht.EmptyDict, ht.TDi...
List of opcode attributes, the default values they should get if not already defined, and types they must match.

Inherited from OpCode: OP_ID, WITH_LU

Instance Variables [hide private]
  instance_name
Instance name
  mode
Instance creation mode (one of constants.INSTANCE_CREATE_MODES)
  source_handshake
Signed handshake from source (remote import only)
  source_instance_name
Previous name of instance (remote import only)
  source_shutdown_timeout
Shutdown timeout used for source instance (remote import only)
  source_x509_ca
Source X509 CA in PEM format (remote import only)

Inherited from OpCode: dry_run, priority

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

OP_PARAMS

List of opcode attributes, the default values they should get if not already defined, and types they must match.
Value:
[_PInstanceName, ("beparams", ht.EmptyDict, ht.TDict), ("disks", ht.No\
Default, ht.TListOf(ht.TDict)), ("disk_template", ht.NoDefault, _Check\
DiskTemplate), ("file_driver", None, ht.TOr(ht.TNone, ht.TElemOf(const\
ants.FILE_DRIVER))), ("file_storage_dir", None, ht.TMaybeString), ("fo\
rce_variant", False, ht.TBool), ("hvparams", ht.EmptyDict, ht.TDict), \
("hypervisor", None, ht.TMaybeString), ("iallocator", None, ht.TMaybeS\
tring), ("identify_defaults", False, ht.TBool), ("ip_check", True, ht.\
TBool), ("mode", ht.NoDefault, ht.TElemOf(constants.INSTANCE_CREATE_MO\
...