Update server migrate support for passing a target host
When running `openstack server migrate` with --live you must pass a hostname as a target.
It is however possible to not pass a hostname via the nova api and let the nova scheduler decide the target host [1].
Nova client implements this already.
On the other hand, when running `openstack server migrate` without --live, you cannot pass a hostname as a target.
Via the nova api, since version 2.56, it is possible to pass a hostname as a target. [2]
This bp would allow us to pass or not pass a target host regardless of the presence of the --live option.
The result would look like this:
usage: openstack server migrate [-h] [--live] [--host <hostname>]
Migrate server to different host
positional arguments:
<server> Server (name or ID)
optional arguments:
-h, --help show this help message and exit
--live Perform a live migration
--host <hostname> Target hostname
--shared-
--block-migration Perform a block live migration
--disk-overcommit Allow disk over-commit on the destination host
--no-
--wait Wait for migrate to complete
[1] https:/
[2] https:/
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Martin Chlumsky
- Direction:
- Needs approval
- Assignee:
- Martin Chlumsky
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
This is tracked in storyboard now: https:/