Couldn't get fsid for "ceph"

While creating a CephFS storage pool in the Incus UI, I ran into a “Storage pool creation failed” error. The detailed message shows:

ceph --format json --cluster ceph fsid: exit status 1 (2025-05-08T14:26:50.903+0200 7fb4b531b6c0 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory

What confused me is that I had specified a Ceph user called cephuser1, and that user is clearly used by some of the Ceph commands invoked during pool creation. However, for the fsid command, it seems to fall back to looking for the client.admin keyring instead.

When I run the same ceph fsid command manually and provide --name client.cephuser1, it works as expected and returns the FSID in JSON format.

Is this a bug in Incus, or am I missing something?

That’s a bug. Can you file the issue at GitHub · Where software is built?

The CephFsid only takes a cluster name, it doesn’t take the user name, so it ends up not knowing what keyring to use…