Hi, I'm not too deep into the NFS stuff yet and I'm not entirely sure what the actual issue is in your case, but you could try to reset the state on the rados level (at your own risk). Each export has its own namespace, while playing around I created two namespaces (my_nfs and nfs): rados -p .nfs ls --all my_nfs conf-nfs.my_nfs nfs export-1 my_nfs export-1 The conf-nfs.my_nfs object contains the path to the actual export information: rados -p .nfs -N my_nfs get conf-nfs.my_nfs conf-nfs.my_nfs cat conf-nfs.my_nfs %url "rados://.nfs/my_nfs/export-1" rados -p .nfs -N my_nfs get export-1 my_nfs.export-1 cat my_nfs.export-1 EXPORT { FSAL { name = "CEPH"; user_id = "nfs.my_nfs.cephfs.cee33ebd"; filesystem = "cephfs"; secret_access_key = "****"; cmount_path = "/"; } export_id = 1; path = "/"; pseudo = "/repos"; access_type = "RW"; squash = "none"; attr_expiration_time = 0; security_label = true; protocols = 4; transports = "TCP"; } You could try cleaning that up by removing the export object(s) (rados -p .nfs -N my_nfs rm my_nfs.export-1) and then try to re-apply your json spec. Don't remove the conf-nfs.my_nfs object (it's just a url), otherwise your export apply command will fail. Not sure if this already could help you, but worth a shot I guess. And again, deleting objects is at your own risk and should be the last resort. But I guess since the data is in CephFS the risk is kind of low? As I said, I haven't been digging too deep into NFS via CephFS yet. Regards, Eugen Zitat von Tim Holloway <ceph-users@ceph.io>:
It's worse than that, in fact:
~# ceph nfs export create cephfs foo /repos ceefs --path=/ Error EINVAL: Expecting value: line 1 column 1 (char 0)
# ceph nfs export create cephfs foo /repos ceefs --path=/bogus Error ENOENT: path /bogus does not exist
So not just direct JSON, although those messages hint that JSON was created internally.
Ceph version is:
ceph version 19.2.7 (9ec952b9f9668e9fa97e29a4c2b51e951674df2a) squid (stable)
On 11/3/26 11:21 AM, Tim Holloway wrote:
I finally migrated from reef to squid. It went well, but I got a whole chumbucket of obsolete encryption messages. A lot of which were for services and servers that don't exist anymore. So I removed the obvious ones and rotated the rest.
It's possible that I may have deleted something related to NFS, but I don't think so. Just for context.
NFS itself, which has always been a little wonky stopped working.
I tried re-defining it, but ran into issues relating to the infamous "cmount_path" and "user_id" upgrade problems, so I corrected as indicated, giving this:
[ { "access_type": "RW", "clients": [ { "access_type": "RW", "addresses": [ "10.0.1.0/16", "192.168.1.0/24" ], "squash": "no_root_squash" } ], "cluster_id": "nfs2", "export_id": 1, "fsal": { "fs_name": "ceefs", "cmount_path": "/", "name": "CEPH" }, "path": "/", "protocols": [ 4 ], "security_label": false, "squash": "no_root_squash", "transports": [ "TCP" ], "pseudo": "/ceph" } ]
This is the result:
ceph nfs export apply nfs -i exports.json [ { "msg": "Failed to apply export: Expecting value: line 1 column 1 (char 0)", "pseudo": "/ceph", "state": "error" } ]
The message itself is a blatant lie or at least totally unhelpful. No matter where I put the pseudo definition in the JSON, the same message appears and if I omit it, it complains that "pseudo" is missing.
I deleted the cluster, but the export remains. I cannot delete the export itself because without the cmount_path, the deletion fails. Which is absurd. Of all the times you should be able to delete something this is it.
I've been able to create a new NFS cluster using more modern techniques, but it won't let me have any useful exports until I can flush out the previous bad one.
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io