Bug 1001032
Summary: | Copy template operation don't properly update storage resources of quota. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ondra Machacek <omachace> | ||||||
Component: | ovirt-engine | Assignee: | Gilad Chaplik <gchaplik> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Artyom <alukiano> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 3.3.0 | CC: | acathrow, dfediuck, eedri, iheim, lpeer, mavital, Rhev-m-bugs, yeylon | ||||||
Target Milestone: | --- | Keywords: | Triaged | ||||||
Target Release: | 3.3.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | sla | ||||||||
Fixed In Version: | is24 | 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: | 1038284 | ||||||||
Attachments: |
|
Created attachment 825732 [details]
Screenshot of GUI
Checked on is23
Still data in gui and database different:
From screenshot, we can see that storage consumption for quota_1 is 20%(2Gb) and query from database return:
engine=> SELECT storage_size_gb_usage FROM quota_global_view WHERE quota_name='quota_1';
storage_size_gb_usage
-----------------------
1
And for quota_2 consumption must be 2Gb, but query return:
engine=> SELECT storage_size_gb_usage FROM quota_global_view WHERE quota_name='quota_2';
storage_size_gb_usage
-----------------------
2
doron, on what basis did you moved this bug to ON_QA? i don't see it in is23, but i do see it in the build, it will be in IS24. build was done at nov 12: org.ovirt.engine-root-3.3.0-33 dcaroest 2013-11-12 12:38:29 patch was merged at nov 13. Verified on is24.1 Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released |
Created attachment 790432 [details] engine.log Description of problem: When template disk is copied to different quota, then quotas storage resources are set incorrectly. Version-Release number of selected component (if applicable): is11 How reproducible: always Steps to Reproduce: 0. Have at least two SD. 1. Set DC to enforce mode. 2. Create quota1[sd limit 10GB] and quota2[sd limit 10GB]. 3. Create template with 1GB disk on sd1 with quota1. 4. Copy template disk to sd2 with quota2. Actual results: DC->Quota resources show correct values: Storage consumtion of quota1: Free 9/10GB Storage consumtion of quota2: Free 9/10GB but values in database are incorrect. engine=# select storage_size_gb_usage from quota_global_view; storage_size_gb_usage ----------------------- 2 0 Expected results: Both quotas should consume 1GB. engine=# select storage_size_gb_usage from quota_global_view; storage_size_gb_usage ----------------------- 1 1 Additional info: