Commit 8eb34306 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos Committed by Iustin Pop

Migration and failover: add iallocator and target_node slots

Add iallocator and target_node slots to OpMigrateInstance and
OpFailoverInstance to facilitate shared-storage-backed instance mobility. Add
iallocator slot to OpMigrateNode (no explicit target_node in this case).
Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 1f1d54e7
......@@ -828,6 +828,8 @@ class OpNodeMigrate(OpCode):
_PNodeName,
_PMigrationMode,
_PMigrationLive,
("iallocator", None, ht.TMaybeString,
"Iallocator for deciding the target node for shared-storage instances"),
]
......@@ -1008,6 +1010,10 @@ class OpInstanceFailover(OpCode):
_PInstanceName,
_PShutdownTimeout,
_PIgnoreConsistency,
("iallocator", None, ht.TMaybeString,
"Iallocator for deciding the target node for shared-storage instances"),
("target_node", None, ht.TMaybeString,
"Target node for shared-storage instances"),
]
......@@ -1028,6 +1034,10 @@ class OpInstanceMigrate(OpCode):
_PMigrationLive,
("cleanup", False, ht.TBool,
"Whether a previously failed migration should be cleaned up"),
("iallocator", None, ht.TMaybeString,
"Iallocator for deciding the target node for shared-storage instances"),
("target_node", None, ht.TMaybeString,
"Target node for shared-storage instances"),
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment