simple_tenant_usage should honor stashed instance_type

Bug #1154707 reported by Dan Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Smith

Bug Description

simple_tenant_usage is still getting its instance_type information from instance_type_id, which may fetch an old/incorrect instance_type from the database and lead to incorrect billing.

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24343
Committed: http://github.com/openstack/nova/commit/79acbf0ad730a4f58f7606c2f093b22a968f5562
Submitter: Jenkins
Branch: master

commit 79acbf0ad730a4f58f7606c2f093b22a968f5562
Author: Dan Smith <email address hidden>
Date: Wed Mar 13 13:24:23 2013 -0400

    Fix use of potentially-stale instance_type in tenant_usage

    The simple_tenant_usage API extension may return incorrect billing
    information if a flavor is changed or deleted while an instance using
    it is still running. This makes it use the stashed instance_type instead.

    Fixes bug 1154707

    Change-Id: Ifce33488e5ef8aa942051d882407a3e2d088aaf5

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.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.