cloudstack/server/src/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
..
download CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
listener CLOUDSTACK-10196: Remove ejb-api 3.0 dependency (#2348) 2017-12-18 23:59:06 +05:30
monitor Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
resource All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
secondary CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
snapshot CLOUDSTACK-9620: Enhancements for managed storage (#2298) 2018-01-15 00:05:52 +05:30
upload CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
CreateSnapshotPayload.java This feature separates the snapshot creation on primary and its backing up on secondary. 2017-10-04 14:39:03 +05:30
ImageStoreDetailsUtil.java CLOUDSTACK-9438: Fix for CLOUDSTACK-9252 - Make NFS version changeable in UI 2016-09-28 08:51:37 -07:00
ImageStoreUploadMonitor.java volume upload: management server polling and upload status from agent 2015-01-14 10:19:12 +05:30
ImageStoreUploadMonitorImpl.java CLOUDSTACK-9646: No usage is generated for uploaded templates/volumes from local 2016-12-05 10:51:23 +05:30
LocalStoragePoolListener.java CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
OCFS2Manager.java removed executable flags from java classes 2014-11-23 19:49:01 +01:00
OCFS2ManagerImpl.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
RegisterVolumePayload.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
ResizeVolumePayload.java Support for backend snapshots with XenServer 2016-05-13 01:02:04 -06:00
StorageManagerImpl.java Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00
StoragePoolAutomation.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
StoragePoolAutomationImpl.java update for comment in cancelMaintin on start VR 2015-11-13 18:10:14 +08:00
TemplateProfile.java CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
VolumeApiServiceImpl.java Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00