Bug 1203697

Summary: [RFE] nova should allow instances to be paused during live migration
Product: Red Hat OpenStack Reporter: Eoghan Glynn <eglynn>
Component: openstack-novaAssignee: Eoghan Glynn <eglynn>
Status: CLOSED CURRENTRELEASE QA Contact: Prasanth Anbalagan <panbalag>
Severity: high Docs Contact:
Priority: low    
Version: 6.0 (Juno)CC: berrange, dasmith, eglynn, jdonohue, jjoyce, jschluet, kchamart, mburns, nlevinki, panbalag, sbauza, sclewis, sferdjao, sgordon, srevivo, vromanso
Target Milestone: asyncKeywords: FutureFeature, TestOnly, Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/pause-vm-during-live-migration
Whiteboard: upstream_milestone_mitaka-3 upstream_definition_approved upstream_status_implemented
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-06 17:59:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1309775, 1335634    
Bug Blocks: 1339882    

Description Eoghan Glynn 2015-03-19 13:32:30 UTC
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.

Comment 4 Stephen Gordon 2016-01-29 15:46:11 UTC
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.

Comment 5 Stephen Gordon 2016-02-04 20:58:14 UTC
(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

Comment 8 Stephen Gordon 2016-07-26 18:45:35 UTC
Verify async.

Comment 10 Prasanth Anbalagan 2016-08-19 02:23:57 UTC
[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]#

Comment 11 Red Hat Bugzilla 2023-09-14 02:56:47 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days