Created attachment 790404 [details] engine.log Description of problem: When vm with snaphots is removed, quota storage resources are not counted correctly. Version-Release number of selected component (if applicable): is11 How reproducible: always Steps to Reproduce: 1. Set DC to enforced. 2. Create quota with 20GB storage resources. 3. Create vm with 1GB thin provision disk. 4. Create snaphost of vm. 5. Remove vm. Actual results: Storage resources show - Free 19/20GB. Expected results: Storage resources show - Free 20/20GB. Additional info: Seems similar as bug 963587. db: engine=# select * from quota_global_view; quota_id | storage_pool_id | storage_pool_name | quota_name | description | threshold_vds_group_percentage | threshold_storage_percentage | grace_vds_group_percentage | grace_storage_percentage | virtual_cpu | virtual_cpu_ usage | mem_size_mb | mem_size_mb_usage | storage_size_gb | storage_size_gb_usage | quota_enforcement_type --------------------------------------+--------------------------------------+-------------------+------------+-------------+--------------------------------+------------------------------+----------------------------+--------------------------+-------------+------------- ------+-------------+-------------------+-----------------+-----------------------+------------------------ 48decd8f-db52-4a34-911f-1fba8c56f545 | 17f06f0c-7707-4c60-aa37-b55d31a05634 | DC32 | quota_1 | | 80 | 80 | 20 | 20 | 3 | 0 | 4096 | 0 | 20 | 0 | 2
If vm has prealocated disk, and has snaphost created, then if vm is removed. Storage resources show - Free 18/20GB, Storage consumption 5% database: engine=# select storage_size_gb_usage from quota_global_view; storage_size_gb_usage ----------------------- 0
verified in is16
Closing - RHEV 3.3 Released