Skip to content

Commit f0a0936

Browse files
authored
server: fix volume offering not updated after offering change (#12003)
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 81787b3 commit f0a0936

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
15361536
}
15371537
}
15381538

1539+
volume = _volsDao.findById(volumeId);
15391540
if (newDiskOfferingId != null) {
15401541
volume.setDiskOfferingId(newDiskOfferingId);
15411542
_volumeMgr.saveVolumeDetails(newDiskOfferingId, volume.getId());
@@ -1550,7 +1551,6 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
15501551
}
15511552

15521553
// Update size if volume has same size as before, else it is already updated
1553-
volume = _volsDao.findById(volumeId);
15541554
if (currentSize == volume.getSize() && currentSize != newSize) {
15551555
volume.setSize(newSize);
15561556
} else if (volume.getSize() != newSize) {

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@
28452845
"message.change.offering.confirm": "Please confirm that you wish to change the service offering of this virtual Instance.",
28462846
"message.change.offering.for.volume": "Successfully changed offering for the volume",
28472847
"message.change.offering.for.volume.failed": "Change offering for the volume failed",
2848-
"message.change.offering.processing": "Changing offering for the volume...",
2848+
"message.change.offering.for.volume.processing": "Changing offering for the volume...",
28492849
"message.change.password": "Please change your password.",
28502850
"message.change.scope.failed": "Scope change failed",
28512851
"message.change.scope.processing": "Scope change in progress",

0 commit comments

Comments
 (0)