_update_usage_from_migrations doesn't grab instance for migration

Bug #1163622 reported by Andrew Laski
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Andrew Laski
Grizzly
Fix Released
Low
Lance Bragstad

Bug Description

In the resource tracker, when updating usage from migrations, a list of migrations is grabbed and then the first instance is pulled and used for all migration updates. This has the potential for invalid resource tracker updates and also for accessing system_metadata on that instance that doesn't exist.

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/25961

Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/25961
Committed: http://github.com/openstack/nova/commit/a574af21f81e12ea5fd48ad50bd0535d08fcda24
Submitter: Jenkins
Branch: master

commit a574af21f81e12ea5fd48ad50bd0535d08fcda24
Author: Andrew Laski <email address hidden>
Date: Tue Apr 2 19:24:35 2013 -0400

    Grab instance for migration before updating usage

    Updates _update_usage_from_migrations so that it grabs the instance
    associated with a migration before updating usage.

    Bug 1163622

    Change-Id: I64acef912ae71ea5c7fb66e9fcaafe5750c63eaf

Changed in nova:
status: In Progress → Fix Committed
Neela Shah (neela)
tags: added: grizzly-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/27713

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

Reviewed: https://review.openstack.org/27713
Committed: http://github.com/openstack/nova/commit/447e4a30050285995a8d8520ad18862f290dc834
Submitter: Jenkins
Branch: stable/grizzly

commit 447e4a30050285995a8d8520ad18862f290dc834
Author: Andrew Laski <email address hidden>
Date: Tue Apr 2 19:24:35 2013 -0400

    Grab instance for migration before updating usage

    Updates _update_usage_from_migrations so that it grabs the instance
    associated with a migration before updating usage.

    Bug 1163622

    Change-Id: I64acef912ae71ea5c7fb66e9fcaafe5750c63eaf
    (cherry picked from commit a574af21f81e12ea5fd48ad50bd0535d08fcda24)

tags: added: in-stable-grizzly
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
Changed in nova:
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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