Revision e3ac8406
b/lib/build/rpc_definitions.py | ||
---|---|---|
146 | 146 |
("success", None, "Whether the migration succeeded or not"), |
147 | 147 |
("live", None, "Whether the user requested a live migration or not"), |
148 | 148 |
], None, "Finalize the instance migration on the source node"), |
149 |
("instance_get_migration_status", SINGLE, TMO_SLOW, [ |
|
150 |
("instance", INST_TO_DICT, "Instance object"), |
|
151 |
], "self._MigrationStatusPostProc", "Report migration status"), |
|
149 | 152 |
("instance_start", SINGLE, TMO_NORMAL, [ |
150 | 153 |
("instance_hvp_bep", "self._InstDictHvpBep(%s)", None), |
151 | 154 |
("startup_paused", None, None), |
b/lib/rpc.py | ||
---|---|---|
494 | 494 |
return self._proc(node_list, procedure, body, read_timeout=timeout) |
495 | 495 |
|
496 | 496 |
@staticmethod |
497 |
def _MigrationStatusPostProc(result): |
|
498 |
if not result.fail_msg and result.payload is not None: |
|
499 |
result.payload = objects.MigrationStatus.FromDict(result.payload) |
|
500 |
return result |
|
501 |
|
|
502 |
@staticmethod |
|
497 | 503 |
def _BlockdevFindPostProc(result): |
498 | 504 |
if not result.fail_msg and result.payload is not None: |
499 | 505 |
result.payload = objects.BlockDevStatus.FromDict(result.payload) |
Also available in: Unified diff