Project

General

Profile

Actions

Bug #47841

closed

`ceph orch device ls` assumes lsm data is present

Added by Michael Fritch over 5 years ago. Updated 8 months ago.

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

0%

Source:
Development
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v16.0.0-6427-g7d644cca9e
Released In:
v16.2.0~1063
Upkeep Timestamp:
2025-07-14T19:26:58+00:00

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 1 (0 open1 closed)

Has duplicate Orchestrator - Bug #47340: _list_devices: 'NoneType' object has no attribute 'get'Duplicate

Actions
Actions #1

Updated by Nathan Cutler over 5 years ago

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

Updated by Sebastian Wagner over 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Sebastian Wagner over 5 years ago

  • Has duplicate Bug #47340: _list_devices: 'NoneType' object has no attribute 'get' added
Actions #4

Updated by Sebastian Wagner over 5 years ago

  • Status changed from Pending Backport to Resolved
Actions #5

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to 7d644cca9e6a6248f300e1225727bee28dfeab65
  • Fixed In set to v16.0.0-6427-g7d644cca9e
  • Released In set to v16.2.0~1063
  • Upkeep Timestamp set to 2025-07-14T19:26:58+00:00
Actions

Also available in: Atom PDF