summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-10-14 11:22:03 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-10-14 11:57:59 -0300
commit3ad93e3d8552c7365eced1042a6e2852428ca049 (patch)
treee1e5480bcb5a32ff4114da910507528da14608e7
parent845eed3081b5fd6a3ca0f6b8ede0acaee19f6049 (diff)
downloadopenshift-3ad93e3d8552c7365eced1042a6e2852428ca049.tar.gz
openshift-3ad93e3d8552c7365eced1042a6e2852428ca049.tar.bz2
openshift-3ad93e3d8552c7365eced1042a6e2852428ca049.tar.xz
openshift-3ad93e3d8552c7365eced1042a6e2852428ca049.zip
Resume restarting node after upgrading node rpms.
Error in commit 245fef16573757b6e691c448075d8564f5d569f4. As it turns out this is the only place a rpm based node can be restarted in upgrade. Restoring the restart but making it conditional to avoid the two issues reported with out of sync node restarts.
-rw-r--r--playbooks/common/openshift-cluster/upgrades/rpm_upgrade.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/rpm_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/rpm_upgrade.yml
index af77f140f..cd1139b29 100644
--- a/playbooks/common/openshift-cluster/upgrades/rpm_upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/rpm_upgrade.yml
@@ -5,3 +5,7 @@
- name: Ensure python-yaml present for config upgrade
action: "{{ ansible_pkg_mgr }} name=PyYAML state=present"
when: not openshift.common.is_atomic | bool
+
+- name: Restart node service
+ service: name="{{ openshift.common.service_type }}-node" state=restarted
+ when: component == "node"