openstack-python-openstackc.../openstackclient
Matt Riedemann 3057989714 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
2019-05-24 15:57:54 -04:00
..
api Before writing object data to stdout, re-open it in binary mode 2019-04-10 14:34:40 -05:00
common Merge "Delete the LB object quotas set command in openstackclient" 2019-03-13 08:48:34 +00:00
compute Deprecate openstack server migrate --host option 2019-05-24 15:57:54 -04:00
identity Merge "Modify the help message for 'registered limit set'" 2018-12-18 07:17:25 +00:00
image Merge "Fix --limit option in image list sub-command" 2019-05-08 23:25:16 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Ignore case in security group rule --ethertype 2019-04-01 15:56:40 -04:00
object Allow objects to be streamed to stdout 2017-07-05 20:08:18 -03:00
tests Deprecate openstack server migrate --host option 2019-05-24 15:57:54 -04:00
volume Merge "Add --attached / --detached parameter to volume set" 2019-03-06 00:58:17 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Useless line of code in shell.py 2017-09-08 06:28:15 +00:00