From 8eb8dca192ed5252ae32fef22050086fad9bc4c5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 15 Feb 2020 08:55:16 -0600 Subject: [PATCH] cephadm: error out on filestore OSDs We do not currently support filestore OSDs. Signed-off-by: Sage Weil --- src/cephadm/cephadm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 71ca3c33803..72b21f783dc 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2339,6 +2339,15 @@ def command_adopt(): call_throws(['systemctl', 'disable', unit_name]) # data + os_type = None + if os.path.exists(os.path.join(data_dir_src, 'type')): + with open(os.path.join(data_dir_src, 'type')) as f: + os_type = f.read().strip() + else: + raise Error('"type" file missing for OSD data dir') + logger.info('objectstore_type is %s' % os_type) + if os_type == 'filestore': + raise Error('FileStore is not supported by cephadm') logger.info('Moving data...') data_dir_dst = make_data_dir(fsid, daemon_type, daemon_id, uid=uid, gid=gid) -- 2.39.5