]> 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 09:40:14 +0000 (10:40 +0100)
commit3d0898aa5db7b264d17a6948747a55b0834629e2
treebb3d81cfb39ad4f2beee5a26ae107064d597c03b
parentbd87d69183db4bc9a9cdd08f67e53c5d029dacd0
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>
infrastructure-playbooks/shrink-mds.yml