]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
[Stretch Mode] mon: restrict changing mon election strategy post stretch mode 65457/head
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Thu, 29 Aug 2024 18:23:43 +0000 (18:23 +0000)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Tue, 9 Sep 2025 18:22:35 +0000 (18:22 +0000)
commitbb905a08d4b9091bf7faa820ec1df8a926ad77d5
tree83e9ac9507f2dada4713270a569ab01e20e76dcc
parent43117b9616f77f5e89b334db6f1f444901238626
[Stretch Mode] mon: restrict changing mon election strategy post stretch 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 <ksirivad@redhat.com>
(cherry picked from commit 7378581fd56b59d4864ef2844faabd5a32b656db)
src/mon/MonmapMonitor.cc