← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1476435] [NEW] show server, security_groups does not say which interface

 

Public bug reported:

OS is Kilo.

A VM assigned multiple interfaces.

After successfully booted. The server_show command result (attached)
will show each interface's add, version and mac on the addresses
attributes.

However, the security_groups show a list of security_groups being
applied to the VM, not which interface.

It is possible to have different security_groups assigned to interface
based on the network an interface attached to.

We need to enhance the security_groups, like the addresses field to
indicating which interface, the security_groups belong to.

Here is a return from a server-show command:

In [60]: j1.nova('server-show', u'77d4e009-13ee-47d9-97f0-ded27915e4dc')
OS-Nova:2015-07-20,17:38:36 server_show args=[u'77d4e009-13ee-47d9-97f0-ded27915e4dc'] kwargs={}
Out[60]: 
{u'OS-DCF:diskConfig': u'MANUAL',
 u'OS-EXT-AZ:availability_zone': u'nova',
 u'OS-EXT-STS:power_state': 1,
 u'OS-EXT-STS:task_state': None,
 u'OS-EXT-STS:vm_state': u'active',
 u'OS-SRV-USG:launched_at': u'2015-07-20T17:26:48.000000',
 u'OS-SRV-USG:terminated_at': None,
 u'accessIPv4': u'',
 u'accessIPv6': u'',
 u'addresses': {u'j1-hill-network': [{u'OS-EXT-IPS-MAC:mac_addr': u'fa:16:3e:5d:9d:43',
    u'OS-EXT-IPS:type': u'fixed',
    u'addr': u'10.168.11.3',
    u'version': 4}],
  u'j1-top-network': [{u'OS-EXT-IPS-MAC:mac_addr': u'fa:16:3e:df:40:df',
    u'OS-EXT-IPS:type': u'fixed',
    u'addr': u'10.168.33.4',
    u'version': 4}]},
 u'config_drive': u'',
 u'created': u'2015-07-20T17:24:19Z',
 u'flavor': {u'id': u'2',
  u'links': [{u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/flavors/2',
    u'rel': u'bookmark'}]},
 u'hostId': u'9d8ad1717b82e57214f5e68857ca5a39c011c79efd1a2458cbe17320',
 u'id': u'77d4e009-13ee-47d9-97f0-ded27915e4dc',
 u'image': {u'id': u'71bc5bfa-438a-4481-9d00-090dab9be1c4',
  u'links': [{u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/images/71bc5bfa-438a-4481-9d00-090dab9be1c4',
    u'rel': u'bookmark'}]},
 u'key_name': None,
 u'links': [{u'href': u'http://10.34.10.48:8774/v2/33e12c344b4b419c9db184d992c273b0/servers/77d4e009-13ee-47d9-97f0-ded27915e4dc',
   u'rel': u'self'},
  {u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/servers/77d4e009-13ee-47d9-97f0-ded27915e4dc',
   u'rel': u'bookmark'}],
 u'metadata': {},
 u'name': u'j1-hill-top',
 u'os-extended-volumes:volumes_attached': [],
 u'progress': 0,
 u'security_groups': [{u'name': u'default'}, {u'name': u'default'}],
 u'status': u'ACTIVE',
 u'tenant_id': u'33e12c344b4b419c9db184d992c273b0',
 u'updated': u'2015-07-20T17:26:48Z',
 u'user_id': u'1bec88c0341745dca4402678e8bd3dbe'}

In [61]:

** 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/1476435

Title:
  show server, security_groups does not say which interface

Status in OpenStack Compute (nova):
  New

Bug description:
  OS is Kilo.

  A VM assigned multiple interfaces.

  After successfully booted. The server_show command result (attached)
  will show each interface's add, version and mac on the addresses
  attributes.

  However, the security_groups show a list of security_groups being
  applied to the VM, not which interface.

  It is possible to have different security_groups assigned to interface
  based on the network an interface attached to.

  We need to enhance the security_groups, like the addresses field to
  indicating which interface, the security_groups belong to.

  Here is a return from a server-show command:

  In [60]: j1.nova('server-show', u'77d4e009-13ee-47d9-97f0-ded27915e4dc')
  OS-Nova:2015-07-20,17:38:36 server_show args=[u'77d4e009-13ee-47d9-97f0-ded27915e4dc'] kwargs={}
  Out[60]: 
  {u'OS-DCF:diskConfig': u'MANUAL',
   u'OS-EXT-AZ:availability_zone': u'nova',
   u'OS-EXT-STS:power_state': 1,
   u'OS-EXT-STS:task_state': None,
   u'OS-EXT-STS:vm_state': u'active',
   u'OS-SRV-USG:launched_at': u'2015-07-20T17:26:48.000000',
   u'OS-SRV-USG:terminated_at': None,
   u'accessIPv4': u'',
   u'accessIPv6': u'',
   u'addresses': {u'j1-hill-network': [{u'OS-EXT-IPS-MAC:mac_addr': u'fa:16:3e:5d:9d:43',
      u'OS-EXT-IPS:type': u'fixed',
      u'addr': u'10.168.11.3',
      u'version': 4}],
    u'j1-top-network': [{u'OS-EXT-IPS-MAC:mac_addr': u'fa:16:3e:df:40:df',
      u'OS-EXT-IPS:type': u'fixed',
      u'addr': u'10.168.33.4',
      u'version': 4}]},
   u'config_drive': u'',
   u'created': u'2015-07-20T17:24:19Z',
   u'flavor': {u'id': u'2',
    u'links': [{u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/flavors/2',
      u'rel': u'bookmark'}]},
   u'hostId': u'9d8ad1717b82e57214f5e68857ca5a39c011c79efd1a2458cbe17320',
   u'id': u'77d4e009-13ee-47d9-97f0-ded27915e4dc',
   u'image': {u'id': u'71bc5bfa-438a-4481-9d00-090dab9be1c4',
    u'links': [{u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/images/71bc5bfa-438a-4481-9d00-090dab9be1c4',
      u'rel': u'bookmark'}]},
   u'key_name': None,
   u'links': [{u'href': u'http://10.34.10.48:8774/v2/33e12c344b4b419c9db184d992c273b0/servers/77d4e009-13ee-47d9-97f0-ded27915e4dc',
     u'rel': u'self'},
    {u'href': u'http://10.34.10.48:8774/33e12c344b4b419c9db184d992c273b0/servers/77d4e009-13ee-47d9-97f0-ded27915e4dc',
     u'rel': u'bookmark'}],
   u'metadata': {},
   u'name': u'j1-hill-top',
   u'os-extended-volumes:volumes_attached': [],
   u'progress': 0,
   u'security_groups': [{u'name': u'default'}, {u'name': u'default'}],
   u'status': u'ACTIVE',
   u'tenant_id': u'33e12c344b4b419c9db184d992c273b0',
   u'updated': u'2015-07-20T17:26:48Z',
   u'user_id': u'1bec88c0341745dca4402678e8bd3dbe'}

  In [61]:

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