← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1556074] Re: Adding physical provider network interface to router casues VM's to loose connectivity to provider network

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1556074

Title:
  Adding physical provider network interface to router casues VM's to
  loose connectivity to provider network

Status in neutron:
  Expired

Bug description:
  Description:

  - Created physical provider network "phy-provider"  with subnet
  192.168.0.0/16 GW: 192.168.0.4

  $ neutron subnet-show 3b1de861-6324-4dac-9c7d-382065280505
  +-------------------------------+-----------------------------------------------------------------------------+
  | Field                               | Value                                                                                         |
  +------------------------------+------------------------------------------------------------------------------+
  | allocation_pools        | {"start": "192.168.0.11", "end": "192.168.121.255"}   |
  |                                         | {"start": "192.168.123.1", "end": "192.168.255.254"} |
  | cidr                                 | 192.168.0.0/16                                                                        |
  | dns_nameservers      |                                                                                                      |
  | enable_dhcp               | True                                                                                            |
  | gateway_ip                  | 192.168.0.4                                                                              |
  | host_routes                 |                                                                                                      |
  | id                                     | 3b1de861-6324-4dac-9c7d-382065280505                  |
  | ip_version                     | 4                                                                                                  |
  | ipv6_address_mode  |                                                                                                     |
  | ipv6_ra_mode             |                                                                                                      |
  | name                              | provider-subnet192                                                              |
  | network_id                  | 84f54ac6-0c69-4ca1-aef0-fed4d856a6b1                      |
  | subnetpool_id            |                                                                                                      |
  | tenant_id                     | d6f7a5e8d626495e9bc470da5bf63c8d                         |
  +-------------------+-----------------------------------------------------------------------------------------+

  - On VM's having provider network interface

  $ ifconfig eth0
  eth0      Link encap:Ethernet  HWaddr FA:16:3E:2A:38:A7
            inet addr:192.168.0.121  Bcast:192.168.255.255  Mask:255.255.0.0
            inet6 addr: fe80::f816:3eff:fe2a:38a7/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:5984294 errors:0 dropped:0 overruns:0 frame:0
            TX packets:1156 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:368453518 (351.3 MiB)  TX bytes:112710 (110.0 KiB)

  $ ping 192.168.0.114
  PING 192.168.0.114 (192.168.0.114): 56 data bytes
  64 bytes from 192.168.0.114: seq=0 ttl=64 time=1.329 ms
  64 bytes from 192.168.0.114: seq=1 ttl=64 time=0.597 ms
  64 bytes from 192.168.0.114: seq=2 ttl=64 time=0.490 ms

  $ ping google.com
  PING google.com (216.58.218.110): 56 data bytes
  64 bytes from 216.58.218.110: seq=0 ttl=57 time=1.568 ms
  64 bytes from 216.58.218.110: seq=1 ttl=57 time=1.619 ms
  64 bytes from 216.58.218.110: seq=2 ttl=57 time=1.616 ms
  64 bytes from 216.58.218.110: seq=3 ttl=57 time=1.623 ms

  
  - Add provider network interface to router
  $ neutron router-interface-add abc_prov 3b1de861-6324-4dac-9c7d-382065280505
  Added interface b8a8d553-059a-4261-976a-281e4f1758ea to router abc_prov.

  
  Observation:
  VM looses connectivity to internet.
  $ ping google.com

  
  ^C
  $

  
  Root cause:
  When we add the provider network interface to router, neutron assigns provider network gateway IP to router interface. This stalls the VMs communication with the already existing provider network gateway.

  $ neutron router-port-list abc_prov
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
  | id                                   | name | mac_address       | fixed_ips                                                                          |
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
  | b8a8d553-059a-4261-976a-281e4f1758ea |      | fa:16:3e:1e:b7:8c | {"subnet_id": "3b1de861-6324-4dac-9c7d-382065280505", "ip_address": "192.168.0.4"} |
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+

  
  Expected Output: 
  Since provider network is attributed with "physical_network", add router interface to this network should return error with code 403 - forbidden

  
  Setup Description / Version-
  	OpenStack Neutron with OVN Plugin
  	neutron-server version 8.0.0
  	networking-ovn latest stable release

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


References