Project

General

Profile

Bug #47841

`ceph orch device ls` assumes lsm data is present

Added by Michael Fritch 5 months ago. Updated 3 months ago.

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

0%

Source:
Development
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Found via the rook toolbox in a k8s environment:

$ ceph orch device ls
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1188, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 141, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 329, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 103, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 92, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 421, in _list_devices
    if d.lsm_data.get('ledSupport', None):
AttributeError: 'NoneType' object has no attribute 'get'

Related issues

Duplicated by Orchestrator - Bug #47340: _list_devices: 'NoneType' object has no attribute 'get' Duplicate

History

#1 Updated by Nathan Cutler 5 months ago

  • Status changed from New to Fix Under Review
  • Backport set to octopus
  • Pull request ID set to 37644

#2 Updated by Sebastian Wagner 3 months ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Sebastian Wagner 3 months ago

  • Duplicated by Bug #47340: _list_devices: 'NoneType' object has no attribute 'get' added

#4 Updated by Sebastian Wagner 3 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF