From: Mike Christie Date: Thu, 8 Nov 2018 21:38:08 +0000 (-0600) Subject: igw: stop tcmu-runner on iscsi purge X-Git-Tag: v3.2.0rc2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=77de54025bad5f549faa9c34fae14617d49f759d;p=ceph-ansible.git igw: stop tcmu-runner on iscsi purge When the iscsi purge playbook is run we stop the gw and api daemons but not tcmu-runner which I forgot on the previous PR. Fixes Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1621255 Signed-off-by: Mike Christie (cherry picked from commit b523a44a1a9cf60f7512af833d97c52c1dee1bba) --- diff --git a/infrastructure-playbooks/purge-iscsi-gateways.yml b/infrastructure-playbooks/purge-iscsi-gateways.yml index 8fdf2d8e1..473e25647 100644 --- a/infrastructure-playbooks/purge-iscsi-gateways.yml +++ b/infrastructure-playbooks/purge-iscsi-gateways.yml @@ -35,19 +35,16 @@ igw_purge: mode="disks" when: igw_purge_type == 'all' - - name: stop and disable rbd-target-api daemon + - name: stop and disable daemons service: - name: rbd-target-api - state: stopped - enabled: no - when: igw_purge_type == 'all' - - - name: stop and disable rbd-target-gw daemon - service: - name: rbd-target-gw + name: "{{ item }}" state: stopped enabled: no when: igw_purge_type == 'all' + with_items: + - rbd-target-api + - rbd-target-gw + - tcmu-runner - name: restart rbd-target-gw daemons service: name=rbd-target-gw state=restarted