]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: Fix nfs-ganesha RADOS_URLS config block not found warning 39974/head
authorVarsha Rao <varao@redhat.com>
Wed, 3 Feb 2021 08:39:47 +0000 (14:09 +0530)
committersinguliere <singuliere@autistici.org>
Tue, 9 Mar 2021 23:27:38 +0000 (00:27 +0100)
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)

src/vstart.sh

index e1227def7a5782e0e6f5b746fd849b6def8e2597..10fecde7553fb986af9f6d86c9066513bb45a4aa 100755 (executable)
@@ -1126,7 +1126,7 @@ start_ganesha() {
     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"
@@ -1169,8 +1169,6 @@ start_ganesha() {
            Minor_Versions = 1, 2;
         }
 
-        %url $url
-
         RADOS_KV {
            pool = $pool_name;
            namespace = $namespace;
@@ -1180,8 +1178,10 @@ start_ganesha() {
 
         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