Skip to content
Snippets Groups Projects
Commit e1d0c636 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos
Browse files

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 2e9635ca
No related branches found
No related tags found
No related merge requests found
...@@ -751,6 +751,7 @@ class OpNodeMigrate(OpCode): ...@@ -751,6 +751,7 @@ class OpNodeMigrate(OpCode):
_PNodeName, _PNodeName,
_PMigrationMode, _PMigrationMode,
_PMigrationLive, _PMigrationLive,
("iallocator", None, ht.TMaybeString),
] ]
...@@ -896,6 +897,8 @@ class OpInstanceFailover(OpCode): ...@@ -896,6 +897,8 @@ class OpInstanceFailover(OpCode):
_PInstanceName, _PInstanceName,
_PShutdownTimeout, _PShutdownTimeout,
("ignore_consistency", False, ht.TBool), ("ignore_consistency", False, ht.TBool),
("iallocator", None, ht.TMaybeString),
("target_node", None, ht.TMaybeString),
] ]
...@@ -915,6 +918,8 @@ class OpInstanceMigrate(OpCode): ...@@ -915,6 +918,8 @@ class OpInstanceMigrate(OpCode):
_PMigrationMode, _PMigrationMode,
_PMigrationLive, _PMigrationLive,
("cleanup", False, ht.TBool), ("cleanup", False, ht.TBool),
("iallocator", None, ht.TMaybeString),
("target_node", None, ht.TMaybeString),
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment