Skip to content

Commit 46164e8

Browse files
shwstpprdhslove
authored andcommitted
server: fix volume offering not updated after offering change (apache#12003)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent c27153a commit 46164e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,7 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
16081608
}
16091609
}
16101610

1611+
volume = _volsDao.findById(volumeId);
16111612
if (newDiskOfferingId != null) {
16121613
volume.setDiskOfferingId(newDiskOfferingId);
16131614
_volumeMgr.saveVolumeDetails(newDiskOfferingId, volume.getId());
@@ -1622,7 +1623,6 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
16221623
}
16231624

16241625
// Update size if volume has same size as before, else it is already updated
1625-
volume = _volsDao.findById(volumeId);
16261626
if (currentSize == volume.getSize() && currentSize != newSize) {
16271627
volume.setSize(newSize);
16281628
} else if (volume.getSize() != newSize) {

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3192,7 +3192,7 @@
31923192
"message.change.offering.confirm": "Please confirm that you wish to change the service offering of this virtual Instance.",
31933193
"message.change.offering.for.volume": "Successfully changed offering for the volume",
31943194
"message.change.offering.for.volume.failed": "Change offering for the volume failed",
3195-
"message.change.offering.processing": "Changing offering for the volume...",
3195+
"message.change.offering.for.volume.processing": "Changing offering for the volume...",
31963196
"message.change.password": "Please change your password.",
31973197
"message.change.scope.failed": "Scope change failed",
31983198
"message.change.scope.processing": "Scope change in progress",

0 commit comments

Comments
 (0)