Bug 984281 - cinder: 'cinder quota-show' with tenant name does not show updated quota
Summary: cinder: 'cinder quota-show' with tenant name does not show updated quota
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 6.0 (Juno)
Assignee: Eric Harney
QA Contact: Dafna Ron
URL:
Whiteboard: storage
: 1095730 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-14 12:40 UTC by Dafna Ron
Modified: 2022-08-09 14:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-02 13:40:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1215320 0 None None None Never
OpenStack gerrit 80550 0 None ABANDONED Check whether project_id exists / is valid 2020-02-12 18:02:00 UTC
Red Hat Bugzilla 1254085 0 low CLOSED cinder quota-show reports the default quota if we specify a non existing uuid 2022-08-17 13:22:53 UTC
Red Hat Issue Tracker OSP-8456 0 None None None 2022-08-09 14:38:36 UTC

Internal Links: 1254085

Description Dafna Ron 2013-07-14 12:40:06 UTC
Description of problem:

I updated the quota for services tenant form 10 to 12 volumes and ran quota-show with tenant name - the change is not updated. 
when I ran quota-show with UUID the change is listed. 

Version-Release number of selected component (if applicable):

openstack-cinder-2013.1.2-3.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. update services tenant quota from 10 volumes to 12
2. run cinder quota-show services
3. run cinder quota-show <UUID of tenant>

Actual results:

we can see the update using tenant uuid but cannot see the update when using the tenant name 

Expected results:

we should see the update with both uuid and name

Additional info:

+----------------------------------+----------+---------+
|                id                |   name   | enabled |
+----------------------------------+----------+---------+
| f372ca53f0484f589413148b6c9ad39c |  admin   |   True  |
| 1562db18fbb3450e93614f72664928ce | services |   True  |
+----------------------------------+----------+---------+

[root@opens-vdsb ~(keystone_admin)]# cinder quota-show 1562db18fbb3450e93614f72664928ce
+-----------+-------+
|  Property | Value |
+-----------+-------+
| gigabytes |  1000 |
| snapshots |   10  |
|  volumes  |   12  |
+-----------+-------+
[root@opens-vdsb ~(keystone_admin)]# cinder quota-show services
+-----------+-------+
|  Property | Value |
+-----------+-------+
| gigabytes |  1000 |
| snapshots |   10  |
|  volumes  |   10  |
+-----------+-------+

Comment 1 Eric Harney 2013-09-24 14:25:25 UTC
What command did you run to update the services tenant quota?

Could you also run
$ mysql cinder -e "select * from quotas"
?

One thing that may cause confusion here is that it appears to be possible to update quotas for tenants/projects that don't exist...

Comment 4 Eric Harney 2013-09-24 15:56:59 UTC
Looking a little further, this happens because Cinder expects you to provide project IDs and not names, but it does no verification that the IDs are valid, so you can input anything.

The quota entry for "admin" will never be used.  Definitely problematic from a usability point of view.

Comment 5 Eric Harney 2013-10-03 20:48:23 UTC
This is actually a Nova bug too:

$ nova quota-update asdfasdf --cores 999

Comment 6 Flavio Percoco 2014-02-12 07:44:25 UTC
This bug requires adding the knowledge of tenants to Cinder. I started working on a fix for it already. I'll try to get it done asap.

Comment 8 Flavio Percoco 2014-05-21 12:33:38 UTC
*** Bug 1095730 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.