Project

General

Profile

Actions

Bug #58686

open

ceph orch device ls dows not work with rook using host storage

Added by Michael Lipp about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

In the toolbox running ceph orch device ls results in

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1755, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 171, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 462, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 107, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)  # noqa: E731
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 96, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 484, in _list_devices
    inv_hosts = raise_if_exception(completion)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 228, in raise_if_exception
    raise e
Exception: No storage class exists matching name provided in ceph config at mgr/rook/storage_class

Expected behavior:

Show device list.

I suspect that the problem is related to having host storage only (no osds using PV). Despite that, the configured storage class is local:

bash-4.4$ ceph config get mgr mgr/rook/storage_class
local

As no storageClass is configured in the cluster cr (host storage only), this might lead to the problem.

Setting mgr/rook/storage_class to an existing storage class avoids the excpeption but results in an empty list.

Actions #2

Updated by Michael Lipp about 1 year ago

There's no button to close this, but due to the issue I finally found (see above) it can be closed.

Actions

Also available in: Atom PDF