Bug 908809 - [User Portal] Quota resources are still marked as 'Used by You' even the VM is down and/or storage object deleted
Summary: [User Portal] Quota resources are still marked as 'Used by You' even the VM i...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-userportal
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.2.0
Assignee: Gilad Chaplik
QA Contact: Ondra Machacek
URL:
Whiteboard: sla
Depends On:
Blocks: 917401
TreeView+ depends on / blocked
 
Reported: 2013-02-07 15:16 UTC by Jiri Belka
Modified: 2016-02-10 20:17 UTC (History)
10 users (show)

Fixed In Version: sf9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
quota resources in User Portal (88.51 KB, image/png)
2013-02-07 15:16 UTC, Jiri Belka
no flags Details
engine.log (4.22 KB, application/x-tar)
2013-02-07 15:16 UTC, Jiri Belka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12497 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.