You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "harikrishna-patnala (via GitHub)" <gi...@apache.org> on 2025/10/30 07:27:01 UTC
[I] listCapacity API showing wrong values for storage capacity type in case of Datastore Cluster [cloudstack]
harikrishna-patnala opened a new issue, #11937:
URL: https://github.com/apache/cloudstack/issues/11937
### problem
In case of VMware and Datastore cluster primary storage, listCapacity API for type 3 (CAPACITY_TYPE_STORAGE_ALLOCATED) is showing unexpected values (Zones > Select Zone > Resources > "Primary Storage allocated" values). There is no problem with the actual allocations during the VM deployments and also it shows the proper value under the specific storage.
1. Initial CS environment has 2 NFS primary storages (2.64TB each)
<img width="707" height="317" alt="Image" src="https://github.com/user-attachments/assets/adfc3eec-de45-41da-81b5-bcf0c99519e9" />
2. Check the resource capacities under Zone > Resources > "Primary Storage allocated" values
<img width="1124" height="509" alt="Image" src="https://github.com/user-attachments/assets/a1945d43-662c-4f37-95ef-e85876248d68" />
3. Created a datastore cluster on vCenter with one of these NFS storages as child storage and add it into CS
<img width="707" height="317" alt="Image" src="https://github.com/user-attachments/assets/6c74e861-f8ce-4c0f-a87a-42dd8a427f21" />
4. Check the resource capacities under Zone > Resources > "Primary Storage allocated" values
<img width="1124" height="509" alt="Image" src="https://github.com/user-attachments/assets/de0b6f2e-2e55-4319-bf42-f485378d0456" />
### versions
Tested with ACS version 4.20 (will exist even before)
### The steps to reproduce the bug
_No response_
### What to do about it?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] listCapacity API showing wrong values for storage capacity type in case of Datastore Cluster [cloudstack]
Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #11937:
URL: https://github.com/apache/cloudstack/issues/11937#issuecomment-3527329270
@harikrishna-patnala I think the value `Allocated: 24.74 GB / 15.81 TB` is expected.
If the underlying storage is same and we create multiple primary storages using it, the Used Total and Allocated Total counts the storage total capacity **multiple times for each Primary Storage.**
On KVM, I have this setup with 2 Primary Storages (all on the same underlying NFS storage).
<img width="1390" height="180" alt="Image" src="https://github.com/user-attachments/assets/2fed1c9d-2941-475e-a965-609b393df40d" />
Total capacity on both of them shows 915GB which is also the total capacity of the underlying NFS storage
<img width="549" height="472" alt="Image" src="https://github.com/user-attachments/assets/6d823ace-6939-4ce1-9d4f-32134801e80e" />
<img width="641" height="68" alt="Image" src="https://github.com/user-attachments/assets/f4526958-25c1-4492-8381-745e9e727db2" />
Total Primary Storage Capacity says 915GB * 2(two primary storages)
<img width="1325" height="136" alt="Image" src="https://github.com/user-attachments/assets/0524dd8d-15cb-4048-b421-0916380bc531" />
The Total Allocated Primary Storage Capacity is 915GB * 2 * 2(overprovisioning)
I added one more Primary storage on the same underlying storage just to verify
<img width="1918" height="209" alt="Image" src="https://github.com/user-attachments/assets/2f9f4196-dbd0-46eb-94fe-c5c97bd06564" />
Total Allocated Primary Storage increased as expected (by 915GB * 2)
<img width="1347" height="147" alt="Image" src="https://github.com/user-attachments/assets/eca012e9-9fd7-4868-b067-ef199bed45a9" />
There was a bit of lag in updation of Total Used Primary Storage Capacity, but it caught up after a few seconds. It increased by 915GB as well.
<img width="1344" height="162" alt="Image" src="https://github.com/user-attachments/assets/6df8d9c0-eabd-4e53-915f-136ea2803e24" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] listCapacity API showing wrong values for storage capacity type in case of Datastore Cluster [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #11937:
URL: https://github.com/apache/cloudstack/issues/11937#issuecomment-3728722455
fixed in #12181
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] listCapacity API showing wrong values for storage capacity type in case of Datastore Cluster [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #11937: listCapacity API showing wrong values for storage capacity type in case of Datastore Cluster
URL: https://github.com/apache/cloudstack/issues/11937
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org