Page 1 of 1

unable to ping gateway with openvswitch qrouter

Posted: 5. May 2014, 21:13
by dr.cha
hello. i have a problem about network.
in short i can't ping to gateway on network namespace.

the environment i've setup is like this
virtualbox virsion : 4.3.2(r90405)
host : windows 7 64bit
guest : centos 6.5 64bit (openstack network node - l3 agent running)

using virtualbox as a test bed for openstack, i found really strange thing which isn't happening on vmware workstation.
as you can see below, i can get mac address of gateway, but can't ping it or can't arping it neither.
but pinging to other node which is on the same subnet seems to be working fine (192.168.1.140).
192.168.1.X is gateway of my router, which is on bridged network

on vmware, everything works fine, but only on virtualbox.
i don't know why this is happening, but this is really frustrating problem for cloud users to use virtualbox as testing bed for openstack.

Code: Select all

[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arp -av
controller-external (192.168.1.140) at 08:00:27:bc:37:fb [ether] on qg-a2acd6cd-97
? (192.168.1.1) at 04:8d:38:08:49:ce [ether] on qg-a2acd6cd-97   [b] <== found mac address of gateway[/b]
Entries: 2      Skipped: 0      Found: 2
[root@network ~]#
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arping -I qg-a2acd6cd-97 192.168.1.140
sysfs read broadcast value: No such file or directory
falling back to default broadcast value
ARPING 192.168.1.140 from 192.168.1.191 qg-a2acd6cd-97
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB]  2.104ms [b] <== success on arping to host on the same subnet [/b]
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB]  5.204ms
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB]  3.165ms
Unicast reply from 192.168.1.140 [08:00:27:BC:37:FB]  5.058ms
^CSent 4 probes (1 broadcast(s))
Received 4 response(s)

[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} arping -I qg-a2acd6cd-97 192.168.1.1
sysfs read broadcast value: No such file or directory  <== [b]failed on arping to gateway : no response [/b]
falling back to default broadcast value
ARPING 192.168.1.1 from 192.168.1.191 qg-a2acd6cd-97
^CSent 68 probes (68 broadcast(s))
Received 0 response(s)

[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} ping 192.168.1.140
PING 192.168.1.140 (192.168.1.140) 56(84) bytes of data.
64 bytes from 192.168.1.140: icmp_seq=1 ttl=64 time=2.36 ms  [b] <== success on pinging to host on the same subnet [/b]
64 bytes from 192.168.1.140: icmp_seq=2 ttl=64 time=2.66 ms
64 bytes from 192.168.1.140: icmp_seq=3 ttl=64 time=1.97 ms
64 bytes from 192.168.1.140: icmp_seq=4 ttl=64 time=2.15 ms
64 bytes from 192.168.1.140: icmp_seq=5 ttl=64 time=1.01 ms
^C
--- 192.168.1.140 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4434ms
rtt min/avg/max/mdev = 1.013/2.035/2.669/0.561 ms
[root@network ~]# ip netns | grep router | xargs -i ip netns exec {} ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.191 icmp_seq=10 Destination Host Unreachable   <== [b]failed on pinging to gateway : unreachable [/b]
From 192.168.1.191 icmp_seq=11 Destination Host Unreachable
From 192.168.1.191 icmp_seq=12 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
13 packets transmitted, 0 received, +3 errors, 100% packet loss, time 12364ms
pipe 3


i'm using eth1 as external nic, but it`s on promisc mode. the actual networking is on openvswitch.

Code: Select all

[root@network ~]# ovs-vsctl show
a5cca86d-7738-44ab-b4c3-fa5a9b21a6fc
    Bridge br-ex
        Port "qg-a2acd6cd-97"
            Interface "qg-a2acd6cd-97"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth1"   [b] <== my external nic[/b]
            Interface "eth1"
    Bridge br-tun
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "gre-0a0a0a0f"
            Interface "gre-0a0a0a0f"
                type: gre
                options: {in_key=flow, local_ip="10.10.10.14", out_key=flow, remote_ip="10.10.10.15"}
        Port br-tun
            Interface br-tun
                type: internal
        Port "gre-0a0a0a10"
            Interface "gre-0a0a0a10"
                type: gre
                options: {in_key=flow, local_ip="10.10.10.14", out_key=flow, remote_ip="10.10.10.16"}
    Bridge br-int
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tap5657b6f0-3f"
            tag: 3
            Interface "qr-ad9feea5-2d"
                type: internal
    ovs_version: "1.11.0"

Re: unable to ping gateway with openvswitch qrouter

Posted: 13. May 2014, 14:21
by noteirak
None of your console output is useful I am afraid.

Show the output of the following command in the VM :

Code: Select all

ifconfig /a
ip addr
route -n
ping 192.168.1.1
ping 8.8.8.8
nslookup 8.8.8.8
Also, what are you briding on? wireless, wired? NIC name would help too.

Re: unable to ping gateway with openvswitch qrouter

Posted: 15. Jun 2014, 18:38
by dr.cha
sorry to say this, but if you don't understand those console out put,
then you cannot help me.

Re: unable to ping gateway with openvswitch qrouter

Posted: 15. Jun 2014, 18:59
by Martin
Well, it seems that we volunteers here don't know openvswitch.
So if you cannot explain your problem and how you think it is related to VirtualBox then we cannot help you.

Re: unable to ping gateway with openvswitch qrouter

Posted: 15. Jun 2014, 23:06
by noteirak
dr.cha wrote:sorry to say this, but if you don't understand those console out put,
then you cannot help me.
I said they are not useful, not that I don't understand them.

Re: unable to ping gateway with openvswitch qrouter

Posted: 28. Jun 2014, 14:19
by dr.cha
noteirak wrote:None of your console output is useful I am afraid.

Show the output of the following command in the VM :

Code: Select all

ifconfig /a
ip addr
route -n
ping 192.168.1.1
ping 8.8.8.8
nslookup 8.8.8.8
Also, what are you briding on? wireless, wired? NIC name would help too.
It doesn't matter what NIC is here, because this thing happends on all of the computers including hp notebook, iMac 27 of 2013 and est,
those of which include various NIC card.

and about "ping, route .. " things. those of the basic testing are passed one.
which are to me useless.

thanks noteirak.

Re: unable to ping gateway with openvswitch qrouter

Posted: 28. Jun 2014, 22:53
by noteirak
Then I am afraid we cannot help you, and unless shown otherwise, this is not a Virtualbox problem.