Repository navigation
[CSTACKEX-328] QoS Support Part 2 #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
db102c6
96d97a5
83d07d8
6cd7718
d402fb6
4baa76f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -884,7 +884,7 @@ public VolumeVO allocVolume(long ownerId, Long zoneId, Long diskOfferingId, Long | |
| minIops = 0L; | ||
| maxIops = 0L; | ||
| } else { | ||
| if (minIops == null || minIops <= 0) { | ||
| if (minIops == null || minIops < 0) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we want to allow 0 for minIops?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For FAS, we need to set 0 as a min IOPS |
||
| throw new InvalidParameterValueException("The min IOPS must be greater than 0."); | ||
| } | ||
|
|
||
|
|
@@ -2327,7 +2327,7 @@ public Volume changeDiskOfferingForVolumeInternal(Long volumeId, Long newDiskOff | |
| if (volumeMigrateRequired) { | ||
| logger.warn(String.format("Volume change offering operation succeeded for volume ID: %s but volume resize operation failed, so please try resize volume operation separately", volume.getUuid())); | ||
| } else { | ||
| throw new CloudRuntimeException(String.format("Volume disk offering change operation failed for volume ID [%s] because the volume resize operation failed.", volume.getUuid())); | ||
| throw new CloudRuntimeException(String.format("Volume disk offering change operation failed for volume ID [%s] because the volume resize operation failed: %s", volume.getUuid(), e.getMessage())); | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -2371,7 +2371,7 @@ public Volume changeDiskOfferingForVolumeInternal(Long volumeId, Long newDiskOff | |
| if (volumeMigrateRequired) { | ||
| logger.warn(String.format("Volume change offering operation succeeded for volume ID: %s but volume resize operation failed, so please try resize volume operation separately", volume.getUuid())); | ||
| } else { | ||
| throw new CloudRuntimeException(String.format("Volume change offering operation failed for volume ID: %s due to resize volume operation failed", volume.getUuid())); | ||
| throw new CloudRuntimeException(String.format("Volume change offering operation failed for volume ID: %s due to resize volume operation failed: %s", volume.getUuid(), e.getMessage()), e); | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think , qos update or other update should be a private mtethod and this method should be responsible to call ONTAP API for patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For file case, we have to make diff call to attach a QoS but for lun, we can pass in the same request also as ONTAP accepts that.
otherwise it will be 2 diff call on for ISCSI, 1st of create/clone and 2nd for attach