<div dir="ltr">You should follow the instructions here: <a href="http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob;f=INSTALL;h=5589fe7dd7203308bbec27a562cb9899d218577a;hb=a4fff9cc390b69bde1257b414212505a72c4b450">http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob;f=INSTALL;h=5589fe7dd7203308bbec27a562cb9899d218577a;hb=a4fff9cc390b69bde1257b414212505a72c4b450</a></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 10:27 AM, Haitao Jiang <span dir="ltr"><<a href="mailto:jianghaitao@gmail.com" target="_blank">jianghaitao@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Aaron<br>
<br>
I followed instructions in<br>
<a href="http://n40lab.wordpress.com/2013/06/03/centos-6-4-openvswitch-installation/" target="_blank">http://n40lab.wordpress.com/2013/06/03/centos-6-4-openvswitch-installation/</a><br>
on my compute node as a test. Restarted OVS, but still see the same<br>
error in the ovs-vswitchd.log. This is what I have<br>
<br>
kmod-openvswitch.x86_64                          1.10.0-1.el6<br>
         @/kmod-openvswitch-1.10.0-1.el6.x86_64<br>
openstack-quantum-openvswitch.noarch    2013.1.2-1.el6<br>
@openstack-grizzly<br>
openvswitch.x86_64                                    1.10.0-1.el6<br>
              @openstack-grizzly<br>
