Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

external network is not reachable from the router

Hey everyone.

I know that this issue is really common. I installed an RDO Liberty OpenStack on top of Cent-OS 7. but i have the problem of external connectivity I troubleshooted the chain then I figured out that the problem is in the bridge-physical interface.
I have created the br-ex interface config file and modified the eth0 one.
I added via "ip netns qrouter ........." a route to the default gateway.
I have passed over other answers but I feel really confused about the parameters between Liberty and Kilo version; some answers suggest to modify /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini which does not exists in the same path in my environment (I am afraid to do a miss).
my internal net has the address 10.0.1.0/24
my external net with the address 192.168.2.0/23
my gateway is 192.168.2.1
my allocation pool for OpenStack is 192.168.3.201 --> 192.168.3.208

here is the situation description : my instances can ping the router interfaces router cannot ping external addresses router cannot ping the gateway the host can ping external addresses I don't know how to troubleshoot the bridge problems.

here is the some outputs that can help:

[root@localhost ml2(keystone_admin)]# ovs-vsctl show
ca71317d-dc86-492c-9e4a-5b8f9003676d
    Bridge br-tun
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port "eth0"
            Interface "eth0"
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port "tap14dee663-7d"
            tag: 1
            Interface "tap14dee663-7d"
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "qvo4577930b-f3"
            tag: 1
            Interface "qvo4577930b-f3"
        Port "tap67066610-4a"
            tag: 2
            Interface "tap67066610-4a"
                type: internal
        Port "qr-fc41fd61-c5"
            tag: 1
            Interface "qr-fc41fd61-c5"
                type: internal
        Port "qvo9cbce0cc-66"
            tag: 1
            Interface "qvo9cbce0cc-66"
        Port "qr-f0d96778-69"
            tag: 2
            Interface "qr-f0d96778-69"
                type: internal
    ovs_version: "2.4.0"


[root@localhost ml2(keystone_admin)]# neutron net-list
+--------------------------------------+---------+-----------------------------------------------------+
| id                                   | name    | subnets                                             |
+--------------------------------------+---------+-----------------------------------------------------+
| 08acb21d-2684-41be-9b01-4b1fecd900ed | Private | 7ae66d4e-55e4-449d-96c5-0562418392f0 10.0.1.0/24    |
| 3fe350d8-cd69-4eeb-a5cd-e220215b3675 | Public  | 8c917f64-8616-4fba-9ef4-44b9a5ad75e4 192.168.2.0/23 |
+--------------------------------------+---------+-----------------------------------------------------+


[root@localhost ml2(keystone_admin)]# neutron net-show 3fe350d8-cd69-4eeb-a5cd-e220215b3675
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 3fe350d8-cd69-4eeb-a5cd-e220215b3675 |
| mtu                       | 0                                    |
| name                      | Public                               |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 11                                   |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 8c917f64-8616-4fba-9ef4-44b9a5ad75e4 |
| tenant_id                 | 412d8dbddc86404e8c6adf90647a4b9e     |
+---------------------------+--------------------------------------+


[root@localhost ml2(keystone_admin)]# ip netns exec qrouter-139ba1ac-c505-4fa6-949b-9f8f70a855aa ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 79  bytes 7896 (7.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 79  bytes 7896 (7.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-f0d96778-69: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.202  netmask 255.255.254.0  broadcast 192.168.3.255
        inet6 fe80::f816:3eff:fe71:c6a9  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:71:c6:a9  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 184  bytes 8172 (7.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-fc41fd61-c5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.1.1  netmask 255.255.255.0  broadcast 10.0.1.255
        inet6 fe80::f816:3eff:feea:36e6  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:ea:36:e6  txqueuelen 0  (Ethernet)
        RX packets 2977  bytes 265595 (259.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2929  bytes 215757 (210.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Thank you a lot.