Skip to content

squid: mon [stretch mode]: restrict changing mon election strategy post stretch mode - #65458

Merged
batrick merged 1 commit into
ceph:squidfrom
kamoltat:wip-72933-squid
Jun 2, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
kamoltat:wip-72933-squid

Conversation

@kamoltat

@kamoltat kamoltat commented Sep 9, 2025

Copy link
Copy Markdown
Member

…tch mode

Problem:

It is possible to modify the monitor election
strategy once stretch mode is enabled.

Solution:

Restrict the ability for Ceph to change election strategy
while using stretch mode.

Also, notify the user if they attempt to change to the current election
strategy. This change prevents unnecessary resource usage by informing
the user when they try to switch to an election strategy that is already in use.
This avoids redundant updates to the monmap.

Fixes: https://tracker.ceph.com/issues/67801

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
(cherry picked from commit 7378581)
@kamoltat
kamoltat requested a review from a team as a code owner September 9, 2025 18:26
@kamoltat kamoltat added this to the v16.2.15 milestone Sep 9, 2025
@kamoltat kamoltat added the core label Sep 9, 2025
@github-actions github-actions Bot added the mon label Sep 9, 2025
@kamoltat kamoltat self-assigned this Sep 9, 2025
@kamoltat

kamoltat commented Feb 3, 2026

Copy link
Copy Markdown
Member Author

jenkins test make check

@shraddhaag

Copy link
Copy Markdown
Contributor

Hey Junior, while evaluating the QA run related to this PR, I found this error:

2026-03-19T15:08:12.953 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:1844: wait_for_health:  ceph health detail
2026-03-19T15:08:13.205 INFO:tasks.workunit.client.0.trial076.stdout:HEALTH_WARN 1 pool(s) do not have an application enabled
2026-03-19T15:08:13.205 INFO:tasks.workunit.client.0.trial076.stdout:[WRN] POOL_APP_NOT_ENABLED: 1 pool(s) do not have an application enabled
2026-03-19T15:08:13.205 INFO:tasks.workunit.client.0.trial076.stdout:    application not enabled on pool 'stretched_rbdpool'
2026-03-19T15:08:13.205 INFO:tasks.workunit.client.0.trial076.stdout:    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:1845: wait_for_health:  return 1
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:1859: wait_for_health_ok:  return 1
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon-stretch/mon-stretch-uneven-crush-weights.sh:137: TEST_stretch_cluster_uneven_crush_weights:  return 1
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon-stretch/mon-stretch-uneven-crush-weights.sh:22: run:  return 1
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:2379: main:  code=1
2026-03-19T15:08:13.215 INFO:tasks.workunit.client.0.trial076.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:2381: main:  teardown td/mon-stretch-cluster-uneven-crush-weights 1
[Edit](https://tracker.ceph.com/issues/75596/edit) [Watch](https://tracker.ceph.com/watchers/watch?object_id=75596&object_type=issue) [Copy](https://tracker.ceph.com/projects/ceph-qa/issues/75596/copy)

Could you check if it might be related to this PR please?

@kamoltat

kamoltat commented May 8, 2026

Copy link
Copy Markdown
Member Author

@shraddhaag Hi yes the failure is related to #67789, I have made a change in 67789 such that the failure is gone, the failure is exclusively on squid.

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels May 14, 2026

@badone badone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@sseshasa

Copy link
Copy Markdown
Contributor

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

@kamoltat Please address the PR check failures and proceed with merging the PR once all checks have passed. If a re-run is required, please add the needs-qa label accordingly.

@kamoltat

kamoltat commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

@SrinivasaBharath The failure wasn't to due to #67789 not this PR, I'm merging this.
Thanks

@batrick
batrick merged commit 75ae08f into ceph:squid Jun 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport squid core mon needs-review releng-audit-pass Release engineering: passed backport verification audit. TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants