19 - 04 - 2024

openvswitch - libvirtd issue fix - veth already existing

Some time ago I wrote an little fix for running openvswitch network solution combined with libvirtd. It seems that a few days ago after upgrading my openSUSE 13.1 packages, openvswitch saves conf.db little bit different as it was. 

To fix this issue just use updated version of systemd service file:

└──> system $ >> cat ./openvswitch.service 

[Unit]
Description=Open vSwitch
After=syslog.target network.target

[Service]
Type=oneshot
ExecStart=/etc/init.d/openvswitch-switch start
ExecStop=/etc/init.d/openvswitch-switch stop
ExecStopPost=/usr/bin/rm -f /etc/openvswitch/conf.db*
ExecStartPre=/usr/bin/rm -f /etc/openvswitch/conf.db*
ExecStartPre=/usr/bin/cp -f /srv/NFS/CFGs/etc/openvswitch/conf.db /etc/openvswitch/
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

This solution is based on previous article mentioned before, treat this as an update.