Open vSwitch Database Connection Failure After Reboot

Each time, after a successful installation and restart of Open vSwitch, I get the following error. ovs-vsctl: unix: /usr/local/var/run/openvswitch/db.sock: connection to the database failed (there is no such file or directory). Does anyone know why the db.sock file is missing?

+4
source share
2 answers

Run ovsdb again and you will be successfully connected.

#!/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
Run code
+7
source

On Fedora 22, this worked for me:

sudo /usr/share/openvswitch/scripts/ovs-ctl start
+5
source

All Articles