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

Class OpExportInstance

source code


Export an instance.

For local exports, the export destination is the node name. For remote exports, the export destination is a list of tuples, each consisting of hostname/IP address, port, HMAC and HMAC salt. The HMAC is calculated using the cluster domain secret over the value "${index}:${hostname}:${port}". The destination X509 CA must be a signed certificate.

Instance Methods [hide private]

Inherited from OpCode: Summary, __getstate__

Inherited from BaseOpCode: __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 (private): _all_slots

Class Variables [hide private]
  OP_ID = "OP_BACKUP_EXPORT"
The ID of this opcode.
  OP_DSC_FIELD = "instance_name"
Instance Variables [hide private]
  destination_x509_ca
Destination X509 CA in PEM format (remote export only)
  mode
Export mode (one of constants.EXPORT_MODES)
  target_node
Export destination
  x509_key_name
X509 key to use (remote export only)

Inherited from OpCode: dry_run

Properties [hide private]

Inherited from object: __class__