Skip to content

Commit c26691b

Browse files
CSTACKEX-379: Resolving comments received on Primary storage pool resize upstream PR (#136)
### Description This PR resolves the comments received on apache#14523 1. The update storage pool now reuses the existing constants for flexVols. <!--- ******************************************************************************* --> <!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. --> <!--- PLEASE PUT AN 'X' in only **ONE** box --> <!--- ******************************************************************************* --> ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [ ] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [X] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> #### How did you try to break this feature and the system with this change? <!-- see how your change affects other areas of the code, etc. --> <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->
1 parent 9f3896e commit c26691b

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/StorageStrategy.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public Volume updateStorageVolume(Volume volume) {
605605
resizeRequest.setSize(volume.getSize());
606606
JobResponse jobResponse = volumeFeignClient.updateVolume(authHeader, volume.getUuid(), resizeRequest);
607607
pollJobIfPresent(jobResponse, "resize FlexVolume [" + volume.getUuid() + "]",
608-
OntapStorageConstants.ONTAP_VOLUME_JOB_MAX_RETRIES, OntapStorageConstants.ONTAP_VOLUME_JOB_POLL_INTERVAL_MS);
608+
OntapStorageConstants.ONTAP_FLEXVOL_RESOLVE_MAX_RETRIES, OntapStorageConstants.ONTAP_FLEXVOL_JOB_POLL_INTERVAL_MS);
609609
logger.info("FlexVolume '{}' (UUID: {}) resized successfully to {} bytes", volume.getName(), volume.getUuid(), volume.getSize());
610610
} catch (FeignException e) {
611611
if (OntapStorageUtils.isOntapObjectNotFoundError(e)) {

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/OntapStorageConstants.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ public class OntapStorageConstants {
172172
public static final int ONTAP_SNAPSHOT_DELETE_JOB_MAX_RETRIES = 30;
173173
public static final int ONTAP_SNAPSHOT_DELETE_JOB_POLL_INTERVAL_MS = 2000;
174174
/** Retry settings for FlexVolume create/resize/delete job polling. */
175-
public static final int ONTAP_VOLUME_JOB_MAX_RETRIES = 10;
176-
public static final int ONTAP_VOLUME_JOB_POLL_INTERVAL_MS = 1000;
177175
public static final int ONTAP_FLEXVOL_JOB_POLL_INTERVAL_MS = 2000;
178176
public static final int ONTAP_FLEXVOL_RESOLVE_MAX_RETRIES = 30;
179177

0 commit comments

Comments
 (0)