[Bug 2115379] Re: CephFS mount with native kernel client fails with 'secret is not valid base64' on Ubuntu 24.04 (6.8.0-62-generic), but ceph-fuse works
paulw2u
2115379 at bugs.launchpad.net
Thu Jul 17 08:54:29 UTC 2025
** Package changed: ubuntu => ceph (Ubuntu)
** Tags added: noble
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2115379
Title:
CephFS mount with native kernel client fails with 'secret is not valid
base64' on Ubuntu 24.04 (6.8.0-62-generic), but ceph-fuse works
Status in ceph package in Ubuntu:
New
Bug description:
Environment Details:
Ceph Cluster Version: Ceph Reef 18.2.7
Worker Node OS: Ubuntu 24.04 Noble Numbat
Worker Node Kernel Version: uname -r -> 6.8.0-62-generic
ceph-common Package Version: apt show ceph-common ->
19.2.0-0ubuntu0.24.04.2
Monitor Network: (e.g., 192.168.6.x on a dedicated NIC)
Problem Description
Attempted to mount CephFS using the native kernel client (mount -t
ceph ... or fstab).
Consistently received the error: secret is not valid base64: Invalid
argument. adding ceph secret key to kernel failed: Invalid argument
couldn't append secret option: -22
This error occurred for both a custom user (client.docker_worker01)
and the client.admin user.
ceph-fuse works perfectly: sudo ceph-fuse -m ... successfully mounts the filesystem with the same keyring file that fails with the native client.
dmesg -T showed no relevant error messages for the failed mount
attempt.
initial cat -vET output of keyring file showed non-standard spaces,
but even after attempts to ensure a clean file (scp, direct pipe,
manual retyping) the kernel client still failed while ceph-fuse
succeeded, suggesting the file was indeed clean for ceph-fuse but
something else was problematic for the kernel.
Steps to Reproduce:
Command "sudo mount -t ceph 192.168.6.101:/cephfs /mnt/dir -o
name=admin,secretfile=/etc/ceph/ceph.client.admin.keyring,noatime,_netdev"
fails, reporting an issue with the key not being in base64.
Command "sudo ceph-fuse -m 192.168.6.101 -r /cosdata/dir -n
client.admin --keyring=/etc/ceph/ceph.client.admin.keyring /mnt/dir"
is successful and my mount succeeds.
Expected Behavior: CephFS should mount successfully using the native kernel client.
Actual Behavior: CephFS fails to mount with the native kernel client.
Workaround: ceph-fuse is being used as a workaround, with the same
base64 secret file that native Ceph rejects.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2115379/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list