]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
[Stretch Mode] mon: restrict changing mon election strategy post stretch mode 59515/head
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Thu, 29 Aug 2024 18:23:43 +0000 (18:23 +0000)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Wed, 3 Sep 2025 17:18:47 +0000 (17:18 +0000)
commit7378581fd56b59d4864ef2844faabd5a32b656db
tree4555387773b4a55f8130eeec95286ebd4bb86ddc
parentcd40e65e91d996815f941f56c0f92418e8ee0c53
[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>
src/mon/MonmapMonitor.cc