changed the title [-]Incorrect Disk usage is reported when a Ceph storage[/-][+]Incorrect Disk usage is reported when using Ceph erasure code pool[/+]on Jul 27, 2026
That is correct. CloudStack leverages Libvirt for this. If this is broken or wrong in Libvirt, it has to be fixed there. There isn't much CloudStack can do here.
I've set the priority to low as this is outside CloudStack's scope and assigned it to myself.
@wido Wondering if we should consider it as an enhancement
Bypassing libvirt entirely and querying Ceph directly via restful api to get the usage stats of a erasure code pool or a ceph storage pool
curl -k -u admin: https://<>:8443/api/pool
The usage reporting in cloudstack could also get affected because of querying the data from libvirt
I doubt if that's a good idea. Technically, yes, it could be done, but I wonder if we can get this to work. Ceph is implemented in the DefaultPrimartStorageDriver and this relies on Libvirt. If we want to do this cleanly we should write a separate Ceph driver for CloudStack, a plugin.
Maybe Libvirt can be improved, getting a patch into Libvirt might be better and more future proof.
Activity
kiranchavala commented on Jul 27, 2026
Based on the discussion in
#5500
CloudStack gets the used bytes information from libvirt.
wido commented on Jul 27, 2026
That is correct. CloudStack leverages Libvirt for this. If this is broken or wrong in Libvirt, it has to be fixed there. There isn't much CloudStack can do here.
I've set the priority to low as this is outside CloudStack's scope and assigned it to myself.
Will probably close this one soon(ish).
kiranchavala commented on Jul 27, 2026
@wido Wondering if we should consider it as an enhancement
Bypassing libvirt entirely and querying Ceph directly via restful api to get the usage stats of a erasure code pool or a ceph storage pool
curl -k -u admin: https://<>:8443/api/pool
The usage reporting in cloudstack could also get affected because of querying the data from libvirt
wido commented on Jul 27, 2026
I doubt if that's a good idea. Technically, yes, it could be done, but I wonder if we can get this to work. Ceph is implemented in the DefaultPrimartStorageDriver and this relies on Libvirt. If we want to do this cleanly we should write a separate Ceph driver for CloudStack, a plugin.
Maybe Libvirt can be improved, getting a patch into Libvirt might be better and more future proof.
DaanHoogland commented on Jul 28, 2026
this sounds like we want storage extensions now ;)
wido commented on Jul 28, 2026
Maybe @DaanHoogland ! But at this moment I don't see this being changed. Somebody has to invest time into this to get it fixed.