]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/FSMap: assign v16.2.4 compat to pre-v16.2.5 standby daemons
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 Nov 2021 20:41:24 +0000 (16:41 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 9 Nov 2021 16:09:13 +0000 (11:09 -0500)
commit74e3f5ec5a49ce99b56c305624e9110fcb4b787c
tree6df62e9023ba014c4dc2f3ea3cbde75f15d31015
parent56463c4bc577d708a63680d13fb67840b379542a
mds/FSMap: assign v16.2.4 compat to pre-v16.2.5 standby daemons

With v16.2.5, the monitors store an MDS's CompatSet with its mds_info_t
in the MDSMap. If an older MDS fails and rejoins the cluster, it gets
assigned the empty CompatSet. This is problematic during upgrades as an
MDS failure may prevent the upgrade process from continuing and cause
file system unavailability.

This patch makes it so the mons will assign a reasonable default: a
CompatSet used since v14.2.0 until v16.2.5.

Fixes: https://tracker.ceph.com/issues/53150
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/FSMap.cc
src/mds/MDSMap.cc
src/mds/MDSMap.h