From 3fb003d886b515220feff0efc23ec0f562201390 Mon Sep 17 00:00:00 2001 From: Sven Anderson Date: Wed, 3 Mar 2021 18:06:01 +0100 Subject: [PATCH] ci: prepare micro-osd.sh for cross-container connections Signed-off-by: Sven Anderson --- micro-osd.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/micro-osd.sh b/micro-osd.sh index edf3db2..80d3431 100755 --- a/micro-osd.sh +++ b/micro-osd.sh @@ -32,6 +32,7 @@ mkdir ${LOG_DIR} ${MON_DATA} ${OSD_DATA} ${MDS_DATA} ${MOUNTPT} MDS_NAME="Z" MON_NAME="a" MGR_NAME="x" +MIRROR_ID="m" # cluster wide parameters cat >> ${DIR}/ceph.conf < ${MDS_DATA}/keyring @@ -95,6 +96,10 @@ while [[ ! $(ceph mds stat | grep "up:active") ]]; do sleep 1; done # start a manager ceph-mgr --id ${MGR_NAME} +# start rbd-mirror +ceph auth get-or-create client.rbd-mirror.${MIRROR_ID} mon 'profile rbd-mirror' osd 'profile rbd' +rbd-mirror --id ${MIRROR_ID} --log-file ${LOG_DIR}/rbd-mirror.log + # test the setup ceph --version ceph status @@ -106,3 +111,5 @@ rados --pool ${test_pool} get group ${temp_file} diff /etc/group ${temp_file} ceph osd pool delete ${test_pool} ${test_pool} --yes-i-really-really-mean-it rm ${temp_file} + +touch ${DIR}/.ready