]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart: allow specifying a different ganesha binary
authorJeff Layton <jlayton@redhat.com>
Wed, 17 Jun 2020 19:49:52 +0000 (15:49 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 18 Jun 2020 15:54:10 +0000 (11:54 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/vstart.sh

index c4af5824671f8f34cb96f483c2514765b6e5a82b..bfaa686b0d0187b6a5af5aa33e798465b4adde92 100755 (executable)
@@ -175,6 +175,7 @@ fi
 filestore_path=
 kstore_path=
 bluestore_dev=
+ganesha_path=/usr/bin/ganesha.nfsd
 
 VSTART_SEC="client.vstart.sh"
 
@@ -233,6 +234,7 @@ usage=$usage"\t--bluestore-zoned: blockdevs listed by --bluestore-devs are zoned
 usage=$usage"\t--inc-osd: append some more osds into existing vcluster\n"
 usage=$usage"\t--cephadm: enable cephadm orchestrator with ~/.ssh/id_rsa[.pub]\n"
 usage=$usage"\t--no-parallel: dont start all OSDs in parallel\n"
+usage=$usage"\t--ganesha-path: path to ganesha.nfsd binary (defaults to $ganesha_path)\n"
 
 usage_exit() {
     printf "$usage"
@@ -444,6 +446,10 @@ case $1 in
     --bluestore-zoned )
         zoned_enabled=1
         ;;
+    --ganesha-path)
+        ganesha_path="$2"
+        shift
+        ;;
     * )
         usage_exit
 esac
@@ -1145,7 +1151,7 @@ EOF
         prun env CEPH_CONF="${conf_fn}" ganesha-rados-grace --userid $test_user -p $pool_name -n $namespace add $name
         prun env CEPH_CONF="${conf_fn}" ganesha-rados-grace --userid $test_user -p $pool_name -n $namespace
 
-        prun env CEPH_CONF="${conf_fn}" /usr/bin/ganesha.nfsd -L "$CEPH_OUT_DIR/ganesha-$name.log" -f "$ganesha_dir/ganesha-$name.conf" -p "$CEPH_OUT_DIR/ganesha-$name.pid" -N NIV_DEBUG
+        prun env CEPH_CONF="${conf_fn}" $ganesha_path -L "$CEPH_OUT_DIR/ganesha-$name.log" -f "$ganesha_dir/ganesha-$name.conf" -p "$CEPH_OUT_DIR/ganesha-$name.pid" -N NIV_DEBUG
 
         # Wait few seconds for grace period to be removed
         sleep 2