Skip to content

reef: mgr: allow disabling always-on modules#60563

Merged
mchangir merged 5 commits intoceph:reeffrom
rishabh-d-dave:wip-68679-reef
Jul 30, 2025
Merged

reef: mgr: allow disabling always-on modules#60563
mchangir merged 5 commits intoceph:reeffrom
rishabh-d-dave:wip-68679-reef

Conversation

@rishabh-d-dave
Copy link
Contributor

@rishabh-d-dave rishabh-d-dave commented Oct 30, 2024

NOTE: this backport PR has one less commit compared to parent PR because it was backported separately by backport team. See: #60496.


backport tracker: https://tracker.ceph.com/issues/68679


backport of #58647
parent tracker: https://tracker.ceph.com/issues/66005

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

@rishabh-d-dave rishabh-d-dave requested a review from a team October 30, 2024 15:01
@rishabh-d-dave
Copy link
Contributor Author

@vshankar Please pick this PR for QA sooner since it's associated with a BZ.

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@vshankar
Copy link
Contributor

@vshankar Please pick this PR for QA sooner since it's associated with a BZ.

Right now we have lots of unrelated failures due to some mgr module. See: https://ceph-storage.slack.com/archives/C1HFZTW81/p1731585993248769

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Following log message has 3 distinct information (enabled modules,
modules that are alwats on and total number of commands enabled) printed
on the same line which makes it hard to find one of the information and
also makes it comparatively hard to read -

2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial initial modules iostat,nfs,volumes, always on modules balancer,crash,devicehealth,orchestrator,pg_autoscaler,progress,status,telemetry, 50 commands

With this commit it would be easier to read and find needed info -

2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial initial modules: iostat,nfs,volumes
2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial always on modules: balancer,crash,devicehealth,orchestrator,pg_autoscaler,progress,status,telemetry
2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial 50 commands

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit e830f89)
It becomes easier to understand logs when whether command succeeded or
not are also logged.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4374ac7)
Add a new command ("ceph mgr module force disable <module>") that allows
forcibly disabling an always-on module. This command should ideally only
be used to for cluster recovery.

Fixes: https://tracker.ceph.com/issues/66005
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 9962772)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 0abc227)

Conflicts:
qa/cephfs/overrides/ignorelist_health.yaml
- this file had more entries on main branch compared to this (reef)
  branch.

qa/tasks/cephfs/test_admin.py
- this file add more tests and a set of tests next to test introduced in
  this patch-series that are not yet backported.
disabled now.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 3232f6b)
@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

1 similar comment
@mchangir
Copy link
Contributor

mchangir commented Feb 7, 2025

jenkins test make check

@mchangir
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/69881.

@mchangir
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/70178.

@vshankar
Copy link
Contributor

vshankar commented Jun 3, 2025

This PR is under test in https://tracker.ceph.com/issues/69881.

Probably obsolete.

@vshankar
Copy link
Contributor

vshankar commented Jun 3, 2025

This PR is under test in https://tracker.ceph.com/issues/71521.

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mchangir mchangir merged commit 62c7f3d into ceph:reef Jul 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants