Cold migrate with target host specification

asked 2018-07-02 17:02:25 -0500

Wajahat gravatar image

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?

edit retag flag offensive close merge delete

Comments

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....

Bernd Bausch gravatar imageBernd Bausch ( 2018-07-02 17:37:53 -0500 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2018-07-02 18:05:33 -0500 )edit

Where should I set this? In the admin-openrc.sh or just pass it as a parameter with migrate command?

Wajahat gravatar imageWajahat ( 2018-07-02 22:11:28 -0500 )edit

As a command option --os-compute-api-version 2.56, but I think you can also set an environment variable export OS_COMPUTE_API_VERSION=2.56. Try openstack --os-compute-api-version 2.56 help to start with.

My earlier comment is not quite correct; I forgot the "api" part.

Bernd Bausch gravatar imageBernd Bausch ( 2018-07-03 01:14:25 -0500 )edit

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.

Wajahat gravatar imageWajahat ( 2018-07-03 15:33:28 -0500 )edit