Skip to content

squid: mon: fix fs set down to adjust max_mds only when cluster is not down#59704

Merged
mchangir merged 2 commits intoceph:squidfrom
vshankar:wip-67374-squid
Jan 2, 2025
Merged

squid: mon: fix fs set down to adjust max_mds only when cluster is not down#59704
mchangir merged 2 commits intoceph:squidfrom
vshankar:wip-67374-squid

Conversation

@vshankar
Copy link
Contributor

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


backport of #58582
parent tracker: https://tracker.ceph.com/issues/66960

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

Applying `fs set down false` on an up cluster will set the cluster's max_mds to 1, regardless of the cluster's current max_mds.
`fs set down false` should only change max_mds when the cluster was set to down. Otherwise, the cluster should remain unchanged.

Fixes: https://tracker.ceph.com/issues/66960
Signed-off-by: chungfengz <chungfengz@synology.com>
(cherry picked from commit 6bfce64)

 Conflicts:
	src/mon/FSCommands.cc

Minor conflict in src/mon/FSCommands.cc related to modify_filesystem()
helper.
Fixes: https://tracker.ceph.com/issues/66960
Signed-off-by: chungfengz <chungfengz@synology.com>
(cherry picked from commit f8becaa)
@vshankar vshankar requested a review from a team as a code owner September 10, 2024 11:56
@vshankar vshankar added this to the squid milestone Sep 10, 2024
@vshankar vshankar added the core label Sep 10, 2024
@github-actions github-actions bot added cephfs Ceph File System mon tests labels Sep 10, 2024
@vshankar
Copy link
Contributor Author

jenkins retest this please

@vshankar
Copy link
Contributor Author

jenkins test make check

@vshankar vshankar closed this Sep 24, 2024
@vshankar vshankar reopened this Sep 24, 2024
@vshankar
Copy link
Contributor Author

jenkins test make check

1 similar comment
@vshankar
Copy link
Contributor Author

jenkins test make check

@vshankar
Copy link
Contributor Author

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

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.

@mchangir mchangir merged commit f898341 into ceph:squid Jan 2, 2025
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.

3 participants