Browse Source

node, systemd: change Requires to Wants for openvswitch

Sometimes the node container is not started on a container-engine
restart.  Use a weaker dependency on openvswitch that is causing this issue

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1451192

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 8 years ago
parent
commit
7f805f9a0c

+ 1 - 1
roles/openshift_node/templates/openshift.docker.node.service

@@ -5,7 +5,7 @@ After=openvswitch.service
 PartOf={{ openshift.docker.service_name }}.service
 Requires={{ openshift.docker.service_name }}.service
 {% if openshift.common.use_openshift_sdn %}
-Requires=openvswitch.service
+Wants=openvswitch.service
 After=ovsdb-server.service
 After=ovs-vswitchd.service
 {% endif %}

+ 1 - 1
roles/openshift_node_upgrade/templates/openshift.docker.node.service

@@ -5,7 +5,7 @@ After=openvswitch.service
 PartOf={{ openshift.docker.service_name }}.service
 Requires={{ openshift.docker.service_name }}.service
 {% if openshift.common.use_openshift_sdn %}
-Requires=openvswitch.service
+Wants=openvswitch.service
 {% endif %}
 Wants={{ openshift.common.service_type }}-master.service
 Requires={{ openshift.common.service_type }}-node-dep.service