From 486057f3391ce3a262f8226f7652ed14b3b444f3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 21 Mar 2018 13:59:18 +0100 Subject: [PATCH] Start OVS as root on Tumblweed to workaround bsc#1085971 There is currently a OVS 2.9.0 update in Tumbleweed that fails to start as it is having a race with systemd on creating the home directory. Workaround is to run it as root for now. Change-Id: Ief610c6473834b02a1d644d8f50d11138a48e6e6 --- lib/neutron_plugins/ovs_base | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/neutron_plugins/ovs_base b/lib/neutron_plugins/ovs_base index 50b9ae506b..36e2ed2ca2 100644 --- a/lib/neutron_plugins/ovs_base +++ b/lib/neutron_plugins/ovs_base @@ -72,7 +72,14 @@ function _neutron_ovs_base_install_agent_packages { if [[ $DISTRO == "sle12" ]] && [[ $os_RELEASE -lt 12.2 ]]; then restart_service openvswitch-switch else - restart_service openvswitch + # workaround for https://bugzilla.suse.com/show_bug.cgi?id=1085971 + if [[ $DISTRO =~ "tumbleweed" ]]; then + sudo sed -i -e "s,^OVS_USER_ID=.*,OVS_USER_ID='root:root'," /etc/sysconfig/openvswitch + fi + restart_service openvswitch || { + journalctl -xe || : + systemctl status openvswitch + } fi fi }