]> git-server-git.apps.pok.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 11:20:50 +0000 (13:20 +0200)
commit0a0cdc0963ecb5bd7d9804095748626ed7664911
tree127dc81a5621bd1fe0ea4d7639b025135379ff24
parentfbf4ed42aee8fa5fd18c4c289cbb80ffeda8f72e
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