cloudstack/test/integration
PranaliM 3e2ef197db Cloudstack 10064: Secondary storage Usage for uploadedVolume is not collected (#2258)
Description: For Volumes on Secondary Storage, (Uploaded Volume) the usage is not accounted for.

The fix is implemented as follows:

A new Usage Type is added for the Volume on secondary storage : VOLUME_SECONDARY (id=26)
A new storage type, 'Volume' is defined.
When a volume is uploaded and the usage server executes next,entry will be added to the usage_storage helper table for all the volumes uploaded since the Usage server executed last.
When the uploaded volume is attached, the 'deleted' column in the usage_storage table is set to the time-stamp when the volume was deleted
2 entries will be added to the cloud_usage table with usage_type=26 and usage_type=6 (Volume usage on primary). One for the duration the volume was on primary and other for the duration it was on secondary.
Entry is added to the helper table volume_usage for accounting for the primary storage.Next execution of the usage server and on-wards, usage entry for usage_type=6 only will be added.
2017-12-27 13:21:54 +05:30
..
component Cloudstack 10064: Secondary storage Usage for uploadedVolume is not collected (#2258) 2017-12-27 13:21:54 +05:30
plugins CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00
smoke CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
testpaths CLOUDSTACK-8308 automation test for Delta Snapshot 2017-10-10 19:52:49 +02:00
__init__.py apply chip childers licensing patches for the test directory 2012-06-26 11:19:58 -04:00