Libvirt driver lifecycle event not recorded by nova in timely manner

Bug #1297485 reported by Dennis Kliban
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dennis Kliban
Icehouse
Fix Released
High
Chuck Short

Bug Description

I am using a nova instance to run an automated install of Fedora, RHEL, Ubuntu, and Windows. After the installers finish the instance is shut down. However, Nova continues to report that the instance is still active for up to 5 minutes after it has been shut down. virsh list shows no instances running while nova reports one being active.

This was a bug back in Folson, but was fixed in the last release.

Tags: libvirt
Revision history for this message
Tracy Jones (tjones-i) wrote :

logs would be helpful here

Changed in nova:
status: New → Incomplete
tags: added: libvirt
Dan Smith (danms)
tags: added: icehouse-rc-potential
Dennis Kliban (dkliban)
Changed in nova:
status: Incomplete → In Progress
Thierry Carrez (ttx)
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit 8a430da045d86ccb8daee6e082c12890ce5c5276
Author: Dennis Kliban <email address hidden>
Date: Fri Mar 28 16:06:25 2014 -0400

    Moved the registration of lifecycle event handler in init_host()

    The event handler has to be registered before the libvirt connection
    is used for the first time. Otherwise it doesn't register and events
    such as shut down initiated from within the instance are not registered
    in nova until a period task compares the content of hypervisor with
    content of database.

    Closes bug: #1297485

    Change-Id: I70887bea343734a977f621fedc634b6fab0e4ad5

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to nova (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/89658

Alan Pevec (apevec)
Changed in nova:
importance: Undecided → High
assignee: nobody → Dennis Kliban (dkliban)
tags: removed: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/icehouse)

Reviewed: https://review.openstack.org/89658
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=77392a9d6343e09f8aa9f0314de170eaadee734e
Submitter: Jenkins
Branch: stable/icehouse

commit 77392a9d6343e09f8aa9f0314de170eaadee734e
Author: Dennis Kliban <email address hidden>
Date: Fri Mar 28 16:06:25 2014 -0400

    Moved the registration of lifecycle event handler in init_host()

    The event handler has to be registered before the libvirt connection
    is used for the first time. Otherwise it doesn't register and events
    such as shut down initiated from within the instance are not registered
    in nova until a period task compares the content of hypervisor with
    content of database.

    Closes bug: #1297485

    Change-Id: I70887bea343734a977f621fedc634b6fab0e4ad5
    (cherry picked from commit 8a430da045d86ccb8daee6e082c12890ce5c5276)

Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-1 → 2014.2
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.