Created attachment 694551 [details] quota resources in User Portal Description of problem: Quota used resources are still marked as 'Used by You' even the VM is down, storage object deleted, and then VM removed. In Administration portal I see memory and cpu quota usage on '0%'. Version-Release number of selected component (if applicable): sf6 How reproducible: 100% Steps to Reproduce: 1. on a DC which is in 'audit' quota mode, assign to a user (AD) role 'VmCreator' 2. create some quota with following setup: * memory 1024 (soft 60% => 615) * cpu 3 (soft 60% => 2) * disk 10G (soft 80% => 9) 3. assign to previously used user following role on quota - PowerUserRole 4. assign this user to the quota as consumer 5. login with the user into User Portal 6. create new VM, the VM should inherit valid quota with following resources * memory 615 * cpu 2 * disk 9 7. run the VM (it does not matter that it would get stucked in 'no bootable device' in console) 8. check Resources sidetab, check blue bars which mean 'Used by You' 9. stop the VM 10. check Resources sidetab, check blue bars which mean 'Used by You' 11. remove disk 12. check Resources sidetab, check blue bars which mean 'Used by You' Actual results: unrelease quota in User Portal Expected results: 'Used by You' bars should be empty as nothing is using quota Additional info: Check quota also in Administration portal to see, nothing is using it.
Created attachment 694552 [details] engine.log
Tested from RHEL6.4/Firefox. Storage seems to be released OK. When I tried to delete whole Firefox profile and logged in again, the usage in Resources sidetab was OK.
Logging out and logging in still in same Firefox sessoin is not enough. Although logging out, closing Firefox, starting Firefox and logging in makes those bars empty.
Hi Jiri, Regarding comment 1, step 3: why we need it? Thanks.
Right, in comment 1, step 3 is not needed, as he/she got VmCreator on the DC (PowerUserRole is just VmCreator + templates creation permission).
3.2 has been released