]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: ensure no ceph kernel thread is present
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 08:05:11 +0000 (10:05 +0200)
commit20e4852888ecc76d8d0fa194a438fa2a90e1cde3
tree3ae0c3b8475a0bf8364dfdfd5511ca81d66d15c5
parent45d46541cb60818e8ad9a6b2d24fea91c0315525
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>
infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/purge-docker-cluster.yml