diff options
| author | Matt Riedemann <mriedem.os@gmail.com> | 2019-05-15 17:57:29 -0400 |
|---|---|---|
| committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-05-24 15:57:54 -0400 |
| commit | 3057989714e5e510e275c454258e0f167ed551d2 (patch) | |
| tree | 7d5aa7e8f8789c065d6654b1c0754dc5a5067da2 /openstackclient/api/api.py | |
| parent | 1bc44fcdc6c96bbffdd70c57f6cb11b5c1278071 (diff) | |
| download | python-openstackclient-3057989714e5e510e275c454258e0f167ed551d2.tar.gz | |
Deprecate openstack server migrate --host option
Per the discussion at the Train Forum [1] this deprecates
the problematic --live option on the server migrate command
which, depending on the compute API version used, forcefully
bypasses the scheduler and also does not allow you to live
migrate a server and let the scheduler pick a host.
The --live option is replaced here with two new options:
* --live-migration: this simply tells the command you want to
perform a live rather than cold migration; if specified with
--live the --live-migration option takes priority.
* --host: when specified, this will request a target host for
the live migration and will be validated by the scheduler;
if not specified, the scheduler will pick a host. This option
is mutually exclusive with --live.
We can build on the --host option by supporting cold migrations
with a specified host when using compute API version 2.56 or
greater but that will come in a separate change.
If the --live option is ever used we log a warning.
Note there are several related changes for this issue:
- https://review.openstack.org/#/c/628334/
- https://review.openstack.org/#/c/626949/
- https://review.openstack.org/#/c/627801/
- https://review.openstack.org/#/c/589012/
- https://review.openstack.org/#/c/460059/
This change allows us to deprecate the --live option and provide
a replacement which is backward compatible without having to use
something potentially error-prone like nargs='?'.
Closes-Bug: #1411190
[1] https://etherpad.openstack.org/p/DEN-osc-compute-api-gaps
Change-Id: I95d3d588e4abeb6848bdccf6915f7b5da40b5d4f
Diffstat (limited to 'openstackclient/api/api.py')
0 files changed, 0 insertions, 0 deletions
