Browse code

Merge "Start OVS as root on Tumblweed to workaround bsc#1085971"

Zuul authored on 2018/04/13 20:13:18
Showing 1 changed files
... ...
@@ -72,7 +72,14 @@ function _neutron_ovs_base_install_agent_packages {
72 72
         if [[ $DISTRO == "sle12" ]] && [[ $os_RELEASE -lt 12.2 ]]; then
73 73
             restart_service openvswitch-switch
74 74
         else
75
-            restart_service openvswitch
75
+            # workaround for https://bugzilla.suse.com/show_bug.cgi?id=1085971
76
+            if [[ $DISTRO =~ "tumbleweed" ]]; then
77
+                sudo sed -i -e "s,^OVS_USER_ID=.*,OVS_USER_ID='root:root'," /etc/sysconfig/openvswitch
78
+            fi
79
+            restart_service openvswitch || {
80
+                journalctl -xe || :
81
+                systemctl status openvswitch
82
+            }
76 83
         fi
77 84
     fi
78 85
 }