From fdb4f834486287f03409ce1818f1871d16ecf87d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 12 Apr 2021 18:55:08 +0800 Subject: [PATCH] script/gen-corpus.sh: set CEPH_CONF if we happen to run this script on a host where /etc/ceph/ceph.conf is available, ceph CLI would use it instead. so, point it to $PWD/ceph.conf instead. Signed-off-by: Kefu Chai --- src/script/gen-corpus.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/gen-corpus.sh b/src/script/gen-corpus.sh index ad2ef09f1a1..8550c208070 100755 --- a/src/script/gen-corpus.sh +++ b/src/script/gen-corpus.sh @@ -32,7 +32,8 @@ function run() { MON=3 MGR=2 OSD=3 MDS=3 RGW=1 ../src/vstart.sh -n -x local old_path="$PATH" - export PATH="bin:$PATH" + export PATH="$PWD/bin:$PATH" + export CEPH_CONF="$PWD/ceph.conf" ceph osd pool create mypool rados -p mypool bench 10 write -b 123 ceph osd out 0 -- 2.47.3