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, magic, 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 opcodes_base.BaseOpCode: __metaclass__

Instance Methods [hide private]

Inherited from OpCode: Summary, TinySummary, __getstate__

Inherited from opcodes_base.BaseOpCode: Validate, __setstate__

Inherited from outils.ValidatedSlots: __init__

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 opcodes_base.BaseOpCode: GetAllParams

Inherited from outils.ValidatedSlots: GetAllSlots

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 = [("instance_name", None, ht.TString, "A required i...
List of opcode attributes, the default values they should get if not already defined, and types they must match.
  OP_RESULT = ht.TTupleOf(ht.TBool, ht.TListOf(ht.TBool))
Callable to verify opcode result

Inherited from OpCode: OP_DSC_FORMATTER, 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:
[("instance_name", None, ht.TString, "A required instance name (for si\
ngle-instance LUs)"), ("instance_uuid", None, ht.TMaybe(ht.TNonEmptySt\
ring), "An instance UUID (for single-instance LUs)"), ("shutdown_timeo\
ut", 120, ht.TNonNegative(ht.TInt), "How long to wait for instance to \
shut down"), ("target_node", None, ht.TExportTarget, "Target node (dep\
ends on export mode)"), ("target_node_uuid", None, ht.TMaybe(ht.TNonEm\
ptyString), "Target node UUID (if local export)"), ("shutdown", True, \
ht.TBool, "Whether to shutdown the instance before export"), ("remove_\
...