[ovs-dev] Bug#686518: Bug#686518: network_interfaces() does not work with systemd

Gurucharan Shetty shettyg at nicira.com
Thu Sep 11 17:39:42 UTC 2014


On Thu, Sep 11, 2014 at 4:04 AM, Philipp S. Schmidt <phils at in-panik.de> wrote:
> It seems that most of the problem is fixed in the recent version
> as "ifup --allow=ovs [bridges…]” is called in the network_interfaces()
> function.
>
> Sadly, when using systems, this function just return and does not
> execute ifup as ${RUNLEVEL} is not set.
>
> I have no idea what purpose the line "[ -z "${RUNLEVEL}" ] && return”
> in network_interfaces has, but it prevents this bug from being fixed
> when systemd is used as init :(
"[ -z "${RUNLEVEL}" ] && return" is there to prevent OVS interfaces
from being destroyed and recreated when someone does a
"/etc/init.d/openvswitch-switch restart". It looks like it does not
get set for systemd during startup.

I sent a patch to fix this:
http://openvswitch.org/pipermail/dev/2014-September/045570.html

> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list