I was concerned about the security, since I'd just rotated a truckload of keys and deleted some long-obsolete ones. I probably thought I'd got it all settled before the NFS incident proved that one key hadn't rotated/configuration specs had changed. On the "empty"/"bad" NFS files, this is an old error popped up again. On the Raspberry Pi I'm typing this on I haven't actually rebooted, but I've unmounted and mounted multiple times without success. Another server running AlmaLinux is serving NFS with no problems. It's a real pain because there's no fuse filesystem driver in the repo for this OS release, and the full Ceph kit is Reef. Plus, to get just ceph-common on AlmaLinux is a 45MB disk hit, so it's not something I'd do lightly. That's the advantage of NFS. NFS clients are pretty much universal and relatively lightweight. And, of course, have isolation from Ceph's internals. Which means that in exchange for the performance hit, I get extra security. On 11/7/26 4:15 AM, Eugen Block wrote:
Nice catch with the auth issue, Sinan. I was under the impression that the upgrade had been completed and didn't even think about a keyring issue. :-D
@Tim: were the clients still connected when the NFS service failed? Have you tried rebooting them since? Is the Ganesha daemon up and does it log any errors? Does a fresh mount work?
Zitat von Tim Holloway <ceph-users@ceph.io>:
That brings me back to the state where I left off, so the upgrade itself is complete.
Unfortunately, the state where I left off has certain clients where many files either retrieve as no data or get an I/O error. Directories browse just fine and directory listings (file size, etc) are correct. I forget if it's just on the Raspberry Pi or if other platforms are affected as well, and IIRC, even the Pi has worked occasionally.
I'd suspect selinux/owner access rights issues but the errors don't jibe with that. And a mount to a non-ceph ganesha server has always worked flawlessly on the same client.
On 11/6/26 3:04 PM, Sinan Polat wrote:
Nice!
The "pseudo" in the output is just how apply identifies each export, it doesn't list what changed.
If ganesha doesn't start serving on its own a restart might help it pick up the new key:
ceph orch restart nfs.<cluster>
Once its working, "ceph auth ls | grep nfs" might show an older client.nfs.* user from the previous export thats no longer used. Probably worth leaving that and the .nfs cleanup until everything is stable though.
Sinan
Op vr 6 nov 2026 om 21:00 schreef Tim Holloway <ceph-users@ceph.io>:
That did break the bottleneck.
Response was:
[ { "pseudo": "/ceph", "state": "updated" } ]
why it responds with "pseudo", I don't know, nor why it doesn't, say, enumerate all changed elements. But an export of the current settings shows what it should show, so I'll see it I can persuade it to start serving NFS again.
On 11/6/26 2:10 PM, Sinan Polat wrote:
So it does look like the preferred cipher is the blocker.
If I read the squid docs (auth-config-ref, cephx key upgrade section) correctly, the intended step is:
ceph mon set auth_preferred_cipher aes256k
As far as I understand that only affects keys created or rotated afterwards. Then "ceph auth rm client.nfs.test" to clean up the test and "ceph auth get-or-create client.nfs.test mon 'allow r'" again should succeed if that was the only issue. After that the export apply might work.
For the .nfs pool I would probably wait with cleanup until NFS works again. The rec-* objects seem to be ganesha's recovery records so it's easier to judge what's stale once things are running.
Cheers, Sinan
Op vr 6 nov 2026 om 20:03 schreef Tim Holloway <ceph-users@ceph.io>:
ceph auth get-or-create client.nfs.test mon 'allow r' Error EINVAL: creating key with insecure key type ("`preferred' AKA aes") not allowed
That beats the Irish stew out of the "security [2,1]" message. Clear as a bell.
I'll experiment with security options and see if that saves me from letting the bomb loose.
Although all that extra stuff in the .nfs store probably warrant some sort of cleanup itself.
On 11/6/26 12:59 PM, Sinan Polat wrote: > With "aes" preferred but no longer allowed I suspect the mons > refuse > to create new keys and mgr/nfs turns that into the "Expecting > value" > error (fixed in main, tracker #81124). > > To test that without changing anything: > ceph auth get-or-create client.nfs.test mon 'allow r' > > If it complains about an insecure key type, setting the preferred > cipher to aes256k [1] might be the fix, but please check the squid > docs (auth-config-ref) first as I haven't tested this myself. > > Cheers, > Sinan > > [1]: > ceph mon set auth_preferred_cipher aes256k > > Op vr 6 nov 2026 om 18:53 schreef Tim Holloway > <ceph-users@ceph.io>: >> Well that applies. >> >> ceph mon dump | grep -i cipher >> dumped monmap epoch 184 >> auth_service_cipher aes256k >> auth_allowed_ciphers aes256k >> auth_preferred_cipher aes >> >> Though I'm not sure I changed the allowed ciphers before the NFS >> isssues. In any event, that's obviously not something that the >> error >> message would lead me to! >> >> So. Better to re-authorize aes, try to rotate NFS and then >> switch the >> preferred cipher, or change the preferred cipher and go from >> there? >> >> On 11/6/26 11:44 AM, Sinan Polat wrote: >>> Hi Tim, >>> >>> It might be the new cephx key-type policy in 19.2.7, combined >>> with an >>> error handling bug in mgr/nfs that hides the real error. >>> >>> Could you share the output of: >>> ceph mon dump | grep -i cipher >>> >>> If the preferred cipher is still "aes" but "aes" is no longer >>> in the >>> allowed list, new keys can't be created and every NFS export >>> create/apply fails with that JSON error. >>> >>> Cheers, >>> Sinan >>> >>> Op vr 6 nov 2026 om 17:24 schreef Eugen Block >>> <ceph-users@ceph.io>: >>>> Hi, >>>> >>>> I redeployed a fresh nfs cluster, mounted it and could write >>>> data into >>>> CephFS, and this is all there is in the .nfs pool: >>>> >>>> rados -p .nfs ls --all >>>> foo grace >>>> foo conf-nfs.foo >>>> foo export-1 >>>> foo rec-0000000000000002:nfs.foo.0 >>>> >>>> I'm not sure yet what rec-0000000000000002:nfs.foo.0 is >>>> needed for, >>>> it's an empty object apparently. (it's been really a long >>>> time since I >>>> last looked into this) >>>> >>>> >>>> Zitat von Tim Holloway <ceph-users@ceph.io>: >>>> >>>>> 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 >>>>> _______________________________________________ >>>>> 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 >> _______________________________________________ >> 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
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
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