diff options
author | Steve Milner <smilner@redhat.com> | 2017-05-31 10:39:43 -0400 |
---|---|---|
committer | Steve Milner <smilner@redhat.com> | 2017-05-31 10:39:43 -0400 |
commit | bc1d278e38dc67b5533d444387f84e3167d82773 (patch) | |
tree | 970dbfef289730290ad163afe50f7b9c50cf7116 | |
parent | 15221b6943df7e54ff00db6271ee89eb5cbe0425 (diff) | |
download | openshift-bc1d278e38dc67b5533d444387f84e3167d82773.tar.gz openshift-bc1d278e38dc67b5533d444387f84e3167d82773.tar.bz2 openshift-bc1d278e38dc67b5533d444387f84e3167d82773.tar.xz openshift-bc1d278e38dc67b5533d444387f84e3167d82773.zip |
upgrade: Reload systemd before restart
The installer now lays down updated systemd unit files in
/etc/systemd/system/ which override the units that come with the
rpms. Because of this we need to reload systemd before restarting
services.
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1455843
-rw-r--r-- | roles/openshift_node_upgrade/tasks/restart.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_node_upgrade/tasks/restart.yml b/roles/openshift_node_upgrade/tasks/restart.yml index e576228ba..508eb9358 100644 --- a/roles/openshift_node_upgrade/tasks/restart.yml +++ b/roles/openshift_node_upgrade/tasks/restart.yml @@ -5,6 +5,14 @@ # - openshift.common.hostname # - openshift.master.api_port +# NOTE: This is needed to make sure we are using the correct set +# of systemd unit files. The RPMs lay down defaults but +# the install/upgrade may override them in /etc/systemd/system/. +# NOTE: We don't use the systemd module as some versions of the module +# require a service to be part of the call. +- name: Reload systemd to ensure latest unit files + command: systemctl daemon-reload + - name: Restart docker service: name: "{{ openshift.docker.service_name }}" |