Project

General

Profile

Bug #47171

mgr/cephadm: removing last service of a type raises IndexError

Added by Patrick Seidensal 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
cephadm
Target version:
-
% Done:

0%

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

Description

2020-08-27T17:26:19.721+0200 7f6a1173c700 -1 Traceback (most recent call last):
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 510, in serve
    self._check_daemons()
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 2143, in _check_daemons
    if self.cephadm_services[dd.daemon_type].get_active_daemon(
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/services/monitoring.py", line 242, in get_active_daemon
    return daemon_descrs[0]
IndexError: list index out of range

Possibly introduced by this PR: https://github.com/ceph/ceph/pull/36485/files

Steps to reproduce:

1. vstart cephadm cluster
2. deploy prometheus
3. remove prometheus

Possible side effects:

No `ceph orch apply ...` works after removing the prometheus service.

History

#1 Updated by Patrick Seidensal 3 months ago

  • Affected Versions v16.0.0 added

#2 Updated by Adam King 3 months ago

  • Assignee set to Adam King

#3 Updated by Adam King 3 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 36858

#4 Updated by Adam King 3 months ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF