Closed khoubeibba closed 5 days ago
Thank you for the request. I cannot reproduce the error, and also from the code I can't see how this could be triggered. Can you please provide a bit more info of which interactions in the UI lead to the trace you posted above?
I reconstructed your situation with a LXD-UI in the same version as you mentioned. A cephfs pool is rendered correctly in the storage pool overview for me. I don't understand what you mean with "create a volume using cephfs driver", because as far as I understand, cephfs is providing a filesystem, so you cannot create a volume on it.
Thank you for your return Here's a video
Thanks for the video, it helped me to understand and reproduce the issue. The volumes link in the pool detail pages should not appear for cephfs in the first place. Because there are no volumes on a cephfs pool as it already contains a filesystem.
The crash happens, because we filter the volume list after the "Volumes" link is used by the cephfs pool. Then use the cephfs pool as a default on hitting the volume creation button. But the volume creation can't handle a pool with driver cephfs, and actually that is correct as it is not a valid pool driver to create a volume on.
We'll hide that "Volumes" link on a storage pool with driver cephfs. That will fix the breaking path you experienced above.
Thanks @edlerd for the info, but what I don't understand is the fact that I was able to create a volume on the remote-fs storage pool and I can see it on the UI
lxc storage volume create remote-fs another-volume
Thanks for your message, you are right. According to the docs on cephfs volumes can be created, but only with type filesystem. In that case, I'll change the fix accordingly.
Description
Using LXD-UI : Error when trying to create a volume using cephfs driver
Using the CLI : OK
Metadata
microcloud cluster 2.1.0 LTS lxd 5.21.2 LTS ceph-version: 19.2.0-0ubuntu0.24.04.1; microceph-git: 9aeaeb2970 openvswitch: 3.3.0-1ubuntu3 UI Version: 0.8.4 Path: /ui/project/default/storage
Stacktrace