← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1467544] [NEW] Network field update delayed if a few net-id were specified during creation

 

Public bug reported:

Steps to reproduce:

1. Create a few networks. In my case they were shared external networks
of 'vlan' type.

Example:
neutron net-create internet_192.168.16.64/27 --router:external True --provider:physical_network internet --provider:network_type  vlan --provider:segmentation_id 20 --shared
neutron subnet-create internet_192.168.16.64/27 --enable-dhcp --gateway=192.168.16.65 --dns-nameserver=8.8.8.8 --dns-nameserver=77.88.8.8 192.168.16.64/27


2. Boot instance:

 nova boot  --flavor  m1.small --image cirros --key-name x220 --nic net-
id=25f7440e-5ffd-4407-a83e-0bce6e8c216d --nic net-
id=a3af8097-f348-4767-97c3-b9bf75263ef9 myinstance

3. Get instance info after it becomes 'ACTIVE':

nova show 0111cff2-205f-493c-9d37-bf8a550270a2
+--------------------------------------+-------------------------------------------------------------------+
| Property                             | Value                                                             |
+--------------------------------------+-------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                            |
| OS-EXT-AZ:availability_zone          | nova                                                              |
| OS-EXT-STS:power_state               | 1                                                                 |
| OS-EXT-STS:task_state                | -                                                                 |
| OS-EXT-STS:vm_state                  | active                                                            |
| OS-SRV-USG:launched_at               | 2015-06-22T13:47:10.000000                                        |
| OS-SRV-USG:terminated_at             | -                                                                 |
| accessIPv4                           |                                                                   |
| accessIPv6                           |                                                                   |
| config_drive                         |                                                                   |
| created                              | 2015-06-22T13:47:03Z                                              |
| flavor                               | SSD.30 (30)                                                       |
| hostId                               | ac01a9c7098d3d6f769fabd7071794ba11cca06d11a15867da898dbc          |
| id                                   | 0111cff2-205f-493c-9d37-bf8a550270a2                              |
| image                                | Debian 8.0 Jessie (x86_64) (cc00f340-c927-4309-965e-63f02c94027d) |
| internet_192.168.16.192/27 network   | 192.168.16.205                                                    |
| key_name                             | x220                                                              |
| local_private network                |                                                                   |
| metadata                             | {}                                                                |
| name                                 | hands                                                             |
| os-extended-volumes:volumes_attached | []                                                                |
| progress                             | 0                                                                 |
| security_groups                      | default                                                           |
| status                               | ACTIVE                                                            |
| tenant_id                            | 1d7f6604ebb54c69820f9d157bcea5f9                                  |
| updated                              | 2015-06-22T13:47:10Z                                              |
| user_id                              | 51b457fc5dee4b6098093542bd659e8a                                  |
+--------------------------------------+-------------------------------------------------------------------+

The local_private network field is empty.

Expected: it contains an IP address.

This can be fixed by nova refresh-network, but it requires admin
privileges.

Version: nova 2014.2.4 with neutron network.

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  Steps to reproduce:
  
- 1. Create a few networks. In my case they were external networks of 'vlan' type. 
+ 1. Create a few networks. In my case they were shared external networks of 'vlan' type.
  2. Boot instance:
  
