← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1408908] Re: Nova API secgroup-list doesn't support all_tenants

 

Cannot reproduce in current dev master branch. Using a newly-installed
devstack:

ed@newstack:~(master)$ source demo.rc 
ed@newstack:~(master)$ nova secgroup-list
+----+---------+-------------+
| Id | Name    | Description |
+----+---------+-------------+
| 1  | default | default     |
+----+---------+-------------+
ed@newstack:~(master)$ source nova.rc 
ed@newstack:~(master)$ nova secgroup-list
+----+---------+-------------+
| Id | Name    | Description |
+----+---------+-------------+
| 2  | default | default     |
+----+---------+-------------+
ed@newstack:~(master)$ nova secgroup-list --all-tenants
+----+---------+-------------+----------------------------------+
| Id | Name    | Description | Tenant_ID                        |
+----+---------+-------------+----------------------------------+
| 1  | default | default     | 4181746562734419913fdbcc05409e0e |
| 2  | default | default     | 5a76dc40f9814fb692e45f5511e5057f |
+----+---------+-------------+----------------------------------+


** Changed in: nova
       Status: Confirmed => Invalid

-- 
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/1408908

Title:
  Nova API secgroup-list doesn't support all_tenants

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  When nova secgroup-list --all-tenants is given with sourcing admin, it is returning secgroups of  only admin tenant.
  It should actually list secgroups of all the tenants present.
  This bug is reproduced in stable/icehouse and stable/juno

  Steps to reproduce this bug:

  ubuntu@ubuntu-ThinkCentre-M92p:~/devstack$ source openrc rem REMEMBER

  ubuntu@ubuntu-ThinkCentre-M92p:~/devstack$ nova secgroup-list
  +--------------------------------------+---------+-------------+
  | Id                                   | Name    | Description |
  +--------------------------------------+---------+-------------+
  | 4a00a598-e125-41c3-80ab-d9a6055d9a21 | default | default     |
  +--------------------------------------+---------+-------------+

  
  ubuntu@ubuntu-ThinkCentre-M92p:~/devstack$ source openrc admin admin

  
  ubuntu@ubuntu-ThinkCentre-M92p:~/devstack$ nova secgroup-list
  +--------------------------------------+---------+-------------+
  | Id                                   | Name    | Description |
  +--------------------------------------+---------+-------------+
  | 51df59f5-1a05-4e99-9cbd-867114017e65 | default | default     |
  +--------------------------------------+---------+-------------+
  ubuntu@ubuntu-ThinkCentre-M92p:~/devstack$ nova secgroup-list --all-tenants
  +--------------------------------------+---------+-------------+----------------------------------+
  | Id                                   | Name    | Description | Tenant_ID                        |
  +--------------------------------------+---------+-------------+----------------------------------+
  | 51df59f5-1a05-4e99-9cbd-867114017e65 | default | default     | d6c7a334353c4613900bfe822ac93d0e |
  +--------------------------------------+---------+-------------+----------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1408908/+subscriptions


References