ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 7dd68b9ac1 rgw: fix multi instances scaleout
When rgw and osd are collocated, the current workflow prevents from
scaling out the radosgw_num_instances parameter when rerunning the
playbook.

The environment file used in the rgw systemd template is rendered when
executing the `ceph-rgw` role but during a new run of the playbook (in
order to scale out rgw instances), handlers are triggered from `ceph-osd`
role which is run before `ceph-rgw`, therefore it tries to start the new
rgw daemon whereas its corresponding environment file hasn't been
rendered yet and fails like following:

```
ceph-radosgw@rgw.ceph4osd3.rgw1.service failed to run 'start-pre' task: No such file or directory
```

This commit moves the tasks generating this file in `ceph-config` role
so it is generated early.

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-07-02 10:39:50 -04:00
..
untested-by-ci ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02: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 add-{mon,osd}: run raw install python tasks 2019-11-07 14:04:26 +01:00
add-osd.yml osd: support scaling up using --limit 2020-01-13 09:59:08 -05:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml global: add newline at end of file 2019-08-23 15:56:47 +02:00
cephadm-adopt.yml Add playbook for converting cluster to cephadm 2020-06-29 09:21:38 -04:00
docker-to-podman.yml docker2podman: make images pulling optional 2020-06-22 12:19:38 -04:00
filestore-to-bluestore.yml filestore-to-bluestore: fix py2 on skipped tasks 2020-04-20 16:19:18 +02:00
gather-ceph-logs.yml global: add newline at end of file 2019-08-23 15:56:47 +02:00
lv-create.yml lv-create: fix a typo 2019-09-26 11:35:24 +02:00
lv-teardown.yml improve coding style 2019-04-23 15:37:07 +02:00
purge-cluster.yml purge: stop rgw instances by iteration 2020-03-02 16:32:06 +01:00
purge-container-cluster.yml ceph-osd: remove ceph-osd-run.sh script 2020-06-18 17:51:13 +02:00
purge-iscsi-gateways.yml purge-iscsi-gateways: don't run all ceph-facts 2020-01-10 15:46:15 +01:00
rgw-add-users-buckets.yml Example ceph_add_users_buckets playbook 2018-12-20 14:23:25 +01:00
rolling_update.yml rolling_update: add any_errors_fatal 2020-06-29 12:58:53 -04:00
shrink-mds.yml shrink-mgr: fix systemd condition 2020-03-03 10:32:15 +01:00
shrink-mgr.yml shrink-mgr: fix systemd condition 2020-03-03 10:32:15 +01:00
shrink-mon.yml shrink: don't use localhost node 2020-03-03 10:32:15 +01:00
shrink-osd.yml container: remove ulimit nofile parameter 2020-03-30 09:54:23 +02:00
shrink-rbdmirror.yml shrink-rbdmirror: fix presence after removal 2020-03-03 10:32:15 +01:00
shrink-rgw.yml shrink-rgw: refact global workflow 2020-01-09 19:02:17 +01:00
storage-inventory.yml improve coding style 2019-04-23 15:37:07 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml rgw: fix multi instances scaleout 2020-07-02 10:39:50 -04:00
take-over-existing-cluster.yml remove ceph-agent role and references 2019-06-03 13:35:50 +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, run ansible-playbook infrastructure-playbooks/<playbook>.