Commit d5cafd31 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

TLMigrateInstance: Merge failover code, allow fallback



As the code for failover for checking is almost identical it's an easy
task to switch it over to the TLMigrateInstance. This allows us to
fallback to failover if migrate fails prereq check for some reason.

Please note that everything from LUInstanceFailover.Exec is taken over
unchanged to TLMigrateInstance._ExecFailover, only with adaption to
opcode fields and variable referencing, but not in logic. There still
needs to go some effort into merging the logic with the migration (for
example DRBD handling). But this should happen in a separate iteration.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent bbfed756
This diff is collapsed.
......@@ -1047,6 +1047,8 @@ class OpInstanceMigrate(OpCode):
"Iallocator for deciding the target node for shared-storage instances"),
("target_node", None, ht.TMaybeString,
"Target node for shared-storage instances"),
("allow_failover", False, ht.TBool,
"Whether we can fallback to failover if migration is not possible"),
]
......
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