Can't ping gateway inteface - provider external network

asked 2018-07-13 04:40:41 -0500

baru gravatar image

I've deployed an Openstack Pike from Packstack, currently all on one node. I have two vlan subinterfaces which are added to br-provider1 and br-provider2, then mapped physnet1:br-provder1,physnet2:br-provider2, external_network_bridge="". I created an external network and subnet with:

neutron net-create provider --router:external True --provider:network_type=flat --provider:physical_network=physnet1
neutron subnet-create "provider" --allocation-pool start=10.154.82.10,end=10.154.83.254 --disable-dhcp --gateway 10.154.82.1 10.154.82.0/23

But when i try to ping from qrouter namespace I can't reach 10.154.82.1 gateway:

# ip netns e qrouter-ca1d0873-b311-4667-8319-3fe9774a3138 ping 10.154.82.1
PING 10.154.82.1 (10.154.82.1) 56(84) bytes of data.
From 10.154.82.11 icmp_seq=1 Destination Host Unreachable

tcpdump:

# ip netns e qrouter-ca1d0873-b311-4667-8319-3fe9774a3138 tcpdump -qnntpi any
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
ARP, Request who-has 10.154.82.1 tell 10.154.82.11, length 28
ARP, Request who-has 10.154.82.1 tell 10.154.82.11, length 28
ARP, Request who-has 10.154.82.1 tell 10.154.82.11, length 28
IP 10.154.82.11 > 10.154.82.11: ICMP host 10.154.82.1 unreachable, length 92
IP 10.154.82.11 > 10.154.82.11: ICMP host 10.154.82.1 unreachable, length 92
IP 10.154.82.11 > 10.154.82.11: ICMP host 10.154.82.1 unreachable, length 92
IP 10.154.82.11 > 10.154.82.11: ICMP host 10.154.82.1 unreachable, length 92

Flows:

# ovs-ofctl dump-flows br-provider1
NXST_FLOW reply (xid=0x4):
 cookie=0x8d2cc001cb0a0f6e, duration=1345.834s, table=0, n_packets=26, n_bytes=1284, idle_age=1065, priority=4,in_port=2,dl_vlan=2 actions=strip_vlan,NORMAL

OVS and routes:

Bridge br-int
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port "qg-dafe2a65-b2"
        tag: 2
        Interface "qg-dafe2a65-b2"
            type: internal
    Port "int-br-pr6e8b65"
        Interface "int-br-pr6e8b65"
            type: patch
            options: {peer="phy-br-pr6e8b65"}
    Port "tap4fbfc20a-0d"
        tag: 1
        Interface "tap4fbfc20a-0d"
            type: internal
    Port "int-br-prcebb81"
        Interface "int-br-prcebb81"
            type: patch
            options: {peer="phy-br-prcebb81"}
    Port br-int
        Interface br-int
            type: internal
    Port patch-tun
        Interface patch-tun
            type: patch
            options: {peer=patch-int}
    Port "qr-90fe657e-b1"
        tag: 1
        Interface "qr-90fe657e-b1"
            type: internal
Bridge "br-provider1"
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port "phy-br-prcebb81"
        Interface "phy-br-prcebb81"
            type: patch
            options: {peer="int-br-prcebb81"}
    Port "eno1.1200"
        Interface "eno1.1200"
    Port "br-provider1"
        Interface "br-provider1"
            type: internal

# ip netns e qrouter-ca1d0873-b311-4667-8319-3fe9774a3138 ip r
default via 10.154.82.1 dev qg-dafe2a65-b2 
10.154.82.0/23 dev qg-dafe2a65-b2 proto kernel scope link src 10.154.82.11 
192.168.100.0/24 dev qr-90fe657e-b1 proto kernel scope link src 192.168.100.1
edit retag flag offensive close merge delete