Bug #62528
closedOrchestrator - Bug #59428: cephadm version throws traceback if fsid is not provided
Runtime Error: cephadmin version
0%
Description
Error when running "cephadmin version":
Traceback (most recent call last):
File "/usr/sbin/cephadm", line 9653, in <module>
main()
File "/usr/sbin/cephadm", line 9641, in main
r = ctx.func(ctx)
File "/usr/sbin/cephadm", line 2178, in infer_image
ctx.image = infer_local_ceph_image(ctx, ctx.container_engine.path)
File "/usr/sbin/cephadm", line 2261, in infer_local_ceph_image
container_info = get_container_info(ctx, daemon, daemon_name is not None)
File "/usr/sbin/cephadm", line 2224, in get_container_info
matching_daemons = [d for d in daemons if daemon_name_or_type(d) daemon_filter and d['fsid'] ctx.fsid]
File "/usr/sbin/cephadm", line 2224, in <listcomp>
matching_daemons = [d for d in daemons if daemon_name_or_type(d) daemon_filter and d['fsid'] ctx.fsid]
File "/usr/sbin/cephadm", line 218, in getattr
return super()._getattribute__(name)
AttributeError: 'CephadmContext' object has no attribute 'fsid'
cephadm package:
Package: cephadm
Version: 17.2.6-1focal
from apt repo:
deb https://download.ceph.com/debian-quincy/ focal main
ceph -v:
ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable)
Python version:
Python 3.8.10
Is it recommended to be running these debian quincy packages on ubuntu focal? I'm just wondering if that's where the issue is, because no one else seems to be reporting this same error.
Updated by John Mulligan 9 months ago
- Status changed from New to Duplicate
- Parent task set to #59428
This is a known issue in some older versions of Ceph. This is fixed on ceph main by changing how version is expected to work. See linked issue, thanks.