Actions
Bug #59428
opencephadm version throws traceback if fsid is not provided
% Done:
100%
Source:
Tags:
Backport:
reef, quincy
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Some other changes ended up routing the cephadm version code through a function that needs an fsid to work.
[root@vm-00 ~]# cephadm version Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/sbin/cephadm/__main__.py", line 10067, in <module> File "/usr/sbin/cephadm/__main__.py", line 10055, in main File "/usr/sbin/cephadm/__main__.py", line 2238, in _infer_image File "/usr/sbin/cephadm/__main__.py", line 2323, in infer_local_ceph_image File "/usr/sbin/cephadm/__main__.py", line 2286, in get_container_info File "/usr/sbin/cephadm/__main__.py", line 2286, in <listcomp> File "/usr/sbin/cephadm/__main__.py", line 222, in __getattr__ AttributeError: 'CephadmContext' object has no attribute 'fsid'
Also present on quincy currently
[root@vm-00 ~]# cephadm 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'
Updated by Redouane Kachach Elhichou 11 months ago
- Related to Feature #59680: Embed version of ceph - as built - in the cephadm binary added
Actions