winterhazel commented on code in PR #14523:
URL: https://github.com/apache/cloudstack/pull/14523#discussion_r4756806092
##########
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) {
Review Comment:
@sandeeplocharla should we validate a minimum size inside this method? To
prevent operators from shrinking the volume to below
`ONTAP_MIN_VOLUME_SIZE_IN_BYTES` and the currently allocated/used capacity.
It also may be nice to check whether the new size is already the current
size and, in case it is, return early and avoid an unnecessary call to the
storage.
--
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]