nova quota-show didn't report error when provide a non-existing tenant-id

Bug #1251141 reported by xiaohanyu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
Unassigned
python-novaclient
Invalid
Undecided
xiaohanyu

Bug Description

Seems "nova quota-show --tenant" doesn't check whether or not the "tenant id" is existing.

I think in normal ways, this should report a error if you provide a illegal tenant id.

Steps to reproduce:

Just type "nova quota-show --tenant non-existing-tenant-id", and nova will show you the default quota settings for any tenant.

Changed in python-novaclient:
assignee: nobody → xiaohanyu (xiaohanyu1988)
Revision history for this message
Chris Buccella (chris-buccella) wrote :

Hmm.... I get an HTTP 403 when I try this.

Perhaps something specific to your setup is allowing this to occur.

Revision history for this message
melanie witt (melwitt) wrote :

I also get "ERROR: Access was denied to this resource. (HTTP 403)" when I try to reproduce the issue as non-admin.

As admin, I do see quota settings even with a non-existent tenant id.

Changed in python-novaclient:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Abhishek Chanda (abhishek-i) wrote :

As an admin user, when I run the curl command, I see quota settings:

1. As an admin user, do nova --debug quota-show --tenant blahblah
2. Get the curl command
3. Run it by hand

This makes this a bug in nova and not the client

Joe Gordon (jogo)
Changed in python-novaclient:
status: Confirmed → Invalid
importance: Medium → Undecided
Revision history for this message
Jian Wen (wenjianhn) wrote :

I filed bug 1200585 which is also related to non-existing tenant-id.

I think we need to start a discussion on mailing list.

Chuck Short (zulcss)
Changed in nova:
status: New → Confirmed
Revision history for this message
Thang Pham (thang-pham) wrote :

There is a blueprint for this already and pending approval: https://blueprints.launchpad.net/openstack/?searchtext=validate-tenant-user-with-keystone. Marking this nova bug as a duplicate of bug #1313935.

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.