Package ganeti :: Package masterd :: Module instance :: Class ExportInstanceHelper
[hide private]
[frames] | no frames]

Class ExportInstanceHelper

source code

Instance Methods [hide private]
 
__init__(self, lu, feedback_fn, instance)
Initializes this class.
source code
 
CreateSnapshots(self)
Creates an LVM snapshot for every disk of the instance.
source code
 
_RemoveSnapshot(self, disk_index)
Removes an LVM snapshot.
source code
 
LocalExport(self, dest_node)
Intra-cluster instance export.
source code
 
RemoteExport(self, disk_info, key_name, dest_ca_pem, timeouts)
Inter-cluster instance export.
source code
 
_TransferFinished(self, idx)
Called once a transfer has finished.
source code
 
Cleanup(self)
Remove all snapshots.
source code
Method Details [hide private]

__init__(self, lu, feedback_fn, instance)
(Constructor)

source code 

Initializes this class.

Parameters:
  • lu - Logical unit instance
  • feedback_fn - Feedback function
  • instance (objects.Instance) - Instance object

_RemoveSnapshot(self, disk_index)

source code 

Removes an LVM snapshot.

Parameters:
  • disk_index (number) - Index of the snapshot to be removed

LocalExport(self, dest_node)

source code 

Intra-cluster instance export.

Parameters:

RemoteExport(self, disk_info, key_name, dest_ca_pem, timeouts)

source code 

Inter-cluster instance export.

Parameters:
  • disk_info (list) - Per-disk destination information
  • key_name (string) - Name of X509 key to use
  • dest_ca_pem (string) - Destination X509 CA in PEM format
  • timeouts (ImportExportTimeouts) - Timeouts for this import

_TransferFinished(self, idx)

source code 

Called once a transfer has finished.

Parameters:
  • idx (number) - Disk index