From 6f4bb0a756c4b4071c0ee64b4a9474b3d537829f Mon Sep 17 00:00:00 2001 From: Oguzhan Ozmen Date: Fri, 20 Mar 2026 17:36:16 +0000 Subject: [PATCH] rgw/test [tentacle]: add missing ceph and call_ceph shell functions Add ceph() and call_ceph() helper functions to test-rgw-common.sh that were missed during the backport of commit 415a16c0. The test_multi.py ceph_admin() method calls test-rgw-call.sh with 'call_ceph' which requires these shell functions to exist. Signed-off-by: Oguzhan Ozmen --- src/test/rgw/test-rgw-common.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/rgw/test-rgw-common.sh b/src/test/rgw/test-rgw-common.sh index 4dc9438303fd..523ac89d0f6d 100644 --- a/src/test/rgw/test-rgw-common.sh +++ b/src/test/rgw/test-rgw-common.sh @@ -92,6 +92,11 @@ function rgw { echo "$mrgw $name $port $ssl_port $rgw_flags $@" } +function ceph { + [ $# -lt 1 ] && echo "ceph() needs atleast 1 param" && exit 1 + echo "$mrun $1 ceph" +} + function init_first_zone { [ $# -ne 7 ] && echo "init_first_zone() needs 7 params" && exit 1 @@ -173,6 +178,13 @@ function call_rgw_rados { x $(rgw_rados $cid) "$@" } +function call_ceph { + cid=$1 + shift 1 + echo $@ + x $(ceph $cid) "$@" +} + function get_mstart_parameters { [ $# -ne 1 ] && echo "get_mstart_parameters() needs 1 param" && exit 1 # bash arrays start from zero -- 2.47.3