mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Problem: The disk offering change is not reflected in cloud_usage database table. Root Cause: The resizeVolume API does not publish the volume disk offering change event to the cloud_usage database table. Solution: This issue has been fixed by refactoring the resizeVolume API to publish this disk offering change for volumes that either in Allocated or Ready state. Moves the method that published events for volumes in Ready state from the VolumeStateListener class to the orchestrateResizeVolume method in the VolumeApiService. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>