yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04038
[Bug 1134382] Re: nova list ignores --tenant argument
** Changed in: python-novaclient
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1134382
Title:
nova list ignores --tenant argument
Status in OpenStack Compute (Nova):
Invalid
Status in Python client library for Nova:
Fix Released
Bug description:
It came to my attention that when trying to list the instances of an
specific tenant, the --tenant argument provided for the list function
is ignored.
The default tenant for this action is OS_TENANT_NAME.
Steps to reproduce:
1. Create one or more instances in different tenants, e.g. demo and demo2
2. Use nova list with --tenant argument initiated with demo's tenant id
3. Use nova list with --tenant argument initiated with demo2's tenant id
4. Check that the output is the same for 2. and 3.
Expected result: Instance list for each tenant
Actual result:
Tenant: demo - Instances: Cirros1.1 and Cirros1.2
Tenant: demo2 - Instances: Cirros2.1 and Cirros 2.2
OS_TENANT_NAME = demo
[vkmc@thermalx2 ~]$ keystone tenant-list
+----------------------------------+--------------------+---------+
| id | name | enabled |
+----------------------------------+--------------------+---------+
| 96776baee20e49c49af03967eb23e9b6 | admin | True |
| fa7880aa16d349fbb925ece6da58e93e | alt_demo | True |
| e449b529f202419994051578e3e639a9 | demo | True |
| 186b554e5b344cc5b0fa2f644d4e73c2 | demo2 | True |
| 9d862590f7ec4d0a993e44f715008fad | invisible_to_admin | True |
| 6e1525e829754ef29c8cabbde9a7566b | service | True |
+----------------------------------+--------------------+---------+
[vkmc@thermalx2 ~]$ nova list --all-tenants 1
+--------------------------------------+-----------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+--------+------------------+
| 4f3e08b5-4fb3-405d-a682-41e8840d9227 | Cirros1.1 | ACTIVE | private=10.0.0.3 |
| e74a88c5-de2d-4e9a-893a-d095b6318f61 | Cirros1.2 | ACTIVE | private=10.0.0.4 |
| 5c9c77f8-b272-43b1-80dd-69a26b2890c2 | Cirros2.1 | ACTIVE | net2=192.168.0.3 |
| 2c6ad73b-3dc5-4761-a17f-f544776a86f3 | Cirros2.2 | ACTIVE | net2=192.168.0.4 |
+--------------------------------------+-----------+--------+------------------+
[vkmc@thermalx2 ~]$ nova list --tenant e449b529f202419994051578e3e639a9 (demo)
+--------------------------------------+-----------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+--------+------------------+
| 4f3e08b5-4fb3-405d-a682-41e8840d9227 | Cirros1.1 | ACTIVE | private=10.0.0.3 |
| e74a88c5-de2d-4e9a-893a-d095b6318f61 | Cirros1.2 | ACTIVE | private=10.0.0.4 |
+--------------------------------------+-----------+--------+------------------+
[vkmc@thermalx2 ~]$ nova list --tenant 186b554e5b344cc5b0fa2f644d4e73c2 (demo2)
+--------------------------------------+-----------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+--------+------------------+
| 4f3e08b5-4fb3-405d-a682-41e8840d9227 | Cirros1.1 | ACTIVE | private=10.0.0.3 |
| e74a88c5-de2d-4e9a-893a-d095b6318f61 | Cirros1.2 | ACTIVE | private=10.0.0.4 |
+--------------------------------------+-----------+--------+------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1134382/+subscriptions