Script move_instance :: Class MoveSourceExecutor
[hide private]
[frames] | no frames]

Class MoveSourceExecutor


Instance Methods [hide private]
 
__init__(self, src_client, mrt)
Source side of an instance move.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
_CheckInstance(cl, name)
Checks whether the instance exists on the source cluster.
 
_GetInstanceInfo(cl, poll_job_fn, name)
Retrieves detailed instance information from source cluster.
 
_PrepareExport(cl, poll_job_fn, name)
Prepares export on source cluster.
 
_ExportInstance(cl, poll_job_fn, name, x509_key_name, compress, impinfo)
Exports instance from source cluster.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, src_client, mrt)
(Constructor)

 

Source side of an instance move.

Parameters:
Overrides: object.__init__

_CheckInstance(cl, name)
Static Method

 

Checks whether the instance exists on the source cluster.

Parameters:

_GetInstanceInfo(cl, poll_job_fn, name)
Static Method

 

Retrieves detailed instance information from source cluster.

Parameters:

_PrepareExport(cl, poll_job_fn, name)
Static Method

 

Prepares export on source cluster.

Parameters:

_ExportInstance(cl, poll_job_fn, name, x509_key_name, compress, impinfo)
Static Method

 

Exports instance from source cluster.

Parameters:
  • cl (rapi.client.GanetiRapiClient) - RAPI client
  • poll_job_fn (callable) - Function to poll for job result
  • name (string) - Instance name
  • x509_key_name - Source X509 key
  • compress (string) - Compression mode to use
  • impinfo - Import information from destination cluster