Add new API to force live migration to complete

Bug #1544044 reported by OpenStack Infra
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

Bug Description

https://review.openstack.org/245921
Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
Your project "openstack/nova" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit c9091d0871948377685feca0eb2e41d8ad38228a
Author: Pawel Koniszewski <email address hidden>
Date: Mon Feb 8 08:59:52 2016 +0100

    Add new API to force live migration to complete

    This change adds manual knob to force ongoing live migration to
    complete. It is implemented as a new server-migrations API.

    DocImpact
    ApiImpact

    Implements: blueprint pause-vm-during-live-migration
    Change-Id: I034b4041414a797f65ede52db2963107f2ef7456

Revision history for this message
Sean Dague (sdague) wrote :

This requires microversion support, which we don't currently have. Marking as incomplete for that reason

tags: added: api
Changed in nova:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Low
Sean Dague (sdague)
tags: added: documentation
removed: api doc nova
yuntongjin (yuntongjin)
Changed in nova:
assignee: nobody → yuntongjin (yuntongjin)
yuntongjin (yuntongjin)
Changed in nova:
assignee: yuntongjin (yuntongjin) → nobody
tags: added: doc
removed: documentation
Revision history for this message
Sean Dague (sdague) wrote :

This probably needs to be cleaned up to be sent over to the openstack-manuals folks

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

The official tag "documentation" got changed to "doc" to match it
with the bug reports which get generated by merged commits with a
"DocImpact" in the commit message.

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

I pinged Pawel (the change author) in IRC, to get more information here before routing the report to the manuals team.

Revision history for this message
Pawel Koniszewski (pawel-koniszewski) wrote :

So, this is a new feature that added new API to force live migration to complete. It can be used on a VM that is being live migrated (task state MIGRATING) and right now it is supported only when libvirt is used as a virt driver. Basically it pauses a VM, so that it does not write to memory which means that live migration will end in a finite time because of no dirty pages. Two typical use cases for this feature are:

* Live migration is stuck but you really need to move an instance to another host
* Live migration is taking long time but it's a critical case and you need to finish it ASAP

VM is automatically unpaused at the end of the process, even if the process fails. By default attached policy allows admins only to use this feature.

New API call is:
POST /servers/<instance_uuid>/migrations/<migration_id>/action
Body: {'force_complete': null}
Through CLI: nova live-migration-force-complete <instance_uuid/name> <migration_id>

Migration ID can be obtained by listing all in-progress live migrations for particular instance:
GET /servers/<instance_uuid>/migrations
Through CLI: nova server-migration-list <instance_uuid/name>

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Addition:
    POST /servers/<instance_uuid>/migrations/<migration_id>/action
doesn't have a response body

tags: added: api
affects: nova → openstack-manuals
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

@Manuals-Team:
See comments #5 + #6. Feel free to contact us if more information is needed.

tags: removed: api
Revision history for this message
Alexandra Settle (alexandra-settle) wrote :
tags: added: admin-guide
removed: doc
Changed in openstack-manuals:
assignee: nobody → Alexandra Settle (alexandra-settle)
Changed in openstack-manuals:
assignee: Alexandra Settle (alexandra-settle) → nobody
affects: openstack-manuals → nova
tags: added: doc
Revision history for this message
melanie witt (melwitt) wrote :

This is several years old and also documented at https://docs.openstack.org/nova/latest/admin/live-migration-usage.html.

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.