ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 6e2ebe857d cephadm-adopt: remove legacy directory after adoption
When this directory is left after the osd adoption, it leads to the following error:

```
[WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices
    host axdesec2ocs1n002.ecommerce.inditex.grp `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/41555360-e96b-4b16-a37c-873e0c940091/mon.axdesec2ocs1n002/config
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/41555360-e96b-4b16-a37c-873e0c940091/mon.axdesec2ocs1n002/config'.
```

this is because of an unexpected behavior regarding 'config inferring' when a legacy directory is present in /var/lib/ceph.

Note: this doesn't fix the root cause, this is a workaround.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2075510

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2022-05-12 09:58:14 +02:00
..
untested-by-ci Use ansible_facts 2021-03-08 20:54:02 +01:00
vars osd: remove variable osd_scenario 2019-04-11 11:57:02 -04:00
README.md doc: update infra playbooks statements 2020-02-25 15:27:52 +01:00
add-mon.yml mon: refact initial keyring generation 2020-11-25 09:34:44 +01:00
backup-and-restore-ceph-files.yml contrib: add a playbook 2022-04-28 22:57:27 +02:00
ceph-keys.yml ceph_key: set state as optional 2020-09-14 14:12:21 -04:00
cephadm-adopt.yml cephadm-adopt: remove legacy directory after adoption 2022-05-12 09:58:14 +02:00
cephadm.yml cephadm: support adding hosts with ipv6 2021-10-28 16:37:22 +02:00
docker-to-podman.yml docker2podman: add documentation/header 2021-04-12 09:30:26 +02:00
filestore-to-bluestore.yml fs2bs: use match filter in selectattr() 2021-05-26 08:14:38 +02:00
gather-ceph-logs.yml lint: do not use 'local_action' 2020-11-23 08:33:47 +01:00
lv-create.yml lint: ignore 302,303,505 errors 2020-11-23 08:33:47 +01:00
lv-teardown.yml lint: ignore 302,303,505 errors 2020-11-23 08:33:47 +01:00
purge-cluster.yml purge: ceph-crash purge fixes 2022-03-02 10:08:35 +01:00
purge-container-cluster.yml purge: merge playbooks 2021-07-22 10:49:44 -04:00
purge-dashboard.yml purge-dashboard: remove cid files 2021-09-08 15:40:46 +02:00
purge-iscsi-gateways.yml Use ansible_facts 2021-03-08 20:54:02 +01:00
rgw-add-users-buckets.yml Fixes typo in rgw-add-users-buckets playbook 2021-08-09 15:35:55 +02:00
rolling_update.yml upgrade: block upgrade when rgw multisite is active 2022-03-20 08:13:38 +01:00
shrink-mds.yml Use ansible_facts 2021-03-08 20:54:02 +01:00
shrink-mgr.yml shrink-mgr: modify existing mgr check 2021-06-29 14:53:19 +02:00
shrink-mon.yml Use ansible_facts 2021-03-08 20:54:02 +01:00
shrink-osd.yml shrink-osd: fix regression because of a wrong regex 2021-10-21 10:01:23 +02:00
shrink-rbdmirror.yml Use ansible_facts 2021-03-08 20:54:02 +01:00
shrink-rgw.yml Use ansible_facts 2021-03-08 20:54:02 +01:00
storage-inventory.yml add missing boolean filter 2020-09-28 20:45:01 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch2containers: fail if less than 3 monitors 2022-02-21 21:07:27 +01:00
take-over-existing-cluster.yml Use upstream config_template collection 2022-01-18 20:22:10 +01: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, run ansible-playbook infrastructure-playbooks/<playbook>.