[ovs-discuss] Issues with configuring multitenant network using OVN.

Chandran, Sugesh sugesh.chandran at intel.com
Fri Jul 10 12:01:27 UTC 2015


Hi,
I am trying to create a simple two tenant logical network on a single chassis using OVN as shown below.



........................................................
.                                                      .
.                        Sw1                           .
.  .------------------.        .------------------.    .
. / 00:00:00:00:00:01, \      / 00:00:00:00:00:02, \   .
.(  100.0.0.1           )    (  100.0.0.2           )  .
. \                    /      \                    /   .
.  '----.--------.----'        '----.--------.----'    .
.       | tap0   |                  | tap1   |         .
........'--------'..................'--------'..........




..........--------....................--------..........
.        | tap2   |       Sw0        | tap3   |        .
.   .----'--------'----.        .----'--------'----.   .
.  / 00:00:00:00:00:03, \      / 00:00:00:00:00:04, \  .
. (  100.0.0.3           )    (  100.0.0.4           ) .
.  \                    /      \                    /  .
.   '------------------'        '------------------'   .
.                                                      .
........................................................


Here is the OVN commands I used to create this topology.

ovn-nbctl lswitch-add sw0
ovn-nbctl lport-add sw0 sw0-port1
ovn-nbctl lport-add sw0 sw0-port2
ovn-nbctl lport-set-macs sw0-port1 00:00:00:00:00:01
ovn-nbctl lport-set-macs sw0-port2 00:00:00:00:00:02
ovs-vsctl add-port br-int tap0 -- \
set Interface tap0 external-ids:iface-id=sw0-port1
ovs-vsctl add-port br-int tap1 -- \
set Interface tap1 external-ids:iface-id=sw0-port2

ovn-nbctl lswitch-add sw1
ovn-nbctl lport-add sw1 sw1-port1
ovn-nbctl lport-add sw1 sw1-port2
ovn-nbctl lport-set-macs sw1-port1 00:00:00:00:00:03
ovn-nbctl lport-set-macs sw1-port2 00:00:00:00:00:04
ovs-vsctl add-port br-int tap2 -- \
set Interface tap2 external-ids:iface-id=sw1-port1
ovs-vsctl add-port br-int tap3 -- \
set Interface tap3 external-ids:iface-id=sw1-port2

tap0, tap1, tap2 and tap3 are the physical network interfaces attached to the VMs.
The issue is all the VMs are added to same network even though they belongs different logical network. There is no vlan tag /tunneling configured to any of these ports whatsoever.
I confirmed that the Southbound DB has populated correctly with the two set of  logical datapath rules, but its not getting populated at the forwarding path.
I am using Ubuntu with kernel 3.13 and OVN compiled from origin/ovn branch.

My north bound configuration can be seen below.

sugesh at silpixa00389816:~/repo/OVN# ovn-nbctl show
    lswitch 7816e518-7ea0-48df-aae6-0e0b8e9f87fc (sw0)
        lport sw0-port2
            macs: 00:00:00:00:00:02
        lport sw0-port1
            macs: 00:00:00:00:00:01
    lswitch 40c94a0e-c93d-4f5b-b9df-0330ad5cb5f8 (sw1)
        lport sw1-port1
            macs: 00:00:00:00:00:03
        lport sw1-port2
            macs: 00:00:00:00:00:04

It seems to me like the ovn-controller cannot access the OVN_Southbound DB (the controller logs message shows "2015-07-10T10:45:15.771Z|00031|main|INFO|OVN OVSDB remote not specified.  Waiting...") to configure the OVS.
I started the controller and northd with following commands which doesn't take any argument as such.
ovn-ctl start_northd
ovn-ctl start_controller

Could someone help me out to figure out what has been configured wrongly here??




Regards
_Sugesh

--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150710/ac8cda8e/attachment-0002.html>


More information about the discuss mailing list