Project

General

Profile

Actions

Bug #53394

closed

cephadm: can infer config from mon from different cluster causing file not found error

Added by Adam King over 4 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.0.0-9285-g6e457b2978
Released In:
v17.2.0~418
Upkeep Timestamp:
2025-07-14T15:50:46+00:00

Description

If you are trying to infer config for a cluster with fsid id x and there is a directory for a mon in /var/lib/ceph/y but no mon in /var/lib/ceph/x we infer there is a config file in /var/lib/ceph/x/mon.hostname/config when this is not true.

This can cause failures while refreshing the host devices as cephadm ceph-volume infers fsid which infers config in turn. Looks like

2021-11-24T22:23:32.576404+0000 mgr.vm-00.kewicp [DBG] Running command: sudo /usr/bin/python3 /var/lib/ceph/85ece54c-4d3e-11ec-9add-525400156a1b/cephadm.59353d82cad252b87711b45c48c2b73946ead02d0e754d16fcdf0b077e561997 --image quay.ceph.io/ceph-ci/ceph@sha256:3771bb0bce3efa21f8f028a652abd119188559fd7e79a4f4e880992706db988f ceph-volume --fsid 85ece54c-4d3e-11ec-9add-525400156a1b -- inventory --format=json-pretty --filter-for-batch
2021-11-24T22:23:33.809202+0000 mgr.vm-00.kewicp [DBG] code: 1
2021-11-24T22:23:33.809390+0000 mgr.vm-00.kewicp [DBG] err: Inferring config /var/lib/ceph/85ece54c-4d3e-11ec-9add-525400156a1b/mon.vm-01/config
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/85ece54c-4d3e-11ec-9add-525400156a1b/mon.vm-01/config'

Actions #1

Updated by Adam King over 4 years ago

  • Status changed from New to Pending Backport
  • Backport set to pacific
  • Pull request ID set to 44100
Actions #2

Updated by Laura Flores about 4 years ago

/a/yuriw-2021-12-23_16:50:03-rados-wip-yuri6-testing-2021-12-22-1410-distro-default-smithi/6582558

Actions #3

Updated by Sebastian Wagner about 4 years ago

  • Status changed from Pending Backport to Resolved
Actions #4

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to 6e457b2978ed6e31c3986dbf7d2407657ca7d6a6
  • Fixed In set to v17.0.0-9285-g6e457b2978
  • Released In set to v17.2.0~418
  • Upkeep Timestamp set to 2025-07-14T15:50:46+00:00
Actions

Also available in: Atom PDF