]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mstart: allow setting the base mon port from env variable 63852/head
authorYuval Lifshitz <ylifshit@ibm.com>
Tue, 10 Jun 2025 14:26:07 +0000 (14:26 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Tue, 10 Jun 2025 14:30:04 +0000 (14:30 +0000)
this allows using mstart on a shared environment where
other vstart/mstart deployments are running

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/mstart.sh

index 0c512ca9eb8c3fafb9c2370b3f53ebfaa7a29e42..9d34c7e55645c4fad94de908e24353215ed0fa26 100755 (executable)
@@ -74,7 +74,10 @@ if [ $? -ne 0 ]; then
 fi
 
 pos=`echo $pos | cut -d: -f1`
-base_port=$((6800+pos*20))
+
+CEPH_BASE_PORT=${CEPH_BASE_PORT:-6800}
+
+base_port=$((CEPH_BASE_PORT+pos*20))
 rgw_port=$((8000+pos*1))
 
 [ -z "$VSTART_DEST" ] && export VSTART_DEST=$RUN_ROOT_PATH/$instance