]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
shrink-mds: fix condition on fs deletion
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 Jan 2020 06:17:08 +0000 (07:17 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 Jan 2020 10:28:12 +0000 (11:28 +0100)
commit0db611ebf8f6f53d249cad9c751b95c1c1e2b869
treef17efd7a45c5628b9f7cf33251e8aa94cd5512e3
parent09a71e4a8c2ba1bcc470d1813260ac89378b6455
shrink-mds: fix condition on fs deletion

the new ceph status registered in `ceph_status` will report `fsmap.up` =
0 when it's the last mds given that it's done after we shrink the mds,
it means the condition is wrong. Also adding a condition so we don't try
to delete the fs if a standby node is going to rejoin the cluster.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1787543
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3d0898aa5db7b264d17a6948747a55b0834629e2)
infrastructure-playbooks/shrink-mds.yml