admin extend tenant's volume but change admin self quota

Bug #1421492 reported by wuyuting
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
wuyuting

Bug Description

When admin extend a tenant's volume, the tenant's quota-usage doesn't change, but admin self quota-usage have changed. The right practice is: extend whose volume, whose quota-usage should change.

wuyuting (wytdahu)
Changed in cinder:
assignee: nobody → wuyuting (wytdahu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/155607

Changed in cinder:
status: New → In Progress
Revision history for this message
Mike Perez (thingee) wrote :

This needs to be verified. Potential RC.

tags: added: kilo-rc-potential
Changed in cinder:
assignee: wuyuting (wytdahu) → Huang Zhiteng (zhiteng-huang)
Revision history for this message
Huang Zhiteng (zhiteng-huang) wrote :

Mike, this is a valid bug. QUOTAS.reserve() uses context.project_id if 'project_id' isn't explicitly assigned. In this case, it belongs part of admin's quota usage instead of volume owner's.

Changed in cinder:
assignee: Huang Zhiteng (zhiteng-huang) → wuyuting (wytdahu)
importance: Undecided → High
milestone: none → kilo-rc1
Mike Perez (thingee)
Changed in cinder:
milestone: kilo-rc1 → liberty-1
Mike Perez (thingee)
tags: removed: kilo-rc-potential
Revision history for this message
wuyuting (wytdahu) wrote :

Sorry, I've been away for some days. I'll fix it as soon as i can.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/155607
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2bb08765abf2d5f8ee60ed25e42fea0bab62dbbd
Submitter: Jenkins
Branch: master

commit 2bb08765abf2d5f8ee60ed25e42fea0bab62dbbd
Author: wuyuting <email address hidden>
Date: Fri Feb 13 10:16:24 2015 +0800

    Admin extends tenant's volume but change admin's quota

    When admin extends a tenant's volume, the tenant's
    quota-usage doesn't change. However, admin's quota-usage
    has changed. The right practice is: extend whose volume,
    whose quota-usage should be changed.

    Change-Id: Ia1bed7f212cbee715e29698ebbfe3c67486a55f5
    Closes-Bug: #1421492

Changed in cinder:
status: In Progress → Fix Committed
Mike Perez (thingee)
tags: added: kilo-backport-potential
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.0
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.