Project

General

Profile

Actions

Bug #47841

closed

`ceph orch device ls` assumes lsm data is present

Added by Michael Fritch over 3 years ago. Updated over 3 years 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 (v1):
Crash signature (v2):

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 3 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 3 years ago

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

Updated by Sebastian Wagner over 3 years ago

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

Updated by Sebastian Wagner over 3 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF