Actions
Bug #53394
closedcephadm: can infer config from mon from different cluster causing file not found error
% Done:
0%
Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
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'
Updated by Adam King over 2 years ago
- Status changed from New to Pending Backport
- Backport set to pacific
- Pull request ID set to 44100
Updated by Laura Flores over 2 years ago
/a/yuriw-2021-12-23_16:50:03-rados-wip-yuri6-testing-2021-12-22-1410-distro-default-smithi/6582558
Updated by Sebastian Wagner over 2 years ago
- Status changed from Pending Backport to Resolved
Actions