← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394462] Re: nova show output should display sec-group id instead of name

 

Nova-network doesn't allow duplicate security group names, but neutron
does. That's why only names are returned (precedent by nova-network). In
the future, we should change/add to the api to include ids in nova,
maybe via the microversioning capability.

** Changed in: nova
   Importance: Undecided => Wishlist

** Tags added: api

** Also affects: python-novaclient
   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/1394462

Title:
  nova show output should display sec-group id instead of name

Status in OpenStack Compute (Nova):
  Confirmed
Status in Python client library for Nova:
  Confirmed

Bug description:

  As nova security-group-create allowing more than one group with the
  same name. showing security-group name in nova show is not correct

  I have two security groups with name default.

  ram@ubuntu:~$ neutron security-group-list
  +--------------------------------------+---------+-------------+
  | id                                   | name    | description |
  +--------------------------------------+---------+-------------+
  | 2d3d1914-32d1-451f-b4bc-ed5eeda398ee | default | default     |
  | c2d19dea-0863-40d5-872c-543f97b00bd4 | default | default     |
  +--------------------------------------+---------+-------------+

  In this case, I did not specify any security group while spawning the
  instance. I do not know how nova boot picks the default security group
  but nova show displays "default" in the security group.

  ram@ubuntu:~$ nova show first
  +--------------------------------------+----------------------------------------------------------------+
  | Property                             | Value                                                          |
  +--------------------------------------+----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                         |
  | OS-EXT-AZ:availability_zone          | nova                                                           |
  | OS-EXT-SRV-ATTR:host                 | ubuntu                                                         |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | ubuntu                                                         |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000001                                              |
  | OS-EXT-STS:power_state               | 1                                                              |
  | OS-EXT-STS:task_state                | -                                                              |
  | OS-EXT-STS:vm_state                  | active                                                         |
  | OS-SRV-USG:launched_at               | 2014-11-19T18:42:00.000000                                     |
  | OS-SRV-USG:terminated_at             | -                                                              |
  | accessIPv4                           |                                                                |
  | accessIPv6                           |                                                                |
  | config_drive                         |                                                                |
  | created                              | 2014-11-19T18:41:15Z                                           |
  | flavor                               | m1.tiny (1)                                                    |
  | hostId                               | 4ac39bb970bb90f0aca2efaca1f43cc2997f6550a1449f08ade677af       |
  | id                                   | 8f7eb319-8f5d-46c2-bb1f-6a16838ef7b1                           |
  | image                                | cirros-0.3.2-x86_64-uec (90aa74a4-138a-4a1a-a530-aa1cd4ee5e05) |
  | key_name                             | -                                                              |
  | metadata                             | {}                                                             |
  | name                                 | first                                                          |
  | os-extended-volumes:volumes_attached | []                                                             |
  | private network                      | 10.0.0.2                                                       |
  | progress                             | 0                                                              |
  | security_groups                      | default                                                        | ---------------------------> security group 
  | status                               | ACTIVE                                                         |
  | tenant_id                            | e747bc1a96ea4d88a0ddf7b2df8e0ad8                               |
  | updated                              | 2014-11-19T18:42:01Z                                           |
  | user_id                              | 31a22dcf6b0a437294cb6c10f2996e08                               |
  +--------------------------------------+----------------------------------------------------------------+

  
  It leads to confusion in getting the security group id used by the instance..

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


References