No validation for project name while quota show
Bug #1522713 reported by
Ashish Singh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Invalid
|
Undecided
|
Shashwat Srivastava |
Bug Description
Hi All,
There is no validation for tenant name with quota show, It just displays the default quota.
root@admin-
It should throw some exception if there is wrong tenant name with nova quota show
Thanks,
Ashish
Changed in python-novaclient: | |
assignee: | nobody → Raga lahari (raga-lahari) |
Changed in python-novaclient: | |
assignee: | Raga lahari (raga-lahari) → nobody |
Changed in python-novaclient: | |
assignee: | nobody → Saiteja Kondepudi (saiteja-kondepudi) |
To post a comment you must log in.
Hi,
To validate tenant name in novaclient for the command "nova quota-show --tenant <name>",Need to get the tenant list from keystoneclient. We are planning to implement following solution to get tenant list
from keystoneclient import session
from keystoneclient.v2_0 import client as kclient
def _tenant_list(cs): Session( cs.client. auth) Client( session= sess)
sess = session.
kc = kclient.
tenant_list = kc.tenants.list()
tenants = dict((x.id, x.name) for x in tenant_list)
Please let me know your comments.