Reordering the config blocks fixes the rados url error and removing 'ganesha-'
prefix from rados config object fixes the config file error.
Fixes: https://tracker.ceph.com/issues/49122
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit
19187a8a154a6af95b3669cc9fd45b3922232cae)
cluster_id="vstart"
GANESHA_PORT=$(($CEPH_PORT + 4000))
local ganesha=0
- test_user="ganesha-$cluster_id"
+ test_user="$cluster_id"
pool_name="nfs-ganesha"
namespace=$cluster_id
url="rados://$pool_name/$namespace/conf-nfs.$test_user"
Minor_Versions = 1, 2;
}
- %url $url
-
RADOS_KV {
pool = $pool_name;
namespace = $namespace;
RADOS_URLS {
Userid = $test_user;
- watch_url = \"$url\";
- }" > "$ganesha_dir/ganesha-$name.conf"
+ watch_url = '$url';
+ }
+
+ %url $url" > "$ganesha_dir/ganesha-$name.conf"
wconf <<EOF
[ganesha.$name]
host = $HOSTNAME