Package: openvswitch-switch
Version: 2.8.1+dfsg1-7

Hi,

OpenvSwitch is buggy in loading OVS stuff defined in
/etc/network/interfaces

For example interfaces defined in /etc/network/interfaces  are not created
in OVS

allow-ovs second
iface second inet manual
ovs_type OVSBridge
ovs_ports enp97s0f0 boot

allow-second enp97s0f0
iface enp97s0f0 inet manual
ovs_bridge second
ovs_type OVSPort
up ip link set mtu 1500 up dev enp97s0f0

allow-second boot
iface boot inet static
address 192.168.37.0
netmask 255.255.252.0
ovs_type OVSIntPort
ovs_bridge second
up ip link set mtu 1500 dev boot

Problem is in openvswitch-switch.service where ExecStart and ExecStop are
set to /bin/true

[Unit]
Description=Open vSwitch
After=network.target openvswitch-nonetwork.service
Requires=openvswitch-nonetwork.service

[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=/bin/true
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Above service should be defined as below , calling
/etc/init.d/openvswitch-switch start/stop :

[Unit]
Description=Open vSwitch
After=network.target openvswitch-nonetwork.service
Requires=openvswitch-nonetwork.service

[Service]
Type=oneshot
ExecStart=/etc/init.d/openvswitch-switch start
ExecStop=/etc/init.d/openvswitch-switch stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

I found this bug in 2.8.1+dfsg1-7 but it is also
in 2.10.0+2018.08.28+git.8ca7c82b7d+ds1-3.

Could you please fix it ?

Thanks,
Michal Arbet ( kevko )

Reply via email to