Recently, while setting up my the network controller for OpenStack, I saw this message:

# tail -f /var/log/quantum/openvswitch-agent.log

ERROR [quantum.plugins.openvswitch.agent.ovs_quantum_agent] Failed to create OVS patch port. Cannot have tunneling enabled on this agent, since this version of OVS does not support tunnels or patch ports. Agent terminated!

What this means is that the versio of the datapath (shipped by Ubuntu) does not have the support needed to create tunnels or patch ports. This happened on Ubuntu 13.04.

Fortunately, it is VERY easy to solve this. You need to simply build your own datapath for your kernel. For this, you OpenvSwitch’s datapath source, and you need module-assistant:

You can then grab your kernel headers and any other dependencies:

I noticed that either the kernel headers do not have the version.h in the right place, or the module-assistant looks in the wrong place. You can solve this by doing:

And finally, to download, build, and install the modulle:

Now, reboot your system so that the new module is loaded, and you are ready to go. You will notice that “/var/log/quantum/openvswitch-agent.log” no longer has this issue.

6 Thoughts on “OpenStack – Quantum – Open vSwitch – datapath for tunnels or patch ports

  1. Kevin on April 9, 2014 at 11:58 am said:

    Thank you so much for your post! Huge help. It works great for me~

  2. Pingback: HOWTO OpenStack Grizzly and Ceph with Puppet on Ubuntu 12.04 | Loïc Dachary

  3. Thanks for the reply, i just decided to downgrade the kernel and run it on it, which works for me. Thanks again

  4. Hi i followed the procedure here, but i got an error while building the module “error Kernels before 2.6.18 or after 3.5 are not supported by this version of Open vSwitch, i’m installing openstack on Ubuntu 12.04 (3.8….)

Leave a Reply

Your email address will not be published. Required fields are marked *

>> NOTE: Please use <code>...</code> to post code/configs in your comment.

Post Navigation