Bug 979744 - "nova list" with "--tenant" filter doesn't work
Summary: "nova list" with "--tenant" filter doesn't work
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Jakub Ruzicka
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-30 07:44 UTC by Rami Vaknin
Modified: 2014-09-08 05:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-07 15:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1134382 0 None None None Never

Description Rami Vaknin 2013-06-30 07:44:12 UTC
Description of problem:
The command argument that lets admin to list the instances of a specific tenant doesn't work:

nova list --tenant <tenant_id or tenant_name, the doc is not clear here>

The output is empty although there are instances on the queried tenant.

Note that "--all-tenant" argument works well.


Version-Release number of selected component (if applicable):
Grizzly on rhel6.4, python-nova-2013.1.2-2.el6ost

How reproducible:
100% (at leat in my env)

Comment 2 Jakub Ruzicka 2013-11-05 16:51:56 UTC
I confirmed this is still broken.

Please file an upstream bug and link the External Tracker:

https://bugs.launchpad.net/python-novaclient/+filebug

This isn't important enough for 4.0.

Comment 3 Rami Vaknin 2013-11-05 21:02:14 UTC
(In reply to Jakub Ruzicka from comment #2)
> I confirmed this is still broken.
> 
> Please file an upstream bug and link the External Tracker:
> 
> https://bugs.launchpad.net/python-novaclient/+filebug
> 
> This isn't important enough for 4.0.

I found an upstream bug about this issue[1], it was closed as Invalid with the explanation that a filter can be applied only when using the --all-tenant, which means that the working syntax is:

nova list --all-tenant --tenant <a_tenant_name>

I checked this syntax and it works, however, I still think this is a bug because the syntax is different in other openstack cli commands where filtering on a non-admin tenant by an admin user.

[1] https://bugs.launchpad.net/python-novaclient/+bug/1134382

Comment 4 Jakub Ruzicka 2013-11-07 15:15:47 UTC
So the problem here is weird but intended behavior rather than an incorrect one.

Upstream thinks this isn't a bug and I think changing this isn't worth downstream effort so I'm closing.

Please feel free to file upstream Wishlist bug!


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