Project

General

Profile

Feature #48368

cephadm check-host should verify fsid of ceph.conf

Added by Sebastian Wagner over 3 years ago. Updated almost 2 years ago.

Status:
Need More Info
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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


Related issues

Related to Orchestrator - Bug #49724: fsid is not validated during accessing the shell through cli Resolved

History

#1 Updated by Sebastian Wagner about 3 years ago

  • Related to Bug #49724: fsid is not validated during accessing the shell through cli added

#2 Updated by Sebastian Wagner about 3 years ago

  • Status changed from New to Need More Info

#3 Updated by Redouane Kachach Elhichou almost 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.

Also available in: Atom PDF