module documentation
Instance-related functions and classes for masterd.
| Class | |
No class docstring; 0/4 instance variable, 0/1 constant, 4/4 methods documented |
| Class | |
No class docstring; 1/1 property, 0/3 instance variable, 0/1 constant, 4/4 methods documented |
| Class | |
No class docstring; 0/6 instance variable, 1/1 method documented |
| Class | |
No class docstring; 0/5 instance variable, 10/10 methods documented |
| Class | |
Callbacks for disk import/export. |
| Class | |
No class docstring; 0/3 instance variable, 0/2 constant, 5/5 methods, 2/2 static methods documented |
| Class | |
No class docstring; 0/5 instance variable, 0/1 class variable, 0/4 constant, 1/1 method documented |
| Function | |
Calculate instance policy for group. |
| Function | |
Verifies received disk information for an export. |
| Function | |
Checks the handshake of a remote import/export. |
| Function | |
Compute disk size requirements according to disk template |
| Function | |
Computes the remote import/export handshake. |
| Function | |
Computes the signed disk information for a remote import. |
| Function | |
Formats progress information for user consumption |
| Function | |
Imports an instance from another cluster. |
| Function | |
Transfers an instance's data from one node to another. |
| Class | _ |
No class docstring; 5/5 properties, 0/20 instance variable, 0/1 constant, 16/16 methods documented |
| Class | _ |
No class docstring; 0/5 instance variable, 2/2 methods documented |
| Class | _ |
No class docstring; 1/1 property, 0/2 instance variable, 4/4 methods documented |
| Class | _ |
No class docstring; 1/1 property, 0/8 instance variable, 5/5 methods documented |
| Class | _ |
No class docstring; 0/8 instance variable, 1/1 method documented |
| Class | _ |
No class docstring; 3/3 methods documented |
| Class | _ |
No class docstring; 3/3 methods documented |
| Exception | _ |
Local exception to report import/export errors. |
| Function | _ |
Returns the handshake message for a RIE protocol version. |
| Function | _ |
Computes the magic value for a disk export or import. |
| Function | _ |
Returns the hashed text for import/export disk information. |
Verifies received disk information for an export.
| Parameters | |
| cds:string | Cluster domain secret |
| disk | Index of disk (included in hash) |
| disk | Disk information sent by remote peer |
Checks the handshake of a remote import/export.
| Parameters | |
| cds:string | Cluster domain secret |
| handshake:sequence | Handshake sent by remote peer |
Computes the signed disk information for a remote import.
| Parameters | |
| cds:string | Cluster domain secret |
| salt:string | HMAC salt |
| disk | Index of disk (included in hash) |
| host:string | Hostname |
| port:number | Daemon port |
| magic:string | Magic value |
Imports an instance from another cluster.
| Parameters | |
| lu | Logical unit instance |
| feedback | Feedback function |
instance:objects.Instance | Instance object |
pnode:objects.Node | Primary node of instance as an object |
| source | Import source's X509 CA |
| cds:string | Cluster domain secret |
| compress:string | Compression tool to use |
timeouts:ImportExportTimeouts | Timeouts for this import |
def TransferInstanceData(lu, feedback_fn, src_node_uuid, dest_node_uuid, dest_ip, compress, instance, all_transfers):
¶
Transfers an instance's data from one node to another.
| Parameters | |
| lu | Logical unit instance |
| feedback | Feedback function |
| src | Source node UUID |
| dest | Destination node UUID |
| dest | IP address of destination node |
| compress:string | Compression tool to use |
instance:objects.Instance | Instance object |
allDiskTransfer instances | List of all disk transfers to be made |
| Returns | |
| list | List with a boolean (True=successful, False=failed) for success for each transfer |
Computes the magic value for a disk export or import.
| Parameters | |
| base:string | Random seed value (can be the same for all disks of a transfer) |
| instance | Name of instance |
| index:number | Disk index |