From 9ff19cc604b76f03a1e148c9ef0b7dffc1a8757f Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 23 Apr 2019 14:58:37 -0400 Subject: [PATCH] rolling_update: restart all ceph-iscsi services Currently only rbd-target-gw service is restarted during an update. We also need to restart tcmu-runner and rbd-target-api services during the ceph iscsi upgrade. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1659611 Signed-off-by: Dimitri Savineau (cherry picked from commit f1048627eaab27563511011fa3cc31b525e2f4c9) --- infrastructure-playbooks/rolling_update.yml | 22 +++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 63311681a..68e44e4cd 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -706,14 +706,17 @@ # failed_when: false is here so that if we upgrade # from a version of ceph that does not have iscsi gws # then this task will not fail - - name: stop rbd-target-gw + - name: stop ceph iscsi services systemd: - name: rbd-target-gw + name: '{{ item }}' state: stopped enabled: yes failed_when: false - when: - - not containerized_deployment + with_items: + - tcmu-runner + - rbd-target-api + - rbd-target-gw + when: not containerized_deployment roles: - ceph-defaults @@ -725,13 +728,16 @@ - ceph-iscsi-gw post_tasks: - - name: start rbd-target-gw + - name: start ceph iscsi services systemd: - name: rbd-target-gw + name: '{{ item }}' state: started enabled: yes - when: - - not containerized_deployment + with_items: + - tcmu-runner + - rbd-target-api + - rbd-target-gw + when: not containerized_deployment - name: upgrade ceph client node -- 2.39.5