Feature #48368
opencephadm check-host should verify fsid of ceph.conf
0%
Description
if cephadm check-host detects a ceph cluster(s) running, it can find out the fsid(s) of that cluster (those clusters)
and then it can check /etc/ceph/ceph.conf - the fsid should match one of the detected clusters.
If no match, print an error.
Moved upstream from https://github.com/ceph/ceph-salt/issues/330
Updated by Sebastian Wagner about 3 years ago
- Related to Bug #49724: fsid is not validated during accessing the shell through cli added
Updated by Sebastian Wagner about 3 years ago
- Status changed from New to Need More Info
Updated by Redouane Kachach Elhichou about 2 years ago
As of the changes introduced by: https://github.com/ceph/ceph/pull/45877 we don't rely on /etc/ceph/ceph.conf (it's the last file we check to get the cluster conf in terms of priority). Thus, I don't see any benefits from using /etc/ceph/ceph.conf to perform the sanity check. In a multi-cluster scenario at most we can confirm that one of them is properly configured (its fsid matches /etc/ceph/ceph.conf) but we can't check the other clusters.