quota-show should default to current user

Bug #1337990 reported by Phil Day on 2014-07-04
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Neetu Jain

Bug Description

quota-show accepts (for admin use) tenant and user parameters to show the quotas values for a specific tenant or a specific user within an tenant. By default it should show the quotas for the current tenant and user.

However if tenant is not specified user defaults to None - which then shows the tenant level quotas. If the user has their own quotas within the tenant this is quiet confusing, since they won't be able to use all of the tenant level quotas shown, and also potentially leaks information that they may not be entitled to see (the tenant level quotas)

When no tenant is specified the used should be set to the current user, so that only their specific quota values are shown (which will be the same as the tenant ones when there are no user specific quotas)

ugvddm (271025598-9) on 2014-07-05
Changed in python-novaclient:
assignee: nobody → ugvddm (271025598-9)
ugvddm (271025598-9) on 2014-07-06
Changed in python-novaclient:
status: New → Confirmed
yatin (yatinkarel) on 2015-04-07
Changed in python-novaclient:
assignee: ugvddm (271025598-9) → yatin (yatinkarel)
yatin (yatinkarel) on 2015-09-10
Changed in python-novaclient:
assignee: yatin (yatinkarel) → nobody
Neetu Jain (nutshi) on 2016-01-06
Changed in python-novaclient:
assignee: nobody → Neetu Jain (nutshi)
Neetu Jain (nutshi) wrote :

i think there are a lot of bugs around quota-show

to start with i think the input validation of tenant needs to be fixed


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

Changed in python-novaclient:
status: Confirmed → In Progress
Neetu Jain (nutshi) wrote :

once i find out how to validate tenant-name ( basically how to find the corresponding tenant-id based on tenant name ) I would like to add that validation too to solve issues like


Neetu Jain (nutshi) wrote :

Few points from the discussion

1) If no user is specified then should we default to current user ..is that right? If so then by default "quota-show" will display user level quotas not tenant level

2) For tenant-level quotas dispplay do we have a flag like --only ? of user=None or any other better choice?

3) is there a way to map tenant-name to tenand-id without a keystone call ?

any inputs ?

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/265971
Reason: This review is > 6 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers