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

Class OpBackupExport

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.

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, _PShutdownTimeout, ("target_node"...
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]
  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, 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, _PShutdownTimeout, ("target_node", ht.NoDefault, ht.T\
Or(ht.TNonEmptyString, ht.TList)), ("shutdown", True, ht.TBool), ("rem\
ove_instance", False, ht.TBool), ("ignore_remove_failures", False, ht.\
TBool), ("mode", constants.EXPORT_MODE_LOCAL, ht.TElemOf(constants.EXP\
ORT_MODES)), ("x509_key_name", None, ht.TOr(ht.TList, ht.TNone)), ("de\
stination_x509_ca", None, ht.TMaybeString),]