Replace cold migration to use Nova migration API¶
Currently watcher implements instance cold migration by it’s own for specifying destination node. The implementation includes instance creation. Since administrator runs watcher API, instance migrates to service project.
Migrate action executes instance cold migration if migration_type is cold.
Since v2.56, Nova migrate Server(migrate Action) API has host option. By replacing watcher_non_live_migrate_instance method in common/nova_helper.py to use the API, we can simply solve the problem.
It may be the alternative to create instance by temporary user in the project where instance is in. But this solution remains quota problem. During temporary user lives and reached quota limit, new user can not be created.
Data model impact¶
REST API impact¶
Other end user impact¶
We may expect cold migration becomes faster because current implementation calls many Nova and Neutron API.
Other deployer impact¶
Administrator can see migration by watcher using Nova List Migrations API.
- Primary assignee:
- Other contributors:
Replace watcher_non_live_migrate_instance method in common/nova_helper.py to use Nova migrate Server(migrate Action) API.
We should expect current test code can test this replacement.