Hi, I’m making use of a great feature of storage volumes with OCI instances to map multiple paths within a storage volume to multiple mount points on an instance. This seems to work very well, but I’ve noticed errors in incus.log which seem to be coming from UI page refreshes.
For example I have GitLab CE OCI image running in an instance (“gitlab”), and I have a separate volume called vol-gitlab which for convenience I mount inside the instance as /data. I then map the folders inside the instance (of which there are 3) to three different paths inside the volume, so for example;
incus config device add gitlab vol-gitlab disk pool=local \
source=vol-gitlab/var/opt/gitlab path=/var/opt/gitlab
incus config device add gitlab vol-gitlab disk pool=local \
source=vol-gitlab/etc/gitlab path=/etc/gitlab
incus config device add gitlab vol-gitlab disk pool=local \
source=vol-gitlab/var/log/gitlab path=/var/log/gitlab
So /var/opt/gitlab inside the instance is stored in /var/opt/gitlab inside the volume, etc … now this works and doesn’t error (I can mount /data inside other instances and see changes to data in the path mounts) , shows Ok inside the UI (albeit without the volume path), however when I refresh pages in the UI that reference the instance I see;
time="2025-06-06T10:51:44+01:00" level=error msg="Error getting volume usage" \
err="Storage volume \"vol-gitlab/etc/gitlab\" in project \"default\" of type \
\"custom\" does not exist on pool \"local\": Storage volume not found" \
instance=gitlab instanceType=container project=default volume=vol-gitlab/etc/gitlab
time="2025-06-06T10:51:44+01:00" level=error msg="Error getting volume usage" err="Storage volume \"vol-gitlab/var/log/gitlab\" in project \"default\" of type \"custom\" does not exist on pool \"local\": Storage volume not found" instance=gitlab instanceType=container project=default volume=vol-gitlab/var/log/gitlab
time="2025-06-06T10:51:44+01:00" level=error msg="Error getting volume usage" err="Storage volume \"vol-gitlab/var/opt/gitlab\" in project \"default\" of type \"custom\" does not exist on pool \"local\": Storage volume not found" instance=gitlab instanceType=container project=default volume=vol-gitlab/var/opt/gitlab
Am I doing something wrong, or is there a bug somewhere in the UI API, maybe something in the schema validation that doesn’t “get” this feature?