Project

General

Profile

Bug #50685

wrong exception type: Exception("No filters applied")

Added by Sebastian Wagner 6 months ago. Updated about 1 month ago.

Status:
Fix Under Review
Priority:
Normal
Category:
cephadm/osd
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

Traceback (most recent call last):
  File "/usr/share/ceph/mgr/cephadm/serve.py", line 466, in _apply_all_services
    if self._apply_service(spec):
  File "/usr/share/ceph/mgr/cephadm/serve.py", line 523, in _apply_service
    self.mgr.osd_service.create_from_spec(cast(DriveGroupSpec, spec))
  File "/usr/share/ceph/mgr/cephadm/services/osd.py", line 68, in create_from_spec
    ret = create_from_spec_one(self.prepare_drivegroup(drive_group))
  File "/usr/share/ceph/mgr/cephadm/services/osd.py", line 171, in prepare_drivegroup
    existing_daemons=len(dd_for_spec_and_host))
  File "/lib/python3.6/site-packages/ceph/deployment/drive_selection/selector.py", line 26, in __init__
    self._data = self.assign_devices(self.spec.data_devices)
  File "/lib/python3.6/site-packages/ceph/deployment/drive_selection/selector.py", line 130, in assign_devices
    if not all(m.compare(disk) for m in FilterGenerator(device_filter)):
  File "/lib/python3.6/site-packages/ceph/deployment/drive_selection/selector.py", line 130, in <genexpr>
    if not all(m.compare(disk) for m in FilterGenerator(device_filter)):
  File "/lib/python3.6/site-packages/ceph/deployment/drive_selection/matchers.py", line 407, in compare
    raise Exception("No filters applied")
May 06 07:20:31 host conmon[2216]: debug 2021-05-06T07:20:31.114+0000 7f69546c4700 -1 log_channel(cephadm) log [ERR] : Failed to apply osd.dashboard-spec DriveGroupSpec(name=dashboard-1620208717516->placement=PlacementSpec(host_pattern='host'), service_id='dashboard-1620208717516', service_type='osd', data_devices=DeviceSelection(size='931.5GB', all=False), osd_id_claims={}, unmanaged=False, filter_logic='AND', preview_only=False): No filters applied

this should not end in the logs like this

History

#1 Updated by Sebastian Wagner 6 months ago

  • Description updated (diff)

#2 Updated by Sebastian Wagner about 1 month ago

  • Status changed from New to Fix Under Review
  • Assignee set to Sebastian Wagner
  • Pull request ID set to 42905

Also available in: Atom PDF