Project

General

Profile

Actions

Bug #62528

closed

Orchestrator - Bug #59428: cephadm version throws traceback if fsid is not provided

Runtime Error: cephadmin version

Added by Eric Chennells 9 months ago. Updated 9 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

Actions #1

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.

Actions

Also available in: Atom PDF