Tasklet class for instance migration.
|
__init__(self,
lu,
instance_name,
cleanup=False,
failover=False,
fallback=False,
ignore_consistency=False,
shutdown_timeout=constants.DEFAULT_SHUTDOWN_TIMEOUT)
Initializes this class. |
source code
|
|
|
|
|
_RunAllocator(self)
Run the allocator based on input opcode. |
source code
|
|
|
|
|
_EnsureSecondary(self,
node)
Demote a node to secondary. |
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
|
|
|
|
|
|
|
|
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
|
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
If given, the target_node to reallocate the instance to
|