openvswitch kernel module not shipped

Bug #1979846 reported by Stefan Kooman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

openvswitch-switch package does not ship a openvswitch kernel module. Therefore ovs-vswitch cannot start (unable to modprobe the kernel module), and hence openvswitch-switch cannot start.

apt install openvswitch-switch
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  openvswitch-switch
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/1556 kB of archives.
After this operation, 4589 kB of additional disk space will be used.
Selecting previously unselected package openvswitch-switch.
(Reading database ... 332861 files and directories currently installed.)
Preparing to unpack .../openvswitch-switch_2.17.0-0ubuntu1_arm64.deb ...
Unpacking openvswitch-switch (2.17.0-0ubuntu1) ...
Setting up openvswitch-switch (2.17.0-0ubuntu1) ...
update-alternatives: using /usr/lib/openvswitch-switch/ovs-vswitchd to provide /usr/sbin/ovs-vswitchd (ovs-vswitchd) in auto mode
Created symlink /etc/systemd/system/multi-user.target.wants/openvswitch-switch.service → /lib/systemd/system/openvswitch-switch.service.
Created symlink /etc/systemd/system/openvswitch-switch.service.requires/ovs-record-hostname.service → /lib/systemd/system/ovs-record-hostname.service.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
A dependency job for openvswitch-switch.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript openvswitch-switch, action "start" failed.
○ openvswitch-switch.service - Open vSwitch
     Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

Jun 24 22:26:48 rp4 systemd[1]: Dependency failed for Open vSwitch.
Jun 24 22:26:48 rp4 systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
dpkg: error processing package openvswitch-switch (--configure):
 installed openvswitch-switch package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 openvswitch-switch
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

journalctl -xeu ovs-vswitchd.service shows:

Jun 24 22:26:50 rp4 ovs-ctl[2978]: modprobe: FATAL: Module openvswitch not found in directory /lib/modules/5.15.0-1011-raspi
Jun 24 22:26:50 rp4 ovs-ctl[2970]: * Inserting openvswitch module
Jun 24 22:26:50 rp4 systemd[1]: ovs-vswitchd.service: Control process exited, code=exited, status=1/FAILURE

dpkg -L linux-modules-5.15.0-1011-raspi |grep openvswitch does not show a file

Revision history for this message
Juerg Haefliger (juergh) wrote :

Kernel modules are provided by the kernel packages linux-modules and linux-modules-extra. openvswitch is in -extras:

$ dpkg-deb -c linux-modules-extra-5.15.0-1011-raspi_5.15.0-1011.13_arm64.deb | grep openvswitch
drwxr-xr-x root/root 0 2022-06-02 00:37 ./lib/modules/5.15.0-1011-raspi/kernel/net/openvswitch/
-rw-r--r-- root/root 274401 2022-06-02 00:37 ./lib/modules/5.15.0-1011-raspi/kernel/net/openvswitch/openvswitch.ko
-rw-r--r-- root/root 8417 2022-06-02 00:37 ./lib/modules/5.15.0-1011-raspi/kernel/net/openvswitch/vport-geneve.ko
-rw-r--r-- root/root 7753 2022-06-02 00:37 ./lib/modules/5.15.0-1011-raspi/kernel/net/openvswitch/vport-gre.ko
-rw-r--r-- root/root 9537 2022-06-02 00:37 ./lib/modules/5.15.0-1011-raspi/kernel/net/openvswitch/vport-vxlan.ko

$ sudo apt install linux-modules-extra-raspi

Changed in linux-raspi (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.