Resizes do not update quota usages

Bug #1030010 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Eoghan Glynn

Bug Description

When an instance is resized, the existing quota usages for the project are not updated, resulting in incorrect totals.

Eoghan Glynn (eglynn)
Changed in nova:
assignee: nobody → Eoghan Glynn (eglynn)
Eoghan Glynn (eglynn)
Changed in nova:
status: New → In Progress
status: In Progress → Confirmed
Eoghan Glynn (eglynn)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
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/11020

Eoghan Glynn (eglynn)
Changed in nova:
milestone: none → folsom-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit f94ae65640d16124f9d7fad8c726b185f0398452
Author: Eoghan Glynn <email address hidden>
Date: Wed Aug 1 16:28:04 2012 +0000

    Enforce quota limitations for instance resize.

    Fixes LP 1030010.

    Close off a back-door allowing users to go over-quota on ram
    and/or cores by creating a tiny instance and then resizing
    to any size regardless of the remaining usage headroom.

    The quota management logic is distributed in the sense that
    the reservations are passed with the RPC casts that may fail
    silently, so that the rollback or commit is handled by the
    actor finalizing the resize/confirmation/reversion.

    Up-sizing requires there is sufficient quota headroom upfront
    to accommodate the larger size, whereas conversely down-sizing
    only results in a usage reduction when the resize is confirmed.

    Change-Id: I2b1cbb098c79e37d7ad19221fe23657eb018eae6

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: folsom-3 → 2012.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.