Bug 908809

Summary: [User Portal] Quota resources are still marked as 'Used by You' even the VM is down and/or storage object deleted
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-userportalAssignee: Gilad Chaplik <gchaplik>
Status: CLOSED CURRENTRELEASE QA Contact: Ondra Machacek <omachace>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dfediuck, dyasny, ecohen, gchaplik, iheim, jturner, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---Keywords: TestBlocker
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: sf9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 917401    
Attachments:
Description Flags
quota resources in User Portal
none
engine.log none

Description Jiri Belka 2013-02-07 15:16:15 UTC
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.

Comment 1 Jiri Belka 2013-02-07 15:16:42 UTC
Created attachment 694552 [details]
engine.log

Comment 2 Jiri Belka 2013-02-07 16:43:22 UTC
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.

Comment 6 Jiri Belka 2013-02-22 09:44:59 UTC
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.

Comment 7 Gilad Chaplik 2013-02-26 16:33:20 UTC
Hi Jiri, 
Regarding comment 1, step 3:
why we need it?
Thanks.

Comment 8 Jiri Belka 2013-02-27 23:30:02 UTC
Right, in comment 1, step 3 is not needed, as he/she got VmCreator on the DC (PowerUserRole is just VmCreator + templates creation permission).

Comment 9 Itamar Heim 2013-06-11 08:20:45 UTC
3.2 has been released

Comment 10 Itamar Heim 2013-06-11 08:24:01 UTC
3.2 has been released