SOLVED Using the API to set NFS permissions fails

abatie

Cadet
Joined
May 7, 2019
Messages
2
FreeNAS-11.2-U3

Using the API to create datasets and set nfs permissions, fails in the latter part with
'The path must reside within a volume mount point'

JSON for setting permissions:
Code:
{"nfs_maproot_user":"root","nfs_network":"<network list>","nfs_paths":"/mnt/zdata/vmfs/xyzzy"}


Script output (already exists from previous runs) showing that the paths match - I tried the zfs name "zdata/vmfs/xyzzy" but that failed the same:

Code:
Create zdata/vmfs/xyzzy on <server name>
$VAR1 = {
          '__all__' => [
                         'The path /mnt/zdata/vmfs/xyzzy already exists.'
                       ]
        };
Set permissions on /mnt/zdata/vmfs/xyzzy:
$VAR1 = {
          'path' => [
                      'The path must reside within a volume mount point'
                    ]
        };
 

abatie

Cadet
Joined
May 7, 2019
Messages
2
Yes, sorry, I meant to respond here - it turns out that the nfs_paths parameter is supposed to be an array. It would be nice if a more direct error message was returned though...
 
Top