rajiv-jain-netapp commented on code in PR #14523:
URL: https://github.com/apache/cloudstack/pull/14523#discussion_r4441959317
##########
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java:
##########
@@ -551,7 +551,34 @@ public boolean migrateToObjectStore(DataStore store) {
@Override
public void updateStoragePool(StoragePool storagePool, Map<String, String>
details) {
+ String newCapacityStr =
details.get(PrimaryDataStoreLifeCycle.CAPACITY_BYTES);
+ if (newCapacityStr == null) {
+ logger.debug("No capacity change requested for pool: {}, skipping
FlexVolume resize", storagePool.getName());
+ return;
+ }
+
+ long currentCapacityBytes = storagePool.getCapacityBytes();
Review Comment:
we can compare the new and current values for the size and if same, lets
exclude it from update?
--
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]