ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 144c92b21f purge: actually remove of /var/lib/ceph/*
38dc20e74b 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>
2018-09-27 17:45:21 +02:00
..
untested-by-ci syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
vars infrastructure-playbooks: add comments for lv_vars.yml 2018-08-29 21:10:20 +00:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml mon/client: remove acl code 2018-04-23 18:34:58 +02:00
lv-create.yml infrastructure playbooks: remove lv-create error msg 2018-08-29 21:10:20 +00:00
lv-teardown.yml lv-teardown: fail silently if lv_vars.yml is not found 2018-08-16 16:38:23 +02:00
osd-configure.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
purge-cluster.yml purge: actually remove of /var/lib/ceph/* 2018-09-27 17:45:21 +02:00
purge-docker-cluster.yml purge: actually remove of /var/lib/ceph/* 2018-09-27 17:45:21 +02:00
purge-iscsi-gateways.yml iscsi group name preserve backward compatibility 2018-08-20 23:52:19 +02:00
rgw-standalone.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
rolling_update.yml rolling_update: ensure pgs_by_state has at least 1 entry 2018-09-25 14:58:54 +00:00
shrink-mon.yml shrink-mon: fix typo in the code doc 2017-10-27 11:59:22 +02:00
shrink-osd.yml shrink-osd: follow up on 36fb3cde 2018-09-18 07:27:41 +00:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch: disable ceph-disk units 2018-05-17 08:48:28 +02:00
take-over-existing-cluster.yml take-over-existing-cluster: do not call var_files 2018-08-20 14:47:04 +02:00

README.md

Infrastructure playbooks

This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.

To use them, you must move them to ceph-ansible's root directory, then run using ansible-playbook <playbook>.