-  nova boot  --flavor  m1.small --image cirros --key-name x220 --nic net-
+  nova boot  --flavor  m1.small --image cirros --key-name x220 --nic net-
  id=25f7440e-5ffd-4407-a83e-0bce6e8c216d --nic net-
  id=a3af8097-f348-4767-97c3-b9bf75263ef9 myinstance
  
  3. Get instance info after it becomes 'ACTIVE':
  
  nova show 0111cff2-205f-493c-9d37-bf8a550270a2
  +--------------------------------------+-------------------------------------------------------------------+
  | Property                             | Value                                                             |
  +--------------------------------------+-------------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                            |
  | OS-EXT-AZ:availability_zone          | nova                                                              |
  | OS-EXT-STS:power_state               | 1                                                                 |
  | OS-EXT-STS:task_state                | -                                                                 |
  | OS-EXT-STS:vm_state                  | active                                                            |
  | OS-SRV-USG:launched_at               | 2015-06-22T13:47:10.000000                                        |
  | OS-SRV-USG:terminated_at             | -                                                                 |
  | accessIPv4                           |                                                                   |
  | accessIPv6                           |                                                                   |
  | config_drive                         |                                                                   |
  | created                              | 2015-06-22T13:47:03Z                                              |
  | flavor                               | SSD.30 (30)                                                       |
  | hostId                               | ac01a9c7098d3d6f769fabd7071794ba11cca06d11a15867da898dbc          |
  | id                                   | 0111cff2-205f-493c-9d37-bf8a550270a2                              |
  | image                                | Debian 8.0 Jessie (x86_64) (cc00f340-c927-4309-965e-63f02c94027d) |
  | internet_192.168.16.192/27 network   | 192.168.16.205                                                    |
  | key_name                             | x220                                                              |
  | local_private network                |                                                                   |
  | metadata                             | {}                                                                |
  | name                                 | hands                                                             |
  | os-extended-volumes:volumes_attached | []                                                                |
  | progress                             | 0                                                                 |
  | security_groups                      | default                                                           |
  | status                               | ACTIVE                                                            |
  | tenant_id                            | 1d7f6604ebb54c69820f9d157bcea5f9                                  |
  | updated                              | 2015-06-22T13:47:10Z                                              |
  | user_id                              | 51b457fc5dee4b6098093542bd659e8a                                  |
  +--------------------------------------+-------------------------------------------------------------------+
  
- 
  The local_private network field is empty.
  
  Expected: it contains an IP address.
  
  This can be fixed by nova refresh-network, but it requires admin
  privileges.
  
  Version: nova 2014.2.4 with neutron network.

** Description changed:

  Steps to reproduce:
  
- 1. Create a few networks. In my case they were shared external networks of 'vlan' type.
+ 1. Create a few networks. In my case they were shared external networks
+ of 'vlan' type.
+ 
+ Example:
+ neutron net-create internet_192.168.16.64/27 --router:external True --provider:physical_network internet --provider:network_type  vlan --provider:segmentation_id 20 --shared
+ neutron subnet-create internet_192.168.16.64/27 --enable-dhcp --gateway=192.168.16.65 --dns-nameserver=8.8.8.8 --dns-nameserver=77.88.8.8 192.168.16.64/27
+ 
+ 
  2. Boot instance:
  
   nova boot  --flavor  m1.small --image cirros --key-name x220 --nic net-
  id=25f7440e-5ffd-4407-a83e-0bce6e8c216d --nic net-
  id=a3af8097-f348-4767-97c3-b9bf75263ef9 myinstance
  
  3. Get instance info after it becomes 'ACTIVE':
  
  nova show 0111cff2-205f-493c-9d37-bf8a550270a2
  +--------------------------------------+-------------------------------------------------------------------+
  | Property                             | Value                                                             |
  +--------------------------------------+-------------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                            |
  | OS-EXT-AZ:availability_zone          | nova                                                              |
  | OS-EXT-STS:power_state               | 1                                                                 |
  | OS-EXT-STS:task_state                | -                                                                 |
  | OS-EXT-STS:vm_state                  | active                                                            |
  | OS-SRV-USG:launched_at               | 2015-06-22T13:47:10.000000                                        |
  | OS-SRV-USG:terminated_at             | -                                                                 |
  | accessIPv4                           |                                                                   |
  | accessIPv6                           |                                                                   |
  | config_drive                         |                                                                   |
  | created                              | 2015-06-22T13:47:03Z                                              |
  | flavor                               | SSD.30 (30)                                                       |
  | hostId                               | ac01a9c7098d3d6f769fabd7071794ba11cca06d11a15867da898dbc          |
  | id                                   | 0111cff2-205f-493c-9d37-bf8a550270a2                              |
  | image                                | Debian 8.0 Jessie (x86_64) (cc00f340-c927-4309-965e-63f02c94027d) |
  | internet_192.168.16.192/27 network   | 192.168.16.205                                                    |
  | key_name                             | x220                                                              |
  | local_private network                |                                                                   |
  | metadata                             | {}                                                                |
  | name                                 | hands                                                             |
  | os-extended-volumes:volumes_attached | []                                                                |
  | progress                             | 0                                                                 |
  | security_groups                      | default                                                           |
  | status                               | ACTIVE                                                            |
  | tenant_id                            | 1d7f6604ebb54c69820f9d157bcea5f9                                  |
  | updated                              | 2015-06-22T13:47:10Z                                              |
  | user_id                              | 51b457fc5dee4b6098093542bd659e8a                                  |
  +--------------------------------------+-------------------------------------------------------------------+
  
  The local_private network field is empty.
  
  Expected: it contains an IP address.
  
  This can be fixed by nova refresh-network, but it requires admin
  privileges.
  
  Version: nova 2014.2.4 with neutron network.

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

