Bug 768755 - ETL copies duplicate entries of all hosts every hour.
Summary: ETL copies duplicate entries of all hosts every hour.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: 3.0.0
Hardware: Unspecified
OS: Linux
high
urgent
Target Milestone: ---
: ---
Assignee: Yaniv Lavi
QA Contact: David Botzer
URL:
Whiteboard: infra
Depends On:
Blocks: 771376
TreeView+ depends on / blocked
 
Reported: 2011-12-18 17:00 UTC by Eli Mesika
Modified: 2016-02-10 19:36 UTC (History)
11 users (show)

Fixed In Version: SI7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 771376 (view as bug list)
Environment:
Last Closed: 2012-12-04 19:57:57 UTC
oVirt Team: Infra
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 766636 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 766636

Description Eli Mesika 2011-12-18 17:00:45 UTC
Description of problem:
RegisterVdsQuery is called periodically and updates vds_static, this changes the _update flug inside vds_static and makes ETL getting the information (which was not changed) again and again.

This problem was reported after ETL consumed 100% CPU
Analysis, done by Juan, showed that ETL is periodically changing host configuration, as a result a query based on the host_configuration view  
is executed frequently and loading the CPU.
Juan also found that the query is not optimized, a patch for that is already pushed to Gerrit (see : See Also)

It is worth to mention also that this occurred on a system with no RHEV-H , even though , the RegisterVdsQuery that is relevant only for RHEV-H was running.


Version-Release number of selected component (if applicable):
3.0

How reproducible:
Large systems with history module installed and active ETL

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
RegisterVdsQuery should not be called without a reason
The _update flag should be updated only when vds is edited 

Additional info:

Comment 1 Itamar Heim 2011-12-19 05:00:59 UTC
please note kaul said there are no rhev-h in this environment, so need to revisit the assumption of registerVdsQuery which is supposed to be called only by vdsm_reg (could be old data in the environment as well - easy to check since we have a host type, logs(?), etc.)

Comment 4 Yaniv Lavi 2011-12-27 16:53:28 UTC
A patch for this issue is available in this link: 
http://gerrit.ovirt.org/773
of the ovirt-engine repository.


Yaniv

Comment 6 Yaniv Lavi 2012-01-03 07:54:19 UTC
Moved to POST since there isn't a 3.1 rhevm branch yet.


Yaniv

Comment 10 David Botzer 2012-08-22 11:11:10 UTC
Fixed, 3.1/si14
I checked in engine db vds_static for "_update_date" 
And got 4 lines over 6 days
Fixed, 3.1/si14


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