VM doesnt migrate

asked 2016-11-18 08:27:02 -0600

RingWraiths gravatar image

updated 2016-11-18 08:28:06 -0600

I tried migrating a VM (Writable) using

nova --debug migrate Writable

But this is the request generated for the above command. Don't understand the -d '{"migrate": null}'. Is the scheduler not able to find any appropriate host ?

DEBUG (session:195) REQ: curl -g -i -X POST http://xx.xx.xx.xx:8774/v2/5006b6496c9a475d8d83779394d6923d/servers/989e8b04-6665-4e75-8296-321d77c5e8d9/action (http://xx.xx.xx.xx:8774/v2/5006b6496c...) -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0705195d654181033a737cf0c724afc1a00fb777" -d '{"migrate": null}' DEBUG (connectionpool:383) "POST /v2/5006b6496c9a475d8d83779394d6923d/servers/989e8b04-6665-4e75-8296-321d77c5e8d9/action HTTP/1.1" 202 0 DEBUG (session:224) RESP: [202] date: Fri, 18 Nov 2016 14:19:23 GMT connection: keep-alive content-type: text/html; charset=UTF-8 content-length: 0 x-compute-request-id: req-e5329fe9-283b-4980-824f-1480f7315888

edit retag flag offensive close merge delete


-d '{"migrate": null}' is normal. See also the API doc: http://developer.openstack.org/api-re.... To find out what went wrong, search conductor, scheduler and compute logs for the instance's UUID.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-18 09:05:04 -0600 )edit

also make sure your nova instances directory (/var/lib/nova/instances) is shared between compute nodes to support live migration.http://docs.openstack.org/admin-guide/compute-configuring-migrations.html

bcollins gravatar imagebcollins ( 2016-11-18 14:13:04 -0600 )edit

The question is about cold migration though. And live migration works well with non-shared disks and --block-migrate.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-18 18:34:36 -0600 )edit