cloudstack/server/test/com/cloud/storage
Rafael Weingärtner b9ed42bd29
Fix primary storage count when deleting volumes (#2629)
* Primary Storage count for an account does not decrease when a Data Disk is deleted

When a data disk is created and not attached in a running VM, the "deleteVolume" will not decrement the count for used primary storage in the VMs accounting information. The property that is not being decremented is called "primarystoragetotal"; this information can be retrieved via "listAccounts" API method.

Steps to reproduce this issue:
1 - Create an account, deploy a VM in it
2 - Check the primary storage count for the account with listAccounts API
3 - Create a data disk
4 - Check the primary storage count for the account with listAccounts API
5 - Delete the Data disk
6 - Check the primary storage count for the account with listAccounts API - It is the same as before deleting the data disk (it should not be the same as the value in step 2!)

* formatting and cleanups

* fix imports that were wrongly changed during rebase
2018-05-16 15:28:28 -03:00
..
dao Reformatted all of the code. 2013-11-21 06:15:26 -08:00
listener server: Fix build regression caused by 32a39 2016-11-03 09:14:35 +05:30
snapshot CLOUDSTACK-9620: Enhancements for managed storage (#2298) 2018-01-15 00:05:52 +05:30
ImageStoreDetailsUtilTest.java CLOUDSTACK-9438: Fix for CLOUDSTACK-9252 - Make NFS version changeable in UI 2016-09-28 08:51:37 -07:00
VolumeApiServiceImplTest.java Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00