]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: ensure no ceph kernel thread is present v3.2.18
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 21 Jun 2019 14:10:16 +0000 (16:10 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 24 Jun 2019 13:36:21 +0000 (15:36 +0200)
commit8b91905dff47ee65fed4dd9c84c006942b193685
tree13f9f0c18e518d50863cce03ca17e28c4728e85f
parent520f4e9914749fea07b86097231f0367b750c4e4
purge: ensure no ceph kernel thread is present

This tries to first unmount any cephfs/nfs-ganesha mount point on client
nodes, then unmap any mapped rbd devices and finally it tries to remove
ceph kernel modules.
If it fails it means some resources are still busy and should be cleaned
manually before continuing to purge the cluster.
This is done early in the playbook so the cluster stays untouched until
everything is ready for that operation, otherwise if you try to redeploy
a cluster it could end up by getting confused by leftover from previous
deployment.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1337915
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 20e4852888ecc76d8d0fa194a438fa2a90e1cde3)
infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/purge-docker-cluster.yml