Project

General

Profile

Bug #44728

mgr: module disable returns 'does not exist'

Added by Tatjana Dehler 4 months ago. Updated 25 days ago.

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

0%

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

Description

It's possible to enable a mgr module even it is not available by using the "--force" option. If the module then gets disabled again (e.g. is was enabled on mistake), the command returns "module <module-name> does not exist" which is a bit confusing:

╭─root@ceph-dev /ceph/build
╰─# bin/ceph mgr module enable not_avail --force
╭─root@ceph-dev /ceph/build
╰─# bin/ceph mgr module ls |grep not_avail
"not_avail",
╭─root@ceph-dev /ceph/build
╰─# bin/ceph mgr module disable not_avail
module 'not_avail' does not exist

History

#1 Updated by Kefu Chai 4 months ago

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

#2 Updated by Kefu Chai 4 months ago

the error message is correct and the behavior of the command is expected in the sense that

  • the module does not exist
  • the module is removed after executing "module disable dne-module"

but the error message might be misleading.

#3 Updated by Tatjana Dehler 25 days ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF