Revision 4a96f1d1 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
668 | 668 |
|
669 | 669 |
|
670 | 670 |
class OpExportInstance(OpCode): |
671 |
"""Export an instance.""" |
|
671 |
"""Export an instance. |
|
672 |
|
|
673 |
For local exports, the export destination is the node name. For remote |
|
674 |
exports, the export destination is a list of tuples, each consisting of |
|
675 |
hostname/IP address, port, HMAC and HMAC salt. The HMAC is calculated using |
|
676 |
the cluster domain secret over the value "${index}:${hostname}:${port}". The |
|
677 |
destination X509 CA must be a signed certificate. |
|
678 |
|
|
679 |
@ivar mode: Export mode (one of L{constants.EXPORT_MODES}) |
|
680 |
@ivar target_node: Export destination |
|
681 |
@ivar x509_key_name: X509 key to use (remote export only) |
|
682 |
@ivar destination_x509_ca: Destination X509 CA in PEM format (remote export |
|
683 |
only) |
|
684 |
|
|
685 |
""" |
|
672 | 686 |
OP_ID = "OP_BACKUP_EXPORT" |
673 | 687 |
OP_DSC_FIELD = "instance_name" |
674 | 688 |
__slots__ = [ |
689 |
# TODO: Rename target_node as it changes meaning for different export modes |
|
690 |
# (e.g. "destination") |
|
675 | 691 |
"instance_name", "target_node", "shutdown", "shutdown_timeout", |
676 | 692 |
"remove_instance", |
677 | 693 |
"ignore_remove_failures", |
694 |
"mode", |
|
695 |
"x509_key_name", |
|
696 |
"destination_x509_ca", |
|
678 | 697 |
] |
679 | 698 |
|
680 | 699 |
|
Also available in: Unified diff