You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/03/15 07:07:32 UTC

[GitHub] [cloudstack] weizhouapache commented on a change in pull request #4805: server: create DB entry for storage pool capacity when create storage pool

weizhouapache commented on a change in pull request #4805:
URL: https://github.com/apache/cloudstack/pull/4805#discussion_r594092026



##########
File path: server/src/main/java/com/cloud/storage/StorageManagerImpl.java
##########
@@ -757,6 +757,15 @@ public PrimaryDataStoreInfo createPool(CreateStoragePoolCmd cmd) throws Resource
             throw new CloudRuntimeException("Failed to add data store: " + e.getMessage(), e);
         }
 
+        // create entry for storage pool capacity

Review comment:
       @harikrishna-patnala 
   I tested with zone-wide storage pools.
   do you think it is better to add `storageMgr.createCapacityEntry(pool.getId());` at line 176 below ?
   
   https://github.com/apache/cloudstack/blob/75fb1d91eee6e18b2247d39ea4a3cfda04101c07/engine/storage/src/main/java/org/apache/cloudstack/storage/volume/datastore/PrimaryDataStoreHelper.java#L176




----------------------------------------------------------------
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:
users@infra.apache.org