Ask Your Question

Nova list --tenant <tenant-name> not working

asked 2015-04-17 04:48:10 -0500

Openstackuser2013 gravatar image

I am using Icehouse on Ubuntu.

According to nova help list there is command to list only instances of specific tenant:

--tenant [<tenant>]   Display information from single tenant (Admin only).

However this command returns list instances on current tenant. I execute these commands with admin rights.

I have tried all the forms I can think of:

nova list --tenant secondary_tenant

nova list --tenant <id of secondary tenant>

nova list --tenant=secondary

nova list --tenant=<id of secondary>

nova list --tenant [secondary]

nova list --tenant non-existent-tenant

All these return information of the current tenant only. How can I get list of instances running on specific tenant?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-04-17 11:07:20 -0500

Poonam Agarwal gravatar image
1. 'nova list' shows the instance in admin tenant

2. 'nova list --all-tenants' shows both instances, the one in demo tenant and the one in admin tenant

3. 'nova list --tenant 5d460e88a8ea450c9c992e7a07d34889 --all-tenants' shows the instance in demo tenant

4. 'nova list --all-tenants --tenant blah' shows an empty list

5. 'nova list --tenant blah' shows the instance in admin tenant

Try using the demo tenant ID and --all-tenants as suggested in point 3 above.
edit flag offensive delete link more


  1. Is what I was looking for. Thanks.
Openstackuser2013 gravatar imageOpenstackuser2013 ( 2015-04-20 00:24:08 -0500 )edit

answered 2015-04-17 12:59:16 -0500

dodi gravatar image

An option would be setup an openrc file to export your tenant creds to be able to query information of your specific tenant via openstack command, in horizon you will need to add the user admin to the project of the tenant to be able to use the admin credentials while querying for the tenant information.

export OS_USERNAME=username export OS_PASSWORD=password export OS_TENANT_NAME=projectName export OS_AUTH_URL=https://identityHost:portNumber/v2.0

after that you can type:

source (filename)

then you can now run your commands and it will display the intances for that given user. When you were executing the nova list, it is currently defaulting to the admin user which might not have an instance.

This link might be helpful for the openrc setup.

edit flag offensive delete link more

answered 2015-04-17 17:18:09 -0500

tjiagoM gravatar image

I think you are looking for this:


Maybe this link could give you more help: (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-17 04:48:10 -0500

Seen: 23,136 times

Last updated: Apr 17 '15