("success", None, "Whether the migration succeeded or not"),
("live", None, "Whether the user requested a live migration or not"),
], None, "Finalize the instance migration on the source node"),
+ ("instance_get_migration_status", SINGLE, TMO_SLOW, [
+ ("instance", INST_TO_DICT, "Instance object"),
+ ], "self._MigrationStatusPostProc", "Report migration status"),
("instance_start", SINGLE, TMO_NORMAL, [
("instance_hvp_bep", "self._InstDictHvpBep(%s)", None),
("startup_paused", None, None),
return self._proc(node_list, procedure, body, read_timeout=timeout)
@staticmethod
+ def _MigrationStatusPostProc(result):
+ if not result.fail_msg and result.payload is not None:
+ result.payload = objects.MigrationStatus.FromDict(result.payload)
+ return result
+
+ @staticmethod
def _BlockdevFindPostProc(result):
if not result.fail_msg and result.payload is not None:
result.payload = objects.BlockDevStatus.FromDict(result.payload)