]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-docker-cluster: Remove ceph-osd service
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 20 Mar 2019 17:40:33 +0000 (13:40 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 1 Apr 2019 09:10:29 +0000 (09:10 +0000)
The systemd ceph-osd@.service file used for starting the ceph osd
containers is used in all osd_scenarios.
Currently purging a containerized deployment using the lvm scenario
didn't remove the ceph-osd systemd service.
If the next deployment is a non-containerized deployment, the OSDs
won't be online because the file is still present and override the
one from the package.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 7cc626b72dbb242a00f714d925b6aea6b4524c37)

infrastructure-playbooks/purge-docker-cluster.yml

index 37764d09994c39f9112b0704d1a37dcf3d374f8a..3b886ddfd91ea3b2724a85e24eb5a645a8a66961 100644 (file)
             state: absent
           with_items:
             - "{{ resolved_parent_device }}"
-
-        - name: remove ceph osd service
-          file:
-            path: /etc/systemd/system/ceph-osd@.service
-            state: absent
       when:
         - osd_scenario != "lvm"
 
       when:
         - osd_scenario == "lvm"
 
+    - name: remove ceph osd service
+      file:
+        path: /etc/systemd/system/ceph-osd@.service
+        state: absent
+
     - name: remove ceph osd image
       docker_image:
         state: absent