OpenWrt Forum Archive

Topic: ovnsb_db.sock and ovnsb_db.sock databases not created

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I was trying to use ovn-controller for my TP link C7 router. i have installed the following packages from trunk version updated on 6th december.

openvswitch-base - 2.8.1-1
openvswitch-ovn - 2.8.1-1
openvswitch-ovn-base - 2.8.1-1
openvswitch-ovn-controller - 2.8.1-1
openvswitch-ovn-controller-vtep - 2.8.1-1
openvswitch-ovn-detrace - 2.8.1-1
openvswitch-ovn-docker-overlay-driver - 2.8.1-1
openvswitch-ovn-docker-underlay-driver - 2.8.1-1
openvswitch-ovn-nbctl - 2.8.1-1
openvswitch-ovn-sbctl - 2.8.1-1
openvswitch-ovn-trace - 2.8.1-1
openvswitch-vtep - 2.8.1-1

The problem is there should be database file created in /var/run/ folder named "ovnsb_db.sock" and "ovnnb_db.sock". But while I tries to execute "ovn-sbctl show" command the following message shown.

ovn-sbctl: unix:/var/run/ovnsb_db.sock: database connection failed (No such file or directory)

That means those databases has not created.

I am stacked at here right now. I am new to openwrt and ovs. Please help me to make the ovs enabled. Any tutorials regarding OVN controller will also be appreciated.

My openvswitch is working fine and it's version is 2.8.1.

My target is to establish the ovs-controller among three routers. Mesh network among those routers is working fine too.

(Last edited by rakib.bd on 4 Jan 2018, 02:01)

After doing a long research i have found that "ovn-clt" flile was not exist at all in my router at the location /usr/share/openvswitch/scripts/. This is odd.

Then I have copied the ovn-ctl contents from github https://github.com/openvswitch/ovs/blob … es/ovn-ctl and created the ovn-ctl file in this location /usr/share/openvswitch/scripts/ . The file ovn-ctl must be given full permisssion using chmod 777 ovn-ctl command.

after that using following commands I finally got the controller running including northbound and southbound database.

/usr/share/openvswitch/scripts/ovn-ctl start_ovsdb
/usr/share/openvswitch/scripts/ovn-ctl start_northd
/usr/share/openvswitch/scripts/ovn-ctl start_nb_ovsdb
/usr/share/openvswitch/scripts/ovn-ctl start_sb_ovsdb
/usr/share/openvswitch/scripts/ovn-ctl start_controller

Thank you all.

(Last edited by rakib.bd on 4 Jan 2018, 12:54)

The discussion might have continued from here.