Revision 6906a9d8 daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
403 | 403 |
return backend.StartInstance(instance, extra_args) |
404 | 404 |
|
405 | 405 |
@staticmethod |
406 |
def perspective_migration_info(params): |
|
407 |
"""Gather information about an instance to be migrated. |
|
408 |
|
|
409 |
""" |
|
410 |
instance = objects.Instance.FromDict(params[0]) |
|
411 |
return backend.MigrationInfo(instance) |
|
412 |
|
|
413 |
@staticmethod |
|
414 |
def perspective_accept_instance(params): |
|
415 |
"""Prepare the node to accept an instance. |
|
416 |
|
|
417 |
""" |
|
418 |
instance, info, target = params |
|
419 |
instance = objects.Instance.FromDict(instance) |
|
420 |
return backend.AcceptInstance(instance, info, target) |
|
421 |
|
|
422 |
@staticmethod |
|
423 |
def perspective_finalize_migration(params): |
|
424 |
"""Finalize the instance migration. |
|
425 |
|
|
426 |
""" |
|
427 |
instance, info, success = params |
|
428 |
instance = objects.Instance.FromDict(instance) |
|
429 |
return backend.FinalizeMigration(instance, info, success) |
|
430 |
|
|
431 |
@staticmethod |
|
406 | 432 |
def perspective_instance_migrate(params): |
407 | 433 |
"""Migrates an instance. |
408 | 434 |
|
Also available in: Unified diff