nvazquez commented on issue #5915:
URL: https://github.com/apache/cloudstack/issues/5915#issuecomment-1059414613


   @tsinik-dw thanks, I could validate that on the logs:
   ````
   2022-03-03 10:07:25,351 DEBUG [c.c.s.StorageManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) 
Destination pool id: 2 
   2022-03-03 10:07:25,360 DEBUG [c.c.s.StorageManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) Pool 
ID for the volume with ID 132 is 1 
   2022-03-03 10:07:25,365 DEBUG [c.c.s.StorageManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) Found 
storage pool SOLIDFIRE of type Iscsi 
   2022-03-03 10:07:25,366 DEBUG [c.c.s.StorageManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) Total 
capacity of the pool SOLIDFIRE with ID 2 is (60.00 GB) 64424476455 
   2022-03-03 10:07:25,370 DEBUG [c.c.s.StorageManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) 
Checking pool: 2 for storage allocation , maxSize : (60.00 GB) 64424476455, 
totalAllocatedSize : (23.00 GB) 24696061952, askingSize : (2.20 GB) 2362232064, 
allocated disable threshold: 0.85 
   2022-03-03 10:07:25,433 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-34:ctx-95b16032 job-473 ctx-9a984c53) (logid:d1d2f226) Access 
granted to Acct[d0987ed7-8031-11ec-9ad0-ba21ccf13580-admin] to 
com.cloud.storage.DiskOfferingVO$$EnhancerByCGLIB$$39e596b2@3ec58fe5 by 
AffinityGroupAccessChecker 
   ````
   
   I checked the calculation for the asking size on the SolidFire provider uses 
the volume size and the volume hv_ss_reserve values from the volumes table. To 
calculate the asking size, CS adds `volume size * (hv_ss_reserve / 100)` to the 
volume size in bytes - if in your case hv_ss_reserve = 200 then it would mean 
that CS will ask for 3 times the volume size, around 700MB is that the volume 
size? Reference: 
https://github.com/apache/cloudstack/blob/4.16/plugins/storage/volume/solidfire/src/main/java/org/apache/cloudstack/storage/datastore/driver/SolidFirePrimaryDataStoreDriver.java#L449
   
   Can you please share the DB output of:
   - select * from volumes where id = 132;
   - select * from disk_offering where uuid = 
"5b764ddb-ea60-40b1-8ff5-586953266e92";
   


-- 
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: [email protected]

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


Reply via email to