• Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Any
  • Assigned To
  • Operating System All
  • Severity Critical
  • Priority Low
  • Reported Version Any
  • Due in Version Starfix
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Packages
Opened by belette - 26/07/2018
Last edited by Emulatorman - 27/07/2018

FS#1108 - [openvswitch-lts] netifrc fails to start openvwitch interfaces properly at boot


During openrc boot, ‘net’ starts before ‘ovs-vswitchd’ and result to an error and not attributing IP to the openvswitch interface:

ERROR: interface vswitch does not exist
Ensure that you have loaded the correct kernel module for your hardware
ERROR: net.vswitch failed to start
/run/openvswitch: creating directory
Starting ovsdb-server ...
Starting ovs-vswitchd ..

Additional info:

As a workaround I have added
after modules ovs-vswitchd line #39 to /etc/init.d/net.lo and it solves the issue.

I think it would require an if statement to append ovs-vsitchd to line #39 in case openvswitch is installed and activated.

After my change, rc.log:

/run/openvswitch: creating directory
Starting ovsdb-server ...
Starting ovs-vswitchd ...
Bringing up interface vswitch
Caching network module dependencies
need dbus
10.XX.XX.XX/24 ...
Adding routes
default via 10.XX.XX.XX

Steps to reproduce:

Closed by  Emulatorman
27.07.2018 17:34
Reason for closing:  Fixed

Before closing it, I found a side effect when hostapd is used in conjonction with openvswitch.

Hostapd is now failing at boot with :

Starting hostapd ...
Configuration file: /etc/hostapd/hostapd.conf
ovs-vsctl: unix:/run/openvswitch/db.sock: database connection failed (No such file or directory)

Hostapd should start "after ovs-vswitchd" (I have added it to /etc/init.d/hostapd and I don't have the issue anymore

Date User Effort (H:M)
watch my effort tracking timers


Available keyboard shortcuts


Task Details

Task Editing