Red Hat Bugzilla – Bug 979744
"nova list" with "--tenant" filter doesn't work
Last modified: 2014-09-08 01:39:10 EDT
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
100% (at leat in my env)
I confirmed this is still broken.
Please file an upstream bug and link the External Tracker:
This isn't important enough for 4.0.
(In reply to Jakub Ruzicka from comment #2)
> I confirmed this is still broken.
> Please file an upstream bug and link the External Tracker:
> This isn't important enough for 4.0.
I found an upstream bug about this issue, 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.
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!