]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: remove potential socket leftover
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 11 Sep 2020 15:30:33 +0000 (17:30 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 14 Sep 2020 20:50:49 +0000 (16:50 -0400)
This commit ensure we remove any socket left by ceph and the
`ceph-osd-run.sh` script.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1861755
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5e91e0f3e24da0492b6f5dd2bc808215b5066ddc)

infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/purge-container-cluster.yml

index 9178464ddc65987d97306fbc7fa11d5e3b5f27bb..23d9fab3c34d0dd92f5aafb1f4dda44d01809923 100644 (file)
       - ansible_pkg_mgr == 'apt'
       - purge_all_packages == true
 
-  - name: remove config
+  - name: remove config and any ceph socket left
     file:
       path: "{{ item }}"
       state: absent
       - /etc/ceph
       - /etc/keepalived
       - /etc/haproxy
+      - /run/ceph
 
   - name: remove logs
     file:
index db317f99b0adcd553f75d4970c286be575b8767b..9a4d508715565e454fd5eea2c40723aaf37a4114 100644 (file)
   become: true
 
   tasks:
-  - name: purge ceph directories for "{{ ansible_hostname }}"
+  - name: purge ceph directories for "{{ ansible_hostname }}" and ceph socket
     file:
       path: "{{ item }}"
       state: absent
     with_items:
       - /etc/ceph
       - /var/log/ceph
+      - /run/ceph
+      - "{{ ceph_osd_docker_run_script_path | default('/usr/share') }}/ceph-osd-run.sh"
 
   - name: remove ceph data
     shell: rm -rf /var/lib/ceph/*