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 BaseOpCode: __metaclass__

Instance Methods [hide private]

Inherited from OpCode: Summary, TinySummary, __getstate__

Inherited from 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 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 = [_PInstanceName, _PShutdownTimeout, ("target_node"...
List of opcode attributes, the default values they should get if not already defined, and types they must match.
  OP_RESULT = ht.TAnd(ht.TIsLength(2), ht.TItems([ht.Comment("Fi...
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:
[_PInstanceName, _PShutdownTimeout, ("target_node", ht.NoDefault, ht.T\
Or(ht.TNonEmptyString, ht.TList), "Destination information, depends on\
 export mode"), ("shutdown", True, ht.TBool, "Whether to shutdown inst\
ance before export"), ("remove_instance", False, ht.TBool, "Whether to\
 remove instance after export"), ("ignore_remove_failures", False, ht.\
TBool, "Whether to ignore failures while removing instances"), ("mode"\
, constants.EXPORT_MODE_LOCAL, ht.TElemOf(constants.EXPORT_MODES), "Ex\
port mode"), ("x509_key_name", None, ht.TMaybe(ht.TList), "Name of X50\
...

OP_RESULT

Callable to verify opcode result
Value:
ht.TAnd(ht.TIsLength(2), ht.TItems([ht.Comment("Finalizing status")(ht\
.TBool), ht.Comment("Status for every exported disk")(ht.TListOf(ht.TB\
ool)),]))