That was helpful. At least now I know where the export definition is stored. It occurred to me that the "expecting value" error might mean that ceph is trying to build/retrieve the JSON that defined the export originally, and of course it's missing something: the cmount_path. Although the error message consistently tags the pseudo. Regardless, your object dump is short and tidy. Is that really all you got? Because what I get is MUCH longer. Here's a snippet: foo rec-000000000000017e:nfs.foo.1 foo rec-00000000000000eb:nfs.foo.1 foo rec-000000000000018e:nfs.foo.1 foo rec-000000000000012b:nfs.foo.0 foo rec-0000000000000035:nfs.foo.0 foo rec-000000000000013f:nfs.foo.1 foo rec-0000000000000140:nfs.foo.0 foo rec-0000000000000042:nfs.foo.1 foo conf-nfs.foo foo rec-00000000000000c9:nfs.foo.1 foo export-1 foo rec-00000000000000cf:nfs.foo.1 foo rec-000000000000026e:nfs.foo.0 foo rec-000000000000012a:nfs.foo.1 foo rec-00000000000000f7:nfs.foo.1 nfs.foo conf-nfs.nfs.foo foo rec-000000000000019c:nfs.foo.1 foo rec-0000000000000193:nfs.foo.1 Is this more like what you really got or is my pool full of chunder? I did pull the old Ganesha FSAL out of there, BTW, so that much is OK. On 11/6/26 3:26 AM, Eugen Block wrote:
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
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io