[ovs-dev] ifup locked when start ovs in debian9 with systemd

Guru Shetty guru at ovn.org
Mon Jun 19 15:00:18 UTC 2017


What OVS version is this? What is the platform version? i.e Debian/Ubuntu
etc. Does your OVS have the following fix?
https://github.com/openvswitch/ovs/commit/15af3d44c65eb3cd724378ce1b30c51aa87f4f69

On 19 June 2017 at 07:17, ychen <ychen103103 at 163.com> wrote:

> 1. phenomenon
>    ifup: waiting for lock on /run/network/ifstate.br-int
> 2. configurations
>    /etc/network/interfaces
>    allow-ovs br-int
> iface br-int inet manual
>   ovs_type OVSBridge
>
>   ovs_ports tap111
>
>
> allow-br-int tap111
> iface ngwintp inet manual
>   ovs_bridge br-int
>   ovs_type OVSIntPort
>
>
> 3. start ovs
>     systemctl start openvswitch-switch
>     now we can see 2 ifup processes, and when use cmd " systemctl status
> openvswitch-switch",
>     we can see error " ifup: waiting for lock on
> /run/network/ifstate.br-int"
>
>
> 4. I found that in ovs ifupdown.sh scripts, there is such bash cmd:
>     if /etc/init.d/openvswitch-switch status > /dev/null 2>&1; then :; else
>     /etc/init.d/openvswitch-switch start
>   fi
>   is it means if openvswitch is not running, then start it?
>   but when use systemd, "/etc/init.d/openvswitch-switch status" this
> command always returns value not equal to 0,
>   hence openvswitch restarted, then ifup will be boot again , that's the
> reason caused the LOCK
> 5. when use the following bash cmd:
>       if ovs_ctl status > /dev/null 2>&1; then :; else
>     /etc/init.d/openvswitch-switch start
>     fi
>   then we can start and stop openvswitch smoothly
>   but when we use "ifup --allow=ovs br-int", ifup LOCKED  again
>
>
> 6. my question is:
>     why we need to brought up openvswitch process in ifupdown.sh?
>     is there a simple way to fix this problem?
>
_______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list