ceph-ansible/infrastructure-playbooks
Dimitri Savineau 03ed9e111c infra: use dedicated variables for balancer status
The balancer status is registered during the cephadm-adopt, rolling_update
and swith2container playbooks. But it is also used in the ceph-handler role
which is included in those playbooks too.
Even if the ceph-handler tasks are skipped for rolling_update and
switch2container, the balancer_status variable is erased with the skip task
result.

play1:
  register: balancer_status
play2:
  register: balancer_status <-- skipped
play3:
  when: (balancer_status.stdout | from_json)['active'] | bool

This leads to issue like:

The conditional check '(balancer_status.stdout | from_json)['active'] | bool'
failed. The error was: Unexpected templating type error occurred on
({% if (balancer_status.stdout | from_json)['active'] | bool %} True
{% else %} False {% endif %}): expected string or buffer.

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

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 386661699b)
2021-08-04 11:48:13 -04:00
..
untested-by-ci Use ansible_facts 2021-03-26 00:16:58 +01:00
vars osd: remove variable osd_scenario 2019-04-12 00:45:21 +00:00
README.md doc: update infra playbooks statements 2020-03-16 14:43:35 +01:00
add-mon.yml mon: refact initial keyring generation 2020-12-01 09:53:26 -05:00
add-osd.yml facts: explicitly disable facter and ohai 2020-07-20 21:23:48 +02:00
ceph-keys.yml ceph_key: set state as optional 2020-12-01 09:53:26 -05:00
docker-to-podman.yml docker2podman: skip some role imports from handler 2021-04-12 13:30:31 +02:00
filestore-to-bluestore.yml fs2bs: use match filter in selectattr() 2021-05-26 09:58:19 +02:00
gather-ceph-logs.yml lint: do not use 'local_action' 2020-12-16 14:05:45 +01:00
lv-create.yml lint: ignore 302,303,505 errors 2020-12-16 14:05:45 +01:00
lv-teardown.yml lint: ignore 302,303,505 errors 2020-12-16 14:05:45 +01:00
purge-cluster.yml purge: support osd_auto_discovery 2021-07-26 17:53:06 +02:00
purge-container-cluster.yml purge: merge playbooks 2021-07-26 17:53:06 +02:00
purge-dashboard.yml infra: add playbook to purge dashboard/monitoring 2021-07-26 17:48:32 +02:00
purge-docker-cluster.yml purge: merge playbooks 2021-07-26 17:53:06 +02:00
purge-iscsi-gateways.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
rgw-add-users-buckets.yml Example ceph_add_users_buckets playbook 2018-12-20 14:23:25 +01:00
rolling_update.yml infra: use dedicated variables for balancer status 2021-08-04 11:48:13 -04:00
shrink-mds.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
shrink-mgr.yml shrink-mgr: modify existing mgr check 2021-06-30 16:12:07 +02:00
shrink-mon.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
shrink-osd.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
shrink-rbdmirror.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
shrink-rgw.yml Use ansible_facts 2021-03-26 00:16:58 +01:00
storage-inventory.yml common: don't enable debug log on ceph-volume calls by default 2020-08-13 14:21:44 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml infra: use dedicated variables for balancer status 2021-08-04 11:48:13 -04:00
take-over-existing-cluster.yml lint: set pipefail on shell tasks 2020-12-16 14:05:45 +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>.