Bug 1891398 - [RFE] Allow disabling mgr modules from always_on_modules
Summary: [RFE] Allow disabling mgr modules from always_on_modules
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 4.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 5.*
Assignee: Neha Ojha
QA Contact: Manohar Murthy
URL:
Whiteboard:
Depends On: 1896587
Blocks: 1885216
TreeView+ depends on / blocked
 
Reported: 2020-10-26 05:06 UTC by Prashant Dhange
Modified: 2023-01-09 19:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
pdhange: automate_bug?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 47238 0 None None None 2020-11-13 01:25:17 UTC
Ceph Project Bug Tracker 47982 0 None None None 2020-10-26 05:16:28 UTC
Red Hat Issue Tracker RHCEPH-805 0 None None None 2021-08-19 16:43:08 UTC

Description Prashant Dhange 2020-10-26 05:06:07 UTC
Description of problem:
The ceph mgr modules like balancer or devicehealth should be allowed to disable. 

For example, the balancer module cannot be disabled :

The balancer is in *always_on_modules* and cannot be disabled(?). 

# ceph versions
{
    "mon": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 3
    },
    "mgr": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 3
    },
    "osd": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 6
    },
    "mds": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 1
    },
    "rgw": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 1
    },
    "overall": {
        "ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 14
    }
}

# ceph mgr module ls|jq '.always_on_modules,.enabled_modules'
[
  "balancer",
  "crash",
  "devicehealth",
  "orchestrator_cli",
  "progress",
  "rbd_support",
  "status",
  "volumes"
]
[
  "dashboard"
]

# ceph mgr module disable balancer
Error EINVAL: module 'balancer' cannot be disabled (always-on)

# ceph mgr module disable balancer --force
Invalid command: unused arguments: ['--force']
mgr module disable <module> :  disable mgr module
Error EINVAL: invalid command

# ceph mgr module ls|jq '.always_on_modules,.enabled_modules'
[
  "balancer",
  "crash",
  "devicehealth",
  "orchestrator_cli",
  "progress",
  "rbd_support",
  "status",
  "volumes"
]
[
  "dashboard"
]


Version-Release number of selected component (if applicable):
14.2.8-91.el8cp

How reproducible:
Frequently

Steps to Reproduce:
1. Deploy ceph cluster
2. Try disabling balacer or devicehealth modules

Actual results:
Unable to disable modules from always_on_modules

Expected results:
Disabling modules from always_on_modules should be allowed

Additional info:

Comment 1 Neha Ojha 2020-10-28 15:11:16 UTC
(In reply to Prashant Dhange from comment #0)
> Description of problem:
> The ceph mgr modules like balancer or devicehealth should be allowed to
> disable. 
> 
> For example, the balancer module cannot be disabled :
> 
> The balancer is in *always_on_modules* and cannot be disabled(?). 
> 
> # ceph versions
> {
>     "mon": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 3
>     },
>     "mgr": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 3
>     },
>     "osd": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 6
>     },
>     "mds": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 1
>     },
>     "rgw": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 1
>     },
>     "overall": {
>         "ceph version 14.2.8-91.el8cp
> (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)": 14
>     }
> }
> 
> # ceph mgr module ls|jq '.always_on_modules,.enabled_modules'
> [
>   "balancer",
>   "crash",
>   "devicehealth",
>   "orchestrator_cli",
>   "progress",
>   "rbd_support",
>   "status",
>   "volumes"
> ]
> [
>   "dashboard"
> ]
> 
> # ceph mgr module disable balancer
> Error EINVAL: module 'balancer' cannot be disabled (always-on)

Have you tried to use "ceph balancer off"? That should do it.

> 
> # ceph mgr module disable balancer --force
> Invalid command: unused arguments: ['--force']
> mgr module disable <module> :  disable mgr module
> Error EINVAL: invalid command
> 
> # ceph mgr module ls|jq '.always_on_modules,.enabled_modules'
> [
>   "balancer",
>   "crash",
>   "devicehealth",
>   "orchestrator_cli",
>   "progress",
>   "rbd_support",
>   "status",
>   "volumes"
> ]
> [
>   "dashboard"
> ]
> 
> 
> Version-Release number of selected component (if applicable):
> 14.2.8-91.el8cp
> 
> How reproducible:
> Frequently
> 
> Steps to Reproduce:
> 1. Deploy ceph cluster
> 2. Try disabling balacer or devicehealth modules
> 
> Actual results:
> Unable to disable modules from always_on_modules
> 
> Expected results:
> Disabling modules from always_on_modules should be allowed
> 
> Additional info:


Note You need to log in before you can comment on or make changes to this bug.