Title:
  Network field update delayed if a few net-id were specified during
  creation

Status in OpenStack Compute (Nova):
  New

Bug description:
  Steps to reproduce:

  1. Create a few networks. In my case they were shared external
  networks of 'vlan' type.

  Example:
  neutron net-create internet_192.168.16.64/27 --router:external True --provider:physical_network internet --provider:network_type  vlan --provider:segmentation_id 20 --shared
  neutron subnet-create internet_192.168.16.64/27 --enable-dhcp --gateway=192.168.16.65 --dns-nameserver=8.8.8.8 --dns-nameserver=77.88.8.8 192.168.16.64/27

  
  2. Boot instance:

   nova boot  --flavor  m1.small --image cirros --key-name x220 --nic
  net-id=25f7440e-5ffd-4407-a83e-0bce6e8c216d --nic net-
  id=a3af8097-f348-4767-97c3-b9bf75263ef9 myinstance

  3. Get instance info after it becomes 'ACTIVE':

  nova show 0111cff2-205f-493c-9d37-bf8a550270a2
  +--------------------------------------+-------------------------------------------------------------------+
  | Property                             | Value                                                             |
  +--------------------------------------+-------------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                            |
  | OS-EXT-AZ:availability_zone          | nova                                                              |
  | OS-EXT-STS:power_state               | 1                                                                 |
  | OS-EXT-STS:task_state                | -                                                                 |
  | OS-EXT-STS:vm_state                  | active                                                            |
  | OS-SRV-USG:launched_at               | 2015-06-22T13:47:10.000000                                        |
  | OS-SRV-USG:terminated_at             | -                                                                 |
  | accessIPv4                           |                                                                   |
  | accessIPv6                           |                                                                   |
  | config_drive                         |                                                                   |
  | created                              | 2015-06-22T13:47:03Z                                              |
  | flavor                               | SSD.30 (30)                                                       |
  | hostId                               | ac01a9c7098d3d6f769fabd7071794ba11cca06d11a15867da898dbc          |
  | id                                   | 0111cff2-205f-493c-9d37-bf8a550270a2                              |
  | image                                | Debian 8.0 Jessie (x86_64) (cc00f340-c927-4309-965e-63f02c94027d) |
  | internet_192.168.16.192/27 network   | 192.168.16.205                                                    |
  | key_name                             | x220                                                              |
  | local_private network                |                                                                   |
  | metadata                             | {}                                                                |
  | name                                 | hands                                                             |
  | os-extended-volumes:volumes_attached | []                                                                |
  | progress                             | 0                                                                 |
  | security_groups                      | default                                                           |
  | status                               | ACTIVE                                                            |
  | tenant_id                            | 1d7f6604ebb54c69820f9d157bcea5f9                                  |
  | updated                              | 2015-06-22T13:47:10Z                                              |
  | user_id                              | 51b457fc5dee4b6098093542bd659e8a                                  |
  +--------------------------------------+-------------------------------------------------------------------+

  The local_private network field is empty.

  Expected: it contains an IP address.

  This can be fixed by nova refresh-network, but it requires admin
  privileges.

  Version: nova 2014.2.4 with neutron network.

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


Follow ups

References