VMware: restarting nova compute reports invalid instances

Bug #1237795 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Gary Kotton
Havana
Fix Released
High
Gary Kotton

Bug Description

When nova compute restarts the running instances on the hypervisor are queried. None of the instances would be matched - this would prevent the instance states being in sync with the state in the database. See _destroy_evacuated_instances (https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L531)

Tags: vmware
Gary Kotton (garyk)
tags: added: grizzly-backport-potential havana-rc-potential vmware
Gary Kotton (garyk)
Changed in nova:
importance: Undecided → High
Revision history for this message
Gary Kotton (garyk) wrote :
Thierry Carrez (ttx)
tags: removed: havana-rc-potential
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Wouldn't the brute force search kick-in if the method is not implemented by the virt driver. I know it's better to implement it, just curious if it really breaks anything :)

Revision history for this message
Gary Kotton (garyk) wrote :

The brute force does not kick in as it is with instance names and not UUID's.
For some reason gerrit did not link https://review.openstack.org/#/c/50841/

Changed in nova:
assignee: nobody → Gary Kotton (garyk)
milestone: none → icehouse-1
tags: added: havana-backport-potential
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/50841
Committed: http://github.com/openstack/nova/commit/74289aacb5363bd72b449580325a651117e5342d
Submitter: Jenkins
Branch: master

commit 74289aacb5363bd72b449580325a651117e5342d
Author: Gary Kotton <email address hidden>
Date: Wed Oct 9 23:35:12 2013 -0700

    VMware: fix bug for reporting instance UUID's

    Ensure that the correct UUID's are reported to the compute
    manager. The fix will return only valid UUID's and not all
    of the names of the instances running.

    Closes-Bug: #1237795

    Change-Id: I32bb6f4783dcc80697abebd5a7f45ef9950a0896

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/54701

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/havana)

Reviewed: https://review.openstack.org/54701
Committed: http://github.com/openstack/nova/commit/bfef7ee74352aa10ee7755c16431c040a73e22e8
Submitter: Jenkins
Branch: stable/havana

commit bfef7ee74352aa10ee7755c16431c040a73e22e8
Author: Gary Kotton <email address hidden>
Date: Wed Oct 9 23:35:12 2013 -0700

    VMware: fix bug for reporting instance UUID's

    Ensure that the correct UUID's are reported to the compute
    manager. The fix will return only valid UUID's and not all
    of the names of the instances running.

    Closes-Bug: #1237795

    Change-Id: I32bb6f4783dcc80697abebd5a7f45ef9950a0896
    (cherry picked from commit 74289aacb5363bd72b449580325a651117e5342d)

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: havana-backport-potential in-stable-havana
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.