Tasklet class for instance migration.
|
|
__init__(self,
lu,
instance_uuid,
instance_name,
cleanup,
failover,
fallback,
ignore_consistency,
allow_runtime_changes,
shutdown_timeout,
ignore_ipolicy,
ignore_hvversions)
Initializes this class. |
source code
|
|
|
|
|
|
|
_RunAllocator(self)
Run the allocator based on input opcode. |
source code
|
|
|
|
|
|
|
_OpenInstanceDisks(self,
node_uuid,
exclusive)
Open instance disks. |
source code
|
|
|
|
_CloseInstanceDisks(self,
node_uuid)
Close instance disks. |
source code
|
|
|
|
_GoStandalone(self)
Disconnect from the network. |
source code
|
|
|
|
_GoReconnect(self,
multimaster)
Reconnect to the network. |
source code
|
|
|
|
|
|
|
_RevertDiskStatus(self)
Try to revert the disk status after a failed migration. |
source code
|
|
|
|
_AbortMigration(self)
Call the hypervisor code to abort a started migration. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
boolean
|
cleanup
Wheater we cleanup from a failed migration
|
|
boolean
|
failover
Whether operation results in failover or migration
|
|
boolean
|
fallback
Whether fallback to failover is allowed if migration not possible
|
|
string
|
iallocator
The iallocator used to determine target_node
|
|
boolean
|
ignore_consistency
Wheter we should ignore consistency between source and target node
|
|
bool
|
ignore_hvversions
If true, accept incompatible hypervisor versions
|
|
bool
|
ignore_ipolicy
If true, we can ignore instance policy when migrating
|
|
boolean
|
live
whether the migration will be done live or non-live; this variable is
initalized only after CheckPrereq has run
|
|
int
|
shutdown_timeout
In case of failover timeout of the shutdown
|
|
string
|
target_node_uuid
If given, the target node UUID to reallocate the instance to
|