cloudstack/api/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
..
snapshot CLOUDSTACK-8746: vm snapshot implementation for KVM 2017-01-24 21:47:30 +01:00
template Refactor DownloadMonitorImpl code, move some functionalities to 2013-04-11 18:09:42 -07:00
DataStoreProviderApiService.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
DataStoreRole.java CLOUDSTACK-669: Convert volume snapshot orchestration flow to make it be serialized with other VM operations 2014-01-09 14:29:12 -08:00
GuestOS.java CLOUDSTACK-6437: 2014-04-25 13:10:10 -07:00
GuestOSHypervisor.java CLOUDSTACK-6437: 2014-04-25 13:10:10 -07:00
GuestOsCategory.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
ImageStore.java CLOUDSTACK-9998: Prometheus Exporter for CloudStack (#2287) 2017-10-11 17:24:22 +05:30
ScopeType.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
Snapshot.java This feature separates the snapshot creation on primary and its backing up on secondary. 2017-10-04 14:39:03 +05:30
Storage.java CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30
StorageGuru.java committing Chip Childers patches fixing licensing headers 2012-06-12 12:32:58 -04:00
StoragePool.java Adding support for cross-cluster storage migration for managed storage when using XenServer 2016-09-12 07:39:13 -06:00
StoragePoolDiscoverer.java Reformatted all of the code. 2013-11-21 06:15:26 -08:00
StoragePoolStatus.java Implementation for the ability to disable a storage pool for provisioning 2015-05-19 11:16:49 +01:00
StorageService.java CLOUDSTACK-9062: Improve S3 implementation. 2015-11-19 15:29:10 +01:00
StorageStats.java removed executable flags from java classes 2014-11-23 19:49:01 +01:00
Upload.java removed executable flags from java classes 2014-11-23 19:49:01 +01:00
VMTemplateStorageResourceAssoc.java CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
Volume.java CLOUDSTACK-8862: Introduced new state attaching for volume. This will make sure that other attach operation on same volume will fail gracefully without calling access calls for managed storage like SolidFire 2017-04-17 15:40:02 +05:30
VolumeApiService.java Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00
VolumeStats.java CLOUDSTACK-9972: Enhance listVolume API to include physical size and … (#2158) 2017-11-05 21:44:43 +05:30