]> git-server-git.apps.pok.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)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 3 Nov 2020 19:38:49 +0000 (14:38 -0500)
commit522e183d8f2755d17678a383a3e414dac2cc6ccc
tree6a8beee761b008a12a1d89d00bfb9dc916459dd2
parentbcd2797d11e7ca011cde1d813dc66ec65126546d
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>
(cherry picked from commit acddf4fb679f5f5251b3414793680042ee3be394)
infrastructure-playbooks/rolling_update.yml