From: Jeff Layton Date: Thu, 29 Aug 2019 17:05:06 +0000 (-0400) Subject: mds: add a HEALTH_WARN message when inline_data is enabled X-Git-Tag: v15.1.0~1442^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=865c9557816f1e51330fd7738bcc6d8453ee9827;p=ceph.git mds: add a HEALTH_WARN message when inline_data is enabled Alert admins when they have filesystems that have the inline_data feature enabled, as it is being deprecated. Signed-off-by: Jeff Layton --- diff --git a/src/mds/MDSMap.cc b/src/mds/MDSMap.cc index fb695d0f4d90..4ff6c8e500dd 100644 --- a/src/mds/MDSMap.cc +++ b/src/mds/MDSMap.cc @@ -505,6 +505,15 @@ void MDSMap::get_health_checks(health_check_map_t *checks) const ss << "multi-active mds while there are snapshots possibly created by pre-mimic MDS"; check.detail.push_back(ss.str()); } + + if (get_inline_data_enabled()) { + health_check_t &check = checks->add( + "FS_INLINE_DATA_DEPRECATED", HEALTH_WARN, + "%num% filesystem%plurals% with deprecated feature inline_data", 1); + stringstream ss; + ss << "fs " << fs_name << " has deprecated feature inline_data enabled."; + check.detail.push_back(ss.str()); + } } void MDSMap::mds_info_t::encode_versioned(bufferlist& bl, uint64_t features) const