Module openvswitch_mod not found during quantum install

Asked by nina

Hi all,

I'm trying to install quantum on my nodes but when I do I get the following error (only on the second node, on the first node the install went properly)

 apt-get install openvswitch-switch quantum-plugin-openvswitch-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  openvswitch-switch quantum-plugin-openvswitch-agent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,270 kB of archives.
After this operation, 3,020 kB of additional disk space will be used.
Selecting previously unselected package openvswitch-switch.
(Reading database ... 129008 files and directories currently installed.)
Unpacking openvswitch-switch (from .../openvswitch-switch_1.4.0-1ubuntu1_amd64.deb) ...
Selecting previously unselected package quantum-plugin-openvswitch-agent.
Unpacking quantum-plugin-openvswitch-agent (from .../quantum-plugin-openvswitch-agent_2012.1-0ubuntu4_all.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up openvswitch-switch (1.4.0-1ubuntu1) ...
FATAL: Module openvswitch_mod not found.
 * Inserting openvswitch module
 * not removing bridge module because bridges exist (virbr0)
invoke-rc.d: initscript openvswitch-switch, action "load-kmod" failed.
 * ovs-brcompatd is not running
 * ovs-vswitchd is not running
 * ovsdb-server is not running
FATAL: Module openvswitch_mod not found.
 * Inserting openvswitch module
 * not removing bridge module because bridges exist (virbr0)
Module has probably not been built for this kernel.
For instructions, read
/usr/share/doc/openvswitch-datapath-source/README.Debian
FATAL: Module openvswitch_mod not found.
 * Inserting openvswitch module
 * not removing bridge module because bridges exist (virbr0)
invoke-rc.d: initscript openvswitch-switch, action "restart" failed.
Setting up quantum-plugin-openvswitch-agent (2012.1-0ubuntu4) ...

and of course i get the same result with modprobe.

when i try to look for openvswitch_mod i get the following output on the second node:

find /lib/modules -iname '*.o' -or -iname '*.ko' | grep 'openv'

/lib/modules/3.2.0-23-generic/updates/dkms/openvswitch_mod.ko

and this one on the first :

/lib/modules/3.2.0-25-generic/updates/dkms/openvswitch_mod.ko
/lib/modules/3.2.0-25-generic/kernel/openvswitch_mod.ko

I tried to copy openvswitch_mod.ko to match the path on the first node but it didn't work either.

Do you have any idea about how to get arround this?

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
nina
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Rosen (arosen) said :
#1

Hi,

This actually seems to be a packaging issue. If you run:

dpkg -r openvswitch-switch openvswitch-datapath-dkms openvswitch-common quantum-plugin-openvswitch-agent quantum-common python-quantumclient python-quantum

then:
apt-get install openvswitch-switch
mkdir -p /etc/quantum/
apt-get install quantum-plugin-openvswitch-agent

it should install without errors.

Revision history for this message
yong sheng gong (gongysh) said :
#2

maybe to run depmod will fix the problem:
depmod
modprobe openvswitch_mod

Revision history for this message
nina (nina2021) said :
#3

thanx for your help.

Both answers solved my problem.