the task_state is migrating if compare cpu failed

Bug #1249992 reported by wanghong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Pawel Koniszewski

Bug Description

Code version:
The lastest version of master

API version:
V2

Compute driver:
libvirt.LibvirtDriver

Libvert type:
KVM

Steps:
1.Create a vm
2.Live migrate the vm to the other host

Bugs:
The task_state of the instance is "migrating" if compare cpu failed. So, i can not migrate the vm anymore.

Revision history for this message
John Garbutt (johngarbutt) wrote :

compare cpu should cause the state to revert to Active leaving a message in the instance actions.

It would be helpful to get a traceback for this (possible from nova scheduler). I suspect its an unexpected exception, so the task state doesn't get reverted.

tags: added: compute live-migrate
Changed in nova:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Andres Buraschi (andres-buraschi) wrote :

Looks like this is related to:
https://bugs.launchpad.net/nova/+bug/1082414

Changed in nova:
assignee: nobody → Facundo Maldonado (facundo-n-maldonado)
Freddie Zhang (myzswen)
Changed in nova:
assignee: Facundo Maldonado (facundo-n-maldonado) → Freddie Zhang (myzswen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/122119

Changed in nova:
status: Triaged → In Progress
Changed in nova:
assignee: Freddie Zhang (myzswen) → Pawel Koniszewski (pawel-koniszewski)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/122119
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ce16d34722475af51592d7ec54267f368d440c3f
Submitter: Jenkins
Branch: master

commit ce16d34722475af51592d7ec54267f368d440c3f
Author: Pawel Koniszewski <email address hidden>
Date: Tue Mar 3 20:24:22 2015 -0500

    Revert instance task_state when compareCPU fails

    If compareCPU fails, libvirt will throw exception libvirtError.
    Libvirt driver catches this exception and rethrows it, however
    conductor manager doesn't expect such exception. This causes
    problem with instance task state - it is stuck in MIGRATION state.

    Because compareCPU method is part of live migration pre-checks,
    this patch changes exception that is reraised in libvirt driver
    from libvirt.libvirtError to exception.MigrationPreCheckError.

    This change also adds unit tests for compareCPU method.

    Change-Id: If7b614c643b172a6b05a30075769b851343984d4
    Closes-Bug: #1249992
    Co-Authored-By: Pawel Koniszewski <email address hidden>

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
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.