Skip to content

Commit 98f5291

Browse files
shwstpprLocharla, Sandeep
authored andcommitted
server: fix volume offering not updated after offering change (apache#12003)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 2438877 commit 98f5291

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
@@ -1578,6 +1578,7 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
15781578
}
15791579
}
15801580

1581+
volume = _volsDao.findById(volumeId);
15811582
if (newDiskOfferingId != null) {
15821583
volume.setDiskOfferingId(newDiskOfferingId);
15831584
_volumeMgr.saveVolumeDetails(newDiskOfferingId, volume.getId());
@@ -1592,7 +1593,6 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
15921593
}
15931594

15941595
// Update size if volume has same size as before, else it is already updated
1595-
volume = _volsDao.findById(volumeId);
15961596
if (currentSize == volume.getSize() && currentSize != newSize) {
15971597
volume.setSize(newSize);
15981598
} else if (volume.getSize() != newSize) {

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@
31213121
"message.change.offering.confirm": "Please confirm that you wish to change the service offering of this virtual Instance.",
31223122
"message.change.offering.for.volume": "Successfully changed offering for the volume",
31233123
"message.change.offering.for.volume.failed": "Change offering for the volume failed",
3124-
"message.change.offering.processing": "Changing offering for the volume...",
3124+
"message.change.offering.for.volume.processing": "Changing offering for the volume...",
31253125
"message.change.password": "Please change your password.",
31263126
"message.change.scope.failed": "Scope change failed",
31273127
"message.change.scope.processing": "Scope change in progress",

0 commit comments

Comments
 (0)