Project

General

Profile

Actions

Bug #51546

closed

cephadm: remove iscsi service fails when the dashboard isn't deployed

Added by Dimitri Savineau almost 3 years ago. Updated over 2 years ago.

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

0%

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

Description

If the iscsi service is removed and the dashboard isn't deployed (dashboard mgr module not enabled) then the cluster status goes to ERR and the removal is stuck is deleting state.

Steps to reproduce:

1. bootstrap a cluster without dashboard : cephadm bootstrap --mon-ip x.x.x.x --skip-dashboard --skip-monitoring-stack
2. add some OSDs
3. deploy the iscsi service
4. remove iscsi with : ceph orch rm iscsi.iscsi

Results:

# ceph orch ls --service_type iscsi
NAME         PORTS  RUNNING  REFRESHED   AGE  PLACEMENT  
iscsi.iscsi             0/1  <deleting>  22m  cephaio
# ceph health detail
[ERR] MGR_MODULE_ERROR: Module 'cephadm' has failed: dashboard iscsi-gateway-rm failed: Module 'dashboard' is not enabled (required by command 'dashboard iscsi-gateway-rm'): use `ceph mgr module enable dashboard` to enable it retval: -95
    Module 'cephadm' has failed: dashboard iscsi-gateway-rm failed: Module 'dashboard' is not enabled (required by command 'dashboard iscsi-gateway-rm'): use `ceph mgr module enable dashboard` to enable it retval: -95

This is probably coming from [1] which added the `ceph dashboard iscsi-gateway-rm xxx` command during the service removal but this doesn't check if the dashboard module is enabled first.

[1] https://github.com/ceph/ceph/commit/1b9e3edcfd1c1a3dd02d6eb14072494f57b086a8


Related issues 2 (0 open2 closed)

Related to Orchestrator - Bug #52692: Iscsi gateways are not showing "UP" in dashboardResolvedDaniel Pivonka

Actions
Related to Orchestrator - Bug #53706: cephadm: Module 'cephadm' has failed: dashboard iscsi-gateway-rm failed: iSCSI gateway 'iscsi-gw' does not exist retval: -2ResolvedMelissa Li

Actions
Actions

Also available in: Atom PDF