]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: document and use keyword args for 'nfs export create cephfs'
authorSage Weil <sage@newdream.net>
Wed, 20 Oct 2021 19:35:49 +0000 (15:35 -0400)
committerSage Weil <sage@newdream.net>
Tue, 2 Nov 2021 21:06:58 +0000 (17:06 -0400)
Signed-off-by: Sage Weil <sage@newdream.net>
doc/mgr/nfs.rst
qa/suites/orch/cephadm/mgr-nfs-upgrade/2-nfs.yaml
qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-ingress.yaml
qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-ingress2.yaml
src/vstart.sh

index 54ca19fdd2e26a3a26cc95c606cf0a503bdf0069..52ddf104fd8fc054e97033f0a9c01461292aaf1d 100644 (file)
@@ -239,17 +239,17 @@ Create CephFS Export
 
 .. code:: bash
 
-    $ ceph nfs export create cephfs <fsname> <cluster_id> <pseudo_path> [--readonly] [--path=/path/in/cephfs] [--client_addr <value>...] [--squash <value>]
+    $ ceph nfs export create cephfs --cluster-id <cluster_id> --pseudo-path <pseudo_path> --fsname <fsname> [--readonly] [--path=/path/in/cephfs] [--client_addr <value>...] [--squash <value>]
 
 This creates export RADOS objects containing the export block, where
 
-``<fsname>`` is the name of the FS volume used by the NFS Ganesha cluster
-that will serve this export.
-
 ``<cluster_id>`` is the NFS Ganesha cluster ID.
 
 ``<pseudo_path>`` is the export position within the NFS v4 Pseudo Filesystem where the export will be available on the server. It must be an absolute path and unique.
 
+``<fsname>`` is the name of the FS volume used by the NFS Ganesha cluster
+that will serve this export.
+
 ``<path>`` is the path within cephfs. Valid path should be given and default
 path is '/'. It need not be unique. Subvolume path can be fetched using:
 
index eb8fa2a547807849572e1279b2658d98dfc40648..34680fc8a6b9114b32c5bc2108080f549fd68615 100644 (file)
@@ -15,7 +15,7 @@ tasks:
 - cephadm.shell:
     host.a:
       - ceph nfs cluster create foo --placement=2 || ceph nfs cluster create cephfs foo --placement=2
-      - ceph nfs export create cephfs foofs foo --binding /fake || ceph nfs export create cephfs foofs foo --pseudo-path /fake 
+      - ceph nfs export create cephfs --fsname foofs --clusterid foo --binding /fake || ceph nfs export create cephfs --fsname foofs --cluster-id foo --pseudo-path /fake 
 
       # we can't do wait_for_service here because with octopus it's nfs.ganesha-foo not nfs.foo
       - while ! ceph orch ls | grep nfs | grep 2/2 ; do sleep 1 ; done
index 3d935218a95e410024ab4ab78c6cc0f8ebb25aa9..b4e843df2611623ed7a13e52abb6a9f4e79fa703 100644 (file)
@@ -40,7 +40,7 @@ tasks:
 
 - cephadm.shell:
     host.a:
-      - ceph nfs export create cephfs foofs foo --pseudo-path /fake
+      - ceph nfs export create cephfs --fsname foofs --cluster-id foo --pseudo-path /fake
 
 - vip.exec:
     host.a:
index 58f7e13a2499cf67a0ee5e3c021498503585a2b0..a47dd9d7646bd54775d713b916381c425c30971f 100644 (file)
@@ -15,7 +15,7 @@ tasks:
     host.a:
       - ceph fs volume create foofs
       - ceph nfs cluster create foo --ingress --virtual-ip {{VIP0}}/{{VIPPREFIXLEN}} --port 2999
-      - ceph nfs export create cephfs foofs foo --pseudo-path /fake
+      - ceph nfs export create cephfs --fsname foofs --cluster-id foo --pseudo-path /fake
 
 - cephadm.wait_for_service:
     service: nfs.foo
index bdf0f596dec2c33b481f0fae3cbeb0a235675c3f..0fa55eba02ed9680e9edc8a8ed9ac66e5720b320 100755 (executable)
@@ -1224,7 +1224,7 @@ start_ganesha() {
     ceph_adm orch set backend test_orchestrator
     ceph_adm test_orchestrator load_data -i $CEPH_ROOT/src/pybind/mgr/test_orchestrator/dummy_data.json
     prun ceph_adm nfs cluster create $cluster_id
-    prun ceph_adm nfs export create cephfs "a" $cluster_id "/cephfs"
+    prun ceph_adm nfs export create cephfs --fsname "a" --cluster-id $cluster_id --pseudo-path "/cephfs"
 
     for name in a b c d e f g h i j k l m n o p
     do
@@ -1664,7 +1664,7 @@ if [ $GANESHA_DAEMON_NUM -gt 0 ]; then
        port="2049"
         prun ceph_adm nfs cluster create $cluster_id
        if [ $CEPH_NUM_MDS -gt 0 ]; then
-            prun ceph_adm nfs export create cephfs "a" $cluster_id $pseudo_path
+            prun ceph_adm nfs export create cephfs --fsname "a" --cluster-id $cluster_id --pseudo-path $pseudo_path
            echo "Mount using: mount -t nfs -o port=$port $IP:$pseudo_path mountpoint"
        fi
        if [ "$CEPH_NUM_RGW" -gt 0 ]; then