PranaliM opened a new pull request #2258: Cloudstack 10064 URL: https://github.com/apache/cloudstack/pull/2258 **Description**: For Volumes on Secondary Storage, the usage is not accounted for. **The fix is implemented as follows:** 1. A new Usage Type is added for the Volume on secondary storage : VOLUME_SECONDARY (id=26) 2. A new storage type, 'Volume' is defined. 3. 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. 4. 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 5. 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. 6. 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. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services