class documentation
class ExportInstanceHelper(object):
Undocumented
Method | __init__ |
Initializes this class. |
Method |
|
Remove all snapshots. |
Method |
|
Attempts to create a snapshot for every disk of the instance. |
Method |
|
Intra-cluster instance export. |
Method |
|
Inter-cluster instance export. |
Method | _ |
Returns a label which should be used to represent a disk to transfer. |
Method | _ |
Returns disks to be transferred, whether snapshots or instance disks. |
Method | _ |
Removes an LVM snapshot. |
Method | _ |
Returns true if snapshots are ready to be used in exports. |
Method | _ |
Called once a transfer has finished. |
Instance Variable | _feedback |
Undocumented |
Instance Variable | _instance |
Undocumented |
Instance Variable | _lu |
Undocumented |
Instance Variable | _snapshots |
Undocumented |
Instance Variable | _snapshots |
Undocumented |
Initializes this class.
Parameters | |
lu | Logical unit instance |
feedback | Feedback function |
instance:objects.Instance | Instance object |
Attempts to create a snapshot for every disk of the instance.
Currently support drbd, plain and ext disk templates.
Returns | |
bool | Whether following transfers can use snapshots |
Intra-cluster instance export.
Parameters | |
destobjects.Node | Destination node |
compress:string | Compression tool to use |
Inter-cluster instance export.
Parameters | |
disk | Per-disk destination information |
key | Name of X509 key to use |
dest | Destination X509 CA in PEM format |
compress:string | Compression tool to use |
timeouts:ImportExportTimeouts | Timeouts for this import |
Returns a label which should be used to represent a disk to transfer.
Parameters | |
idx:int | The disk index |
Returns | |
string | Undocumented |
Returns disks to be transferred, whether snapshots or instance disks.
Returns | |
list of objects.Disk | The disks to transfer |