Nova should allow for instances undergoing live migration to be paused so as to expedite the completion of migration. Otherwise we could end up in a situation where the admin is unable to evacuate a host because migration will never complete.
Not sure we are tracking the correct upstream artefacts here, these appear to be stalled but there is IIRC other work ongoing in this area in Mitaka.
(In reply to Stephen Gordon from comment #4) > Not sure we are tracking the correct upstream artefacts here, these appear > to be stalled but there is IIRC other work ongoing in this area in Mitaka. Found it: https://blueprints.launchpad.net/nova/+spec/pause-vm-during-live-migration
Verify async.
[root@serverA]# nova show vm1 | grep host | OS-EXT-SRV-ATTR:host | serverB | | OS-EXT-SRV-ATTR:hypervisor_hostname | serverB | | hostId | 332850d3bf4bf9df7484d60624246e77a2b85723b1a39ae92586ec19 | [root@serverA]# [root@serverA]# [root@serverA]# nova live-migration --block-migrate vm1 serverA [root@serverA]# nova list +--------------------------------------+------+-----------+------------+-------------+---------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+-----------+------------+-------------+---------------------+ | 10160fb8-a5a2-4ccb-acdb-d561488d50a7 | vm1 | MIGRATING | migrating | Running | public=172.24.4.232 | +--------------------------------------+------+-----------+------------+-------------+---------------------+ [root@serverA]# cat force.json {"force_complete": null} [root@serverA]# curl -i http://X.X.X.X:8774/v2.1/b03dfd4f822c466c8d965958ea6577d2/servers/10160fb8-a5a2-4ccb-acdb-d561488d50a7/migrations/6/action -X POST -H "Content-Type: application/json" -H "X-Auth-Token: d23f6f4462844e1e8cba7b3cf259e554" -H "Accept: application/json" -H 'X-OpenStack-Nova-API-Version: 2.22' -T force.json HTTP/1.1 100 Continue HTTP/1.1 202 Accepted Content-Length: 0 Content-Type: application/json X-Openstack-Nova-Api-Version: 2.22 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-a4a3fe66-a1d7-46d7-8559-fa2348c2c797 Date: Fri, 19 Aug 2016 02:12:55 GMT Note: The migration ID was retrieved from DB table 'migrations' [root@serverA]# nova show vm1 | grep host| OS-EXT-SRV-ATTR:host | serverA | | OS-EXT-SRV-ATTR:hypervisor_hostname | serverA | | hostId | 61fd03001d700e23b87f639bce4b44f8632e4368d557e54db3202934 | [root@serverA]#
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days