<div class="im"><br>
filename:<br>
/lib/modules/2.6.32-358.111.1.openstack.el6.x86_64/extra/openvswitch/openvswitch.ko<br>
version:        1.10.0<br>
license:        GPL<br>
description:    Open vSwitch switching datapath<br>
srcversion:     480D55A9BB0E8B000E32010<br>
depends:<br>
vermagic:       2.6.32-358.111.1.openstack.el6.x86_64 SMP mod_unload<br>
modversions<br>
parm:           vlan_tso:Enable TSO for VLAN packets (int)<br>
<br>
</div># find / -name openvswitch.ko | xargs ls -l<br>
-rw-r--r-- 1 ovswitch ovswitch 4948350 Jul  9 21:41<br>
/home/ovswitch/rpmbuild/BUILD/openvswitch-1.10.0/_default/datapath/linux/openvswitch.ko<br>
-rw-r--r-- 1 root     root     4948350 Jul  9 21:41<br>
/lib/modules/2.6.32-358.111.1.openstack.el6.x86_64/extra/openvswitch/openvswitch.ko<br>
-rwxr--r-- 1 root     root       77936 Jun 12 20:19<br>
/lib/modules/2.6.32-358.111.1.openstack.el6.x86_64/kernel/net/openvswitch/openvswitch.ko<br>
-rwxr--r-- 1 root     root       72912 Jun 12 04:36<br>
/lib/modules/2.6.32-358.11.1.el6.x86_64/kernel/net/openvswitch/openvswitch.ko<br>
lrwxrwxrwx 1 root     root          83 Jul  9 21:42<br>
/lib/modules/2.6.32-358.11.1.el6.x86_64/weak-updates/openvswitch/openvswitch.ko<br>
-> /lib/modules/2.6.32-358.111.1.openstack.el6.x86_64/extra/openvswitch/openvswitch.ko<br>
<br>
anything else I need to check? Does above looks right to you?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Haitao<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Jul 9, 2013 at 10:29 PM, Aaron Rosen <<a href="mailto:arosen@nicira.com">arosen@nicira.com</a>> wrote:<br>
> You should be able to compile openvswitch from source here :<br>
> <a href="http://openvswitch.org/download/" target="_blank">http://openvswitch.org/download/</a> and then you'll get tunnel support.<br>
><br>
> Aaron<br>
><br>
><br>
> On Tue, Jul 9, 2013 at 10:21 PM, Haitao Jiang <<a href="mailto:jianghaitao@gmail.com">jianghaitao@gmail.com</a>> wrote:<br>
>><br>
>> Aaron & Chandler<br>
>><br>
>> Thanks a lot for the help. I should have mentioned that the host OS is<br>
>> CentOS 6.4 (specifically the kernel from RedHat RDO). I googled and<br>
>> found that it may not have gre tunneling support. Is there anyone who<br>
>> has successfully set up gre with RDO's kernel or it is just can not be<br>
>> done and I should use the VLAN.<br>
>><br>
>> As Aaron suspected, there are errprs in the OVS agent log:<br>
>><br>
>> system@ovs-system: failed to add gre-3 as port: Address family not<br>
>> supported by protocol<br>
>><br>
>> More details below<br>
>><br>
>> Any pointer will be highly appreciated!<br>
>><br>
>> Haitao<br>
>> ======================================<br>
>> Here are some outputs on my compute node (.46, .42 is the control node<br>
>> and .44 is the network node):<br>
>><br>
>><br>
>> # ovs-vsctl show<br>
>> 1d554b19-2a2b-493d-a123-0efb0aabc7d1<br>
>>     Bridge br-int<br>
>>         Port br-int<br>
>>             Interface br-int<br>
>>                 type: internal<br>
>>         Port "qvo8108425f-ef"<br>
>>             tag: 1<br>
>>             Interface "qvo8108425f-ef"<br>
>>         Port patch-tun<br>
>>             Interface patch-tun<br>
>>                 type: patch<br>
>>                 options: {peer=patch-int}<br>
>>     Bridge br-tun<br>
>>         Port br-tun<br>
>>             Interface br-tun<br>
>>                 type: internal<br>
>>         Port "gre-3"<br>
>>             Interface "gre-3"<br>
>>                 type: gre<br>
>>                 options: {in_key=flow, out_key=flow,<br>
>> remote_ip="10.18.250.44"}<br>
>>         Port "gre-4"<br>
>>             Interface "gre-4"<br>
>>                 type: gre<br>
>>                 options: {in_key=flow, out_key=flow,<br>
>> remote_ip="10.18.250.42"}<br>
>>         Port patch-int<br>
>>             Interface patch-int<br>
>>                 type: patch<br>
>>                 options: {peer=patch-tun}<br>
>>     ovs_version: "1.10.0"<br>
>><br>
>> # ovs-ofctl dump-ports br-tun<br>
>> OFPST_PORT reply (xid=0x2): 2 ports<br>
>>   port  1: rx pkts=50, bytes=3300, drop=0, errs=0, frame=0, over=0, crc=0<br>
>>            tx pkts=0, bytes=0, drop=0, errs=0, coll=0<br>
>>   port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0<br>
>>            tx pkts=140, bytes=9800, drop=0, errs=0, coll=0<br>
>><br>
>> # uname -r<br>
>> 2.6.32-358.111.1.openstack.el6.x86_64<br>
>><br>
>> # modinfo openvswitch<br>
>> filename:<br>
>><br>
>> /lib/modules/2.6.32-358.111.1.openstack.el6.x86_64/extra/openvswitch/openvswitch.ko<br>
>> version:        1.10.0<br>
>> license:        GPL<br>
>> description:    Open vSwitch switching datapath<br>
>> srcversion:     480D55A9BB0E8B000E32010<br>
>> depends:<br>
>> vermagic:       2.6.32-358.111.1.openstack.el6.x86_64 SMP mod_unload<br>
>> modversions<br>
>> parm:           vlan_tso:Enable TSO for VLAN packets (int)<br>
>><br>
>> # tail ovs-vswitchd.log<br>
>><br>
>> 2013-07-09T23:28:18Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock:<br>
>> connecting...<br>
>><br>
>> 2013-07-09T23:28:18Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock:<br>
>> connected<br>
>> 2013-07-09T23:28:18Z|00004|bridge|INFO|bridge br-int: added interface<br>
>> patch-tun on port 1<br>
>> 2013-07-09T23:28:18Z|00005|bridge|INFO|bridge br-tun: added interface<br>
>> patch-int on port 1<br>
>> 2013-07-09T23:28:18Z|00006|dpif|WARN|system@ovs-system: failed to add<br>
>> gre-3 as port: Address family not supported by protocol<br>
>> 2013-07-09T23:28:18Z|00007|dpif|WARN|system@ovs-system: failed to add<br>
>> gre-4 as port: Address family not supported by protocol<br>
>> 2013-07-09T23:28:18Z|00008|bridge|INFO|bridge br-int: using datapath<br>
>> ID 0000dacb49a63448<br>
>> 2013-07-09T23:28:18Z|00009|connmgr|INFO|br-int: added service<br>
>> controller "punix:/var/run/openvswitch/br-int.mgmt"<br>
>> 2013-07-09T23:28:18Z|00010|bridge|INFO|bridge br-tun: using datapath<br>
>> ID 00009a14eee01941<br>
>> 2013-07-09T23:28:18Z|00011|connmgr|INFO|br-tun: added service<br>
>> controller "punix:/var/run/openvswitch/br-tun.mgmt"<br>
>> 2013-07-09T23:28:18Z|00012|bridge|INFO|ovs-vswitchd (Open vSwitch) 1.10.0<br>
>> 2013-07-09T23:28:28Z|00013|memory|INFO|7848 kB peak resident set size<br>
>> after 10.0 seconds<br>
>> 2013-07-09T23:28:28Z|00014|memory|INFO|ports:5 rules:11<br>
>> 2013-07-09T23:28:28Z|00015|ofproto|INFO|br-int: 2 flow_mods in the 4 s<br>
>> starting 10 s ago (1 adds, 1 deletes)<br>
>> 2013-07-09T23:28:28Z|00016|ofproto|INFO|br-tun: 5 flow_mods in the 3 s<br>
>> starting 10 s ago (5 adds)<br>
>> 2013-07-09T23:53:25Z|00017|netdev|WARN|failed to set flags for network<br>
>> device patch-int: Operation not supported<br>
>><br>
>> On Tue, Jul 9, 2013 at 8:59 PM, Aaron Rosen <<a href="mailto:arosen@nicira.com">arosen@nicira.com</a>> wrote:<br>
>> > I'd check the quantum openvswitch agent log files. I'd guess the reason<br>
>> > this<br>
>> > isn't working is because your kernel isn't using the openvswitch kernel<br>
>> > module that has tunnel support.<br>
>> ><br>
>> > Aaron<br>
>> ><br>
>> ><br>
>> > On Tue, Jul 9, 2013 at 9:19 AM, Haitao Jiang <<a href="mailto:jianghaitao@gmail.com">jianghaitao@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> I just set up a multi-node Grizzly release 2013.2 with 1 controller<br>
>> >> node, 1 network node and 1 compute node. I use GRE tunneling.<br>
>> >><br>
>> >> I create one VM on the compute node and was not able to ssh to it using<br>
>> >> netns.<br>
>> >><br>
>> >> One thing I noticed is that on my compute node, I do not have br-int<br>
>> >> and br-tun in the list, nor do I find any GRE tunnels. Am I supposed<br>
>> >> to create the GRE tunnels manually or they should be set up<br>
>> >> automatically by Quantum? Any idea or suggestion to make it work?<br>
>> >><br>
>> >> Thanks in advance!<br>
>> >><br>
>> >> ------ Compute node --------<br>
>> >> -- /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini  --<br>
>> >> tunnel_id_ranges=1:1000<br>
>> >> integration_bridge=br-int<br>
>> >> tunneling_bridge=br-tun<br>
>> >> tenant_network_type=gre<br>
>> >> enable_tunneling=True<br>
>> >> local_ip = <host IP><br>
>> >><br>
>> >> # brctl show<br>
>> >> bridge name     bridge id               STP enabled     interfaces<br>
>> >> qbr5a9800b9-26          8000.5242b197c3d3       no<br>
>> >> qvb5a9800b9-26<br>
>> >>                                                         tap5a9800b9-26<br>
>> >> virbr0          8000.525400198a10       yes             virbr0-nic<br>
>> >><br>
>> >> # ovs-vsctl show<br>
>> >> 1d554b19-2a2b-493d-a123-0efb0aabc7d1<br>
>> >>     Bridge br-tun<br>
>> >>         Port patch-int<br>
>> >>             Interface patch-int<br>
>> >>                 type: patch<br>
>> >>                 options: {peer=patch-tun}<br>
>> >>         Port br-tun<br>
>> >>             Interface br-tun<br>
>> >>                 type: internal<br>
>> >>     Bridge br-int<br>
>> >>         Port br-int<br>
>> >>             Interface br-int<br>
>> >>                 type: internal<br>
>> >>         Port patch-tun<br>
>> >>             Interface patch-tun<br>
>> >>                 type: patch<br>
>> >>                 options: {peer=patch-int}<br>
>> >>         Port "qvo5a9800b9-26"<br>
>> >>             tag: 1<br>
>> >>             Interface "qvo5a9800b9-26"<br>
>> >>     ovs_version: "1.10.0"<br>
>> >><br>
>> >> ------------ network node ---------------<br>
>> >> # brctl show<br>
>> >> bridge name     bridge id               STP enabled     interfaces<br>
>> >><br>
>> >> # ovs-vsctl show<br>
>> >> b9f0e822-cfc1-4b70-ac5b-abc4e5c258a4<br>
>> >>     Bridge br-int<br>
>> >>         Port br-int<br>
>> >>             Interface br-int<br>
>> >>                 type: internal<br>
>> >>         Port "tap9536e146-c2"<br>
>> >>             Interface "tap9536e146-c2"<br>
>> >>     Bridge br-ex<br>
>> >>         Port br-ex<br>
>> >>             Interface br-ex<br>
>> >>                 type: internal<br>
>> >>     ovs_version: "1.10.0"<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> >> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
>> >> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> >> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>