Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open vSwitch database connection failure after rebooting

Tags:

openvswitch

Each time after installing Open vSwitch successfully and rebooting, I get the following error. ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database connection failed (no such file or directory). Does anyone know why the db.sock file goes missing?

like image 899
Srinidhi Srinivasaraghavan Avatar asked Feb 13 '15 18:02

Srinidhi Srinivasaraghavan


2 Answers

On a Fedora 22 this worked for me:

sudo /usr/share/openvswitch/scripts/ovs-ctl start
like image 125
Lucio Correia Avatar answered Sep 19 '22 15:09

Lucio Correia


Start the ovsdb again, and you will connect successfully.

#!/bin/bash 
ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
                     --remote=db:Open_vSwitch,Open_vSwitch,manager_options \
                     --private-key=db:Open_vSwitch,SSL,private_key \
                     --certificate=db:Open_vSwitch,SSL,certificate \
                     --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
                     --pidfile --detach
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach
like image 23
vinllen Avatar answered Sep 18 '22 15:09

vinllen