cloudstack/engine/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
..
cache Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
datamotion Only use the host if its Resource State is Enabled. (#2512) 2018-03-29 17:43:22 +00:00
image Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
integration-test Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
resources/META-INF/cloudstack CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
snapshot Only use the host if its Resource State is Enabled. (#2512) 2018-03-29 17:43:22 +00:00
src/org/apache/cloudstack/storage CLOUDSTACK-10303 : Refactor test data to nuage_test_data.py runnable against simulator (#2483) 2018-03-14 17:17:36 +05:30
test/org/apache/cloudstack rats: licenses added 2015-07-07 13:48:20 +02:00
volume Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00
pom.xml Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
storage.ucls Cleanup of Xen and XenServer terms. Cloned xen plugin creating a xenserver plugin, then removed xen plugin 2014-06-07 04:50:23 -04:00