Error ovs-vsctl add-br br-int : connection to /var/run/openvswitch/db.sock failed: No such file or directory
Following these steps http://
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://
Appreciate any pointers.
root@ubuntu:~# service quantum-
stop: Unknown instance:
quantum-
root@ubuntu:~# ovs-vsctl add-br br-int
Oct 03 07:11:08|
Oct 03 07:11:08|
Oct 03 07:11:09|
Oct 03 07:11:09|
^C
root@ubuntu:~# ^C
root@ubuntu:~# uname -a
Linux ubuntu 3.2.0-23-
root@ubuntu:~#
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Krishna Kothapalli
- Solved:
- 2012-10-03
- Last query:
- 2012-10-03
- Last reply:
- 2012-10-03
| Aaron Rosen (arosen) said : | #1 |
It seems openvswitch isn't running Can you try running: /etc/init.
If you use the ubuntu package it should handle all of those steps for you.
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/
Is this the one ?
Step 1: http://
On Ubuntu, enable the Cloud Archive repository by adding the following to /etc/apt/
deb http://
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://
Thanks.
| Aaron Rosen (arosen) said : | #3 |
kernel_version=`cat /proc/version | cut -d " " -f3`
apt-get install make fakeroot dkms openvswitch-switch openvswitch-
Thanks much Aaron. It worked.
Repeated the steps few times. Worked after doing this "apt-get autoremove openvswitch-
kernel_version=`cat /proc/version | cut -d " " -f3`
apt-get install make fakeroot dkms openvswitch-switch openvswitch-
session log:
root@ubuntu:~# kernel_version=`cat /proc/version | cut -d " " -f3`
root@ubuntu:~# apt-get install make fakeroot dkms openvswitch-switch openvswitch-
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-
openvswitch-
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-
The following NEW packages will be installed:
linux-
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://
Get:2 http://
Fetched 12.4 MB in 23s (529 kB/s)
Selecting previously unselected package linux-headers-
(Reading database ... 66967 files and directories currently installed.)
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Unpacking linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
root@ubuntu:~# ovs-vsctl add-br br-int
Oct 03 11:11:31|
Oct 03 11:11:31|
Oct 03 11:11:32|
Oct 03 11:11:32|
Oct 03 11:11:34|
Oct 03 11:11:34|
^C
root@ubuntu:~# ^C
root@ubuntu:~# ovs-vsctl add-br br-int
Oct 03 11:12:02|
Oct 03 11:12:02|
Oct 03 11:12:03|
Oct 03 11:12:03|
^C
root@ubuntu:~# ^C
root@ubuntu:~# reboot
root@ubuntu:~#
...
root@ubuntu:~# uname -a
Linux ubuntu 3.2.0-31-
root@ubuntu:~# kernel_version=`cat /proc/version | cut -d " " -f3`
root@ubuntu:~# apt-get install make fakeroot dkms openvswitch-switch openvswitch-
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version.
fakeroot is already the newest version.
make is already the newest version.
linux-headers-
linux-headers-
openvswitch-
openvswitch-switch is already the newest version.
The following package was automatically installed and is no longer required:
python-support
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:~# /etc/init.
* ovs-brcompatd is not running
* ovs-vswitchd is not running
* ovsdb-server is not running
FATAL: Module openvswitch_mod not found.
* Inserting openvswitch module
Module has probably not been built for this kernel.
Install the openvswitch-
/usr/share/
FATAL: Module openvswitch_mod not found.
* Inserting openvswitch module
root@ubuntu:~# ovs-vsctl add-br br-int
Oct 03 11:16:27|
Oct 03 11:16:27|
Oct 03 11:16:28|
Oct 03 11:16:28|
Oct 03 11:16:30|
Oct 03 11:16:30|
^C
oot@ubuntu:~# apt-get autoremove openvswitch-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
openvswitch-
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 12.5 MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 89257 files and directories currently installed.)
Removing openvswitch-
-------
Deleting module version: 1.4.0
completely from the DKMS tree.
-------
Done.
Removing python-support ...
Processing triggers for man-db ...
root@ubuntu:~# apt-get install make fakeroot dkms openvswitch-switch openvswitch-
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version.
fakeroot is already the newest version.
make is already the newest version.
linux-headers-
openvswitch-switch is already the newest version.
The following NEW packages will be installed:
openvswitch-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,004 kB of archives.
After this operation, 12.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously unselected package openvswitch-
(Reading database ... 88428 files and directories currently installed.)
Unpacking openvswitch-
Setting up openvswitch-
Creating symlink /var/lib/
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....(bad exit status: 2)
./configure --with-
....
cleaning build area....(bad exit status: 2)
DKMS: build completed.
openvswitch_mod:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
brcompat_mod.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
depmod.......
DKMS: install completed.
root@ubuntu:~# apt-get install make fakeroot dkms openvswitch-switch openvswitch-
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version.
fakeroot is already the newest version.
make is already the newest version.
linux-headers-
openvswitch-
openvswitch-switch is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:~# /etc/init.
* ovs-brcompatd is not running
* ovs-vswitchd is not running
* ovsdb-server is not running
* Inserting openvswitch module
* /etc/openvswitc
* Creating empty database /etc/openvswitc
* Starting ovsdb-server
* Configuring Open vSwitch system IDs
* Starting ovs-vswitchd
* Enabling gre with iptables
root@ubuntu:~# ovs-vsctl add-br br-int
root@ubuntu:~#

