rhtyd commented on issue #4911:
URL: https://github.com/apache/cloudstack/issues/4911#issuecomment-818667412


   @DaanHoogland when you say 'adjusting' it, was the storage pool capacity 
value manually updated using the API 
http://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html ?
   
   Looking into the codebase, it looks if the capacity value is getting reset 
to 0, it's triggered via a thread, most likely on pool connect/add (when the 
mgmt server starts or kvm host connects I think) or likely by the stat 
collector:
   
https://github.com/apache/cloudstack/blob/4.15/server/src/main/java/com/cloud/server/StatsCollector.java#L1026
   
   If it's the stats collector, then the `GetStorageStatsCommand` answer has 
capacity `0` returned. In case of solidfire on KVM, it could be resulting from 
https://github.com/apache/cloudstack/blob/4.15/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetStorageStatsCommandWrapper.java#L39
 which calls over few methods/logic:
   
https://github.com/apache/cloudstack/blob/4.15/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/IscsiAdmStoragePool.java#L63
   
   The code from the above class returns capacity as `0`. @mike-tutkowski 
@swill @skattoju4 can you check/advise?


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to