Cold migrate with target host specification
I have a running installation of Openstack Pike on Cloudlab. And I found this
patch link which states that a target-host
parameter was added for openstack server migrate
command but I am unable to find any information on how to use it on the openstack CLI.
The help gives me this which shows no target host parameter.
usage: openstack server migrate [-h] [--live <hostname>]
[--shared-migration | --block-migration]
[--disk-overcommit | --no-disk-overcommit]
[--wait]
<server>
Does anyone know how to make this work?
The link is not a patch, but a spec. Whether it has been implemented is a separate question. Having said that, according to Launchpad, it has indeed been implemented: https://blueprints.launchpad.net/nova....
The reviews associated with the above blueprint don't seem to refer to the openstack client. Perhaps it's only implemented in the API.
On the other hand, the release notes state that the host parameter is available from microversion 2.56. Try setting
--os-compute-version 2.56
.Where should I set this? In the admin-openrc.sh or just pass it as a parameter with migrate command?
As a command option
--os-compute-api-version 2.56
, but I think you can also set an environment variableexport OS_COMPUTE_API_VERSION=2.56
. Tryopenstack --os-compute-api-version 2.56 help
to start with.My earlier comment is not quite correct; I forgot the "api" part.
When I tried this I got : ERROR (UnsupportedVersion): The specified version isn't supported by server. The valid version range is '2.1' to '2.53' I think the Pike release does not support it but the Queens one does.