[Openstack-operators] anyone using openvswitch 2.0.1 (ubuntu trusty) with GRE tunnels

Robert Collins robertc at robertcollins.net
Sun Jan 19 09:56:39 UTC 2014

We've been seeing the sort of asymmetrically slow performance with
openvswitch 1.10.2 on linux 3.11 in the ci cloud we're trying to push
through to production at the moment.

Based on reports of 1.11 fixing things, I looked for 1.11 packages but
since trusty has 2.0.1 I figured it was easier to yank that in and see
what happened.

However, it's broken - I've got a few symptoms documented, though I
don't know whats cause and what effect :).

Firstly, outbound GRE packets are sent just fine. On a machine running
1.10.2, they are received and processed correctly.

Inbound GRE packets are not received though.
tcpdump shows them on the physical interface(eth2) and the local
bridged (br-untagged) but they don't hit br-tun at all:

ovs-ofctl dump-flows br-tun
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=471.219s, table=0, n_packets=483, n_bytes=39986,
idle_age=1, priority=1,in_port=1 actions=resubmit(,1)
 cookie=0x0, duration=470.535s, table=0, n_packets=0, n_bytes=0,
idle_age=470, priority=1,in_port=2 actions=resubmit(,2)
note the n_packets=0 on in_port 2, which is the gre port:
 2(gre- addr:92:07:f1:42:f3:a4
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
oddly but perhaps unrelated?, that port name is truncated -
    Bridge br-tun
        Port br-tun
            Interface br-tun
                type: internal
        Port "gre-"
            Interface "gre-"
                type: gre
                options: {in_key=flow, local_ip="",
out_key=flow, remote_ip=""}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}

The kernel datapath doesn't bring up the incoming flow - for instance,
on 1.10.2 we'd see:
# ovs-appctl dpif/dump-flows br-tun
packets:3963, bytes:166446, used:0.756s,
packets:0, bytes:0, used:4.610s, actions:drop

but on 2.0.1 we see:
# ovs-appctl dpif/dump-flows br-tun

There's nothing in iptables-save to suggest we're filtering GRE (and
in fact just replacing the openvswitch module without rebooting or
running iptables commands).

I'm not sure how/where the incoming GRE packets are handled - I
suspect it's in-kernel and somewhat inaccessible for debugging...


Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud

More information about the OpenStack-operators mailing list