]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: set $CEPH_CONF when running ganesha-rados-grace 35530/head
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Jun 2020 19:55:24 +0000 (15:55 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 10 Jun 2020 20:00:15 +0000 (16:00 -0400)
...otherwise we could pick up the wrong ceph.conf file. Also, use the
correct $test_user userid for these ops.

Fixes: https://tracker.ceph.com/issues/45971
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/vstart.sh

index 88fe103386819ed01a978fd66b6925e84ae67597..319b6e47c09b7996985154f521be86921befe73c 100755 (executable)
@@ -1142,15 +1142,15 @@ start_ganesha() {
         pid file = $ganesha_dir/ganesha.pid
 EOF
 
-        prun ganesha-rados-grace -p $pool_name -n $namespace add $name
-        prun ganesha-rados-grace -p $pool_name -n $namespace
+        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 "$ganesha_dir/ganesha.log" -f "$ganesha_dir/ganesha.conf" -p "$ganesha_dir/ganesha.pid" -N NIV_DEBUG
 
         # Wait few seconds for grace period to be removed
         sleep 2
 
-        prun ganesha-rados-grace -p $pool_name -n $namespace
+        prun env CEPH_CONF="${conf_fn}" ganesha-rados-grace --userid $test_user -p $pool_name -n $namespace
 
         if $with_mgr_dashboard; then
             $CEPH_BIN/rados -p $pool_name put "conf-$name" "$ganesha_dir/ganesha.conf"