"transfer-accept" doesn't respect quota per_volume_gigabytes

Bug #1586593 reported by Cao ShuFeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Cao ShuFeng

Bug Description

With "transfer-accept" user can accept a volume which is larger than quota "per_volume_gigabytes".

Reproduce steps:
1. update tenant demo's per_volume_gigabytes to 1.
    $ cinder quota-update --per-volume-gigabytes 1 bac0caa2d69947b78fc3c77b156e13a5

2. create a 2 gb volume in tenant admin, and create a transfer from the volume.
    $ export OS_TENANT_NAME=admin
    $ export OS_USERNAME=admin
    $ cinder create 2
    $ cinder transfer-create bf913e66-5cfe-43e7-8721-59d94882ba7a

3. use tenant demo to accept the volume
    $ export OS_TENANT_NAME=demo
    $ export OS_USERNAME=demo
    $ cinder transfer-accept 47561a3c-a4e8-44ca-9b6f-41372470c933 e9b7fc648da8b6f8

Now demo get a volume in size 2G, even if it's per_volume_gigabytes is 1G.

Cao ShuFeng (caosf-fnst)
Changed in cinder:
assignee: nobody → Cao ShuFeng (caosf-fnst)
description: updated
Changed in cinder:
status: New → Confirmed
importance: Undecided → Medium
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/322405

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

Reviewed: https://review.openstack.org/322405
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=76d7a37afe386ae8ea272faed84d73a2538f72d3
Submitter: Jenkins
Branch: master

commit 76d7a37afe386ae8ea272faed84d73a2538f72d3
Author: Cao ShuFeng <email address hidden>
Date: Sat May 28 05:33:41 2016 -0400

    check quota per_volume_gigabytes for transfer-accept

    Now user can accept a volume which is larger than quota
    "per_volume_gigabytes". With this change, an exception is returned
    to user if the accepting volume is larger than per_volume_gigabytes.

    Change-Id: Ia7809be2ec69b827b2b2a132d598f0cb3eaccff4
    Closes-bug: #1586593

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.0.0.0rc1

This issue was fixed in the openstack/cinder 9.0.0.0rc1 release candidate.

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.