quota-show should default to current user

Bug #1337990 reported by Phil Day
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
In Progress
Undecided
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)
Changed in python-novaclient:
assignee: nobody → ugvddm (271025598-9)
ugvddm (271025598-9)
Changed in python-novaclient:
status: New → Confirmed
yatin (yatinkarel)
Changed in python-novaclient:
assignee: ugvddm (271025598-9) → yatin (yatinkarel)
yatin (yatinkarel)
Changed in python-novaclient:
assignee: yatin (yatinkarel) → nobody
Neetu Jain (nutshi)
Changed in python-novaclient:
assignee: nobody → Neetu Jain (nutshi)
Revision history for this message
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

novaclient/v2/shell.py

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in python-novaclient:
status: Confirmed → In Progress
Revision history for this message
Neetu Jain (nutshi) wrote :
Revision history for this message
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
https://bugs.launchpad.net/python-novaclient/+bug/1103601

https://bugs.launchpad.net/python-novaclient/+bug/1531611

Revision history for this message
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 ?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.