]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
igw: stop daemons on purge all calls v3.2.0beta9
authorMike Christie <mchristi@redhat.com>
Wed, 12 Sep 2018 20:37:44 +0000 (15:37 -0500)
committerSébastien Han <seb@redhat.com>
Thu, 25 Oct 2018 10:59:18 +0000 (12:59 +0200)
When purging the entire igw config (lio and rbd) stop disable the api
and gw daemons.

Fixes Red Hat BZ
https://bugzilla.redhat.com/show_bug.cgi?id=1621255

Signed-off-by: Mike Christie <mchristi@redhat.com>
infrastructure-playbooks/purge-iscsi-gateways.yml

index 36990143085fa56a43c49e2a66b0f47e3d8ebf50..8fdf2d8e1dcbc584db519a144ac253c5f87026a0 100644 (file)
       igw_purge: mode="disks"
       when: igw_purge_type == 'all'
 
+    - name: stop and disable rbd-target-api daemon
+      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
+        state: stopped
+        enabled: no
+      when: igw_purge_type == 'all'
+
     - name: restart rbd-target-gw daemons
       service: name=rbd-target-gw state=restarted
+      when: igw_purge_type == 'lio'