Skip to content

Commit bc4ccb8

Browse files
Resolved comment received
1 parent d5d4284 commit bc4ccb8

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
@@ -394,7 +394,7 @@ public Volume updateStorageVolume(Volume volume) {
394394
resizeRequest.setSize(volume.getSize());
395395
JobResponse jobResponse = volumeFeignClient.updateVolume(authHeader, volume.getUuid(), resizeRequest);
396396
pollJobIfPresent(jobResponse, "resize FlexVolume [" + volume.getUuid() + "]",
397-
OntapStorageConstants.ONTAP_VOLUME_JOB_MAX_RETRIES, OntapStorageConstants.ONTAP_VOLUME_JOB_POLL_INTERVAL_MS);
397+
OntapStorageConstants.ONTAP_FLEXVOL_RESOLVE_MAX_RETRIES, OntapStorageConstants.ONTAP_FLEXVOL_JOB_POLL_INTERVAL_MS);
398398
logger.info("FlexVolume '{}' (UUID: {}) resized successfully to {} bytes", volume.getName(), volume.getUuid(), volume.getSize());
399399
} catch (FeignException e) {
400400
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
@@ -128,8 +128,6 @@ public class OntapStorageConstants {
128128
public static final int ONTAP_SNAPSHOT_DELETE_JOB_MAX_RETRIES = 30;
129129
public static final int ONTAP_SNAPSHOT_DELETE_JOB_POLL_INTERVAL_MS = 2000;
130130
/** Retry settings for FlexVolume create/resize/delete job polling. */
131-
public static final int ONTAP_VOLUME_JOB_MAX_RETRIES = 10;
132-
public static final int ONTAP_VOLUME_JOB_POLL_INTERVAL_MS = 1000;
133131
public static final int ONTAP_FLEXVOL_JOB_POLL_INTERVAL_MS = 2000;
134132
public static final int ONTAP_FLEXVOL_RESOLVE_MAX_RETRIES = 30;
135133

0 commit comments

Comments
 (0)