]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rolling_update: use ceph health instead of ceph -s
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 26 Oct 2020 23:35:06 +0000 (19:35 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 3 Nov 2020 08:05:33 +0000 (09:05 +0100)
commitacddf4fb679f5f5251b3414793680042ee3be394
tree54f7bf59aef73a6f08a102815c68b0729176e6a7
parent3f9081931f8a369b075060083cdb225e3477f99a
rolling_update: use ceph health instead of ceph -s

The ceph status command returns a lot of information stored in variables
and/or facts which could consume resources for nothing.
When checking the cluster health, we're using the health structure in the
ceph status output.
To optimize this, we could use the ceph health command which contains
the same needed information.

$ ceph status -f json | wc -c
2001
$ ceph health -f json | wc -c
46

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/rolling_update.yml