← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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 |
+--------------------------------------+---------+-------------+----------------------------------+

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References