Skip to content

Commit

Permalink
Merge pull request ceph#60927 from ljflores/wip-tracker-69107
Browse files Browse the repository at this point in the history
qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
  • Loading branch information
kamoltat authored Dec 9, 2024
2 parents 194a8dc + de2d918 commit 2676d3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ overrides:
ceph:
conf:
global:
mon election default strategy: 3
osd pool default size: 3
osd pool default min size: 2
mon:
Expand Down Expand Up @@ -55,4 +54,4 @@ tasks:
- mon/mon-stretch-mode-5-mons-8-osds.sh
- cephfs_test_runner:
modules:
- tasks.stretch_mode_disable_enable
- tasks.stretch_mode_disable_enable
6 changes: 5 additions & 1 deletion qa/workunits/mon/mon-stretch-mode-5-mons-8-osds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ if [ $NUM_OSDS_UP -lt 8 ]; then
exit 1
fi

# ensure election strategy is set to "connectivity"
# See https://tracker.ceph.com/issues/69107
ceph mon set election_strategy connectivity

for dc in dc1 dc2
do
ceph osd crush add-bucket $dc datacenter
Expand Down Expand Up @@ -65,4 +69,4 @@ EOF
crushtool --compile crushmap_modified.txt -o crushmap.bin
ceph osd setcrushmap -i crushmap.bin

ceph mon enable_stretch_mode e stretch_rule datacenter
ceph mon enable_stretch_mode e stretch_rule datacenter

0 comments on commit 2676d3e

Please sign in to comment.