Skip to content

Commit 9bbcef4

Browse files
punith-ske4qqq
authored andcommitted
IOPS null issue CLOUDSTACK-7570
Signed-off-by: Mike Tutkowski <mike.tutkowski@solidfire.com> (cherry picked from commit dd4f6bc)
1 parent 988b9ef commit 9bbcef4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎engine/schema/src/com/cloud/service/ServiceOfferingVO.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ public ServiceOfferingVO(ServiceOfferingVO offering) {
177177
offering.getSystemUse(),
178178
true,
179179
offering.isCustomizedIops()== null ? false:offering.isCustomizedIops(),
180-
offering.getDomainId());
180+
offering.getDomainId(),
181+
offering.getMinIops(),
182+
offering.getMaxIops());
181183
cpu = offering.getCpu();
182184
ramSize = offering.getRamSize();
183185
speed = offering.getSpeed();

‎engine/schema/src/com/cloud/storage/DiskOfferingVO.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public DiskOfferingVO(String name, String displayText, Storage.ProvisioningType
214214
}
215215

216216
public DiskOfferingVO(long id, String name, String displayText, Storage.ProvisioningType provisioningType, boolean mirrored, String tags, boolean recreatable,
217-
boolean useLocalStorage, boolean systemUse, boolean customized, boolean customizedIops, Long domainId) {
217+
boolean useLocalStorage, boolean systemUse, boolean customized, boolean customizedIops, Long domainId, Long minIops, Long maxIops) {
218218
this.id = id;
219219
type = Type.Service;
220220
this.name = name;
@@ -229,6 +229,8 @@ public DiskOfferingVO(long id, String name, String displayText, Storage.Provisio
229229
this.domainId = domainId;
230230
uuid = UUID.randomUUID().toString();
231231
state = State.Active;
232+
this.minIops = minIops;
233+
this.maxIops = maxIops;
232234
}
233235

234236
@Override

0 commit comments

Comments
 (0)