]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: actually remove of /var/lib/ceph/*
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 27 Sep 2018 09:33:51 +0000 (11:33 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 27 Sep 2018 19:42:43 +0000 (21:42 +0200)
commit79a5725cf64e28a11a47fd665ea1749c37784043
tree89ee483e743e9d4a7b784d3d007374c9411ac54f
parent0bb13cff08b0985d9101652a7543ae3b9f0e20f1
purge: actually remove of /var/lib/ceph/*

38dc20e74b89c1833d45f677f405fe758fd10c04 introduced a bug in the purge
playbooks because using `*` in `command` module doesn't work.

`/var/lib/ceph/*` files are not purged it means there is a leftover.

When trying to redeploy a cluster, it failed because monitor daemon was
detecting existing keyring, therefore, it assumed a cluster already
existed.

Typical error (from container output):

```
Sep 26 13:18:16 mon0 docker[31316]: 2018-09-26 13:18:16  /entrypoint.sh: Existing mon, trying to rejoin cluster...
Sep 26 13:18:16 mon0 docker[31316]: 2018-09-26 13:18:16.9323937f15b0d74700 -1 auth: unable to find a keyring on /etc/ceph/test.client.admin.keyring,/etc/ceph/test.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,:(2) No such file or directory
Sep 26 13:18:23 mon0 docker[31316]: 2018-09-26 13:18:23  /entrypoint.sh:
SUCCESS
```

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