Ask Your Question
0

Error ovs-vsctl add-br br-int : connection to /var/run/openvswitch/db.sock failed: No such file or directory

asked 2012-10-03 14:19:24 -0500

krishna-sunitha gravatar image

Following these steps http://docs.openstack.org/trunk/openstack-network/admin/content/install_quantum_agent_ovs.html (http://docs.openstack.org/trunk/opens...) and hitting the below error. Appreciate suggestions:

Do I need to do any additional steps before ova-vsctl ? This link seems to have bunch of other other steps such as ovsdb etc., ( http://cloudage.admin-magazine.com/Articles/Virtual-switching-with-Open-vSwitch (http://cloudage.admin-magazine.com/Ar...) ).

Appreciate any pointers.

root@ubuntu:~# service quantum-plugin-openvswitch-agent restart stop: Unknown instance: quantum-plugin-openvswitch-agent start/running, process 28779 root@ubuntu:~# ovs-vsctl add-br br-int Oct 03 07:11:08|00002|stream_unix|ERR|/tmp/stream-unix.28802.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory Oct 03 07:11:08|00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory) Oct 03 07:11:09|00004|stream_unix|ERR|/tmp/stream-unix.28802.1: connection to /var/run/openvswitch/db.sock failed: No such file or directory Oct 03 07:11:09|00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory) ^C root@ubuntu:~# ^C root@ubuntu:~# uname -a Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux root@ubuntu:~#

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-03 15:44:39 -0500

It seems openvswitch isn't running Can you try running: /etc/init.d/openvswitch-switch restart

If you use the ubuntu package it should handle all of those steps for you.

edit flag offensive delete link more
0

answered 2012-10-03 17:03:46 -0500

krishna-sunitha gravatar image

Hi Aaron,

If you use the ubuntu package it should handle all of those steps for you.

Apologize. Iam aware on how to do that . Can you pls give me the pointer to ubuntu package/instructions (for folsom).

Is this the one ?

Step 1: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/assumptions.html (http://docs.openstack.org/trunk/opens...) On Ubuntu, enable the Cloud Archive repository by adding the following to /etc/apt/sources.list.d/folsom.list: deb http://ubuntu-cloud.archive.canonical.com/ubuntu (http://ubuntu-cloud.archive.canonical...) precise-updates/folsom main Ensure the operating system is up-to-date by running apt-get update and apt-get upgrade prior to the installation.

Step 2: Then follow steps from here: http://docs.openstack.org/trunk/openstack-network/admin/content/install_ubuntu.html (http://docs.openstack.org/trunk/opens...)

Thanks.

edit flag offensive delete link more
0

answered 2012-10-03 17:58:22 -0500

kernel_version=cat /proc/version | cut -d " " -f3 apt-get install make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version

edit flag offensive delete link more
0

answered 2012-10-03 18:32:28 -0500

krishna-sunitha gravatar image

Thanks much Aaron. It worked.

Repeated the steps few times. Worked after doing this "apt-get autoremove openvswitch-datapath-dkms" and then repeating this step: kernel_version=cat /proc/version | cut -d " " -f3 apt-get install make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version

session log: root@ubuntu:~# kernel_version=cat /proc/version | cut -d " " -f3 root@ubuntu:~# apt-get install make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version Reading package lists... Done Building dependency tree
Reading state information... Done dkms is already the newest version. dkms set to manually installed. fakeroot is already the newest version. fakeroot set to manually installed. make is already the newest version. make set to manually installed. openvswitch-datapath-dkms is already the newest version. openvswitch-datapath-dkms set to manually installed. openvswitch-switch is already the newest version. openvswitch-switch set to manually installed. The following package was automatically installed and is no longer required: python-support Use 'apt-get autoremove' to remove them. The following extra packages will be installed: linux-headers-3.2.0-23 The following NEW packages will be installed: linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic-pae 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 12.4 MB of archives. After this operation, 67.3 MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23 all 3.2.0-23.36 [11.4 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23-generic-pae i386 3.2.0-23.36 [944 kB]
Fetched 12.4 MB in 23s (529 kB/s)
Selecting previously unselected package linux-headers-3.2.0-23. (Reading database ... 66967 files and directories currently installed.) Unpacking linux-headers-3.2.0-23 (from .../linux-headers-3.2.0-23_3.2.0-23.36_all.deb) ... Selecting previously unselected package linux-headers-3.2.0-23-generic-pae. Unpacking linux-headers-3.2.0-23-generic-pae (from .../linux-headers-3.2.0-23-generic-pae_3.2.0-23.36_i386.deb) ... Setting up linux-headers-3.2.0-23 (3.2.0-23.36) ... Setting up linux-headers-3.2.0-23-generic-pae (3.2.0-23.36) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae root@ubuntu:~# ovs-vsctl add-br br-int Oct 03 11:11:31|00002|stream_unix|ERR|/tmp/stream-unix.29594.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory Oct 03 11:11:31|00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory) Oct 03 11:11:32|00004|stream_unix|ERR|/tmp/stream-unix.29594.1: connection to /var/run/openvswitch/db.sock failed: No such file or directory Oct 03 11:11:32|00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory) Oct 03 11:11:34|00006|stream_unix|ERR|/tmp/stream-unix.29594.2: connection to /var/run/openvswitch/db.sock failed: No such file or directory Oct 03 11:11:34|00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory) ^C root@ubuntu:~# ^C root@ubuntu:~# ovs-vsctl add-br br-int Oct 03 11:12:02 ...


(more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-10-03 14:19:24 -0500

Seen: 4,713 times

Last updated: Oct 03 '12