From: Kefu Chai Date: Mon, 12 Apr 2021 10:55:08 +0000 (+0800) Subject: script/gen-corpus.sh: set CEPH_CONF X-Git-Tag: v17.1.0~2287^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fdb4f834486287f03409ce1818f1871d16ecf87d;p=ceph.git 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 --- diff --git a/src/script/gen-corpus.sh b/src/script/gen-corpus.sh index ad2ef09f1a17f..8550c2080706c 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