cloudstack/usage
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
..
conf Dynamic loading of DB driver + support for other DB providers 2016-05-23 15:50:28 +02:00
distro CLOUDSTACK-7633: fix "Provides" in most LSB headers 2014-09-25 16:56:53 +02:00
resources CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
src/com/cloud/usage Cloudstack 10064: Secondary storage Usage for uploadedVolume is not collected (#2258) 2017-12-27 13:21:54 +05:30
test CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
pom.xml CLOUDSTACK-9456: Upgrade spring and misc dependencies (#2375) 2017-12-26 11:53:48 +05:30