Bug 962177

Summary: [rhevm-dwh] - ETL Reports error when a Single Host in setup is Non-Responsive ("ETL service sampling has encountered an error")
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engineAssignee: Martin Perina <mperina>
Status: CLOSED ERRATA QA Contact: Barak Dagan <bdagan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: aberezin, acathrow, adahms, alonbl, bazulay, bdagan, emesika, iheim, jcoscia, jkt, lpeer, lyarwood, mperina, pstehlik, Rhev-m-bugs, sputhenp, wdaniel, yeylon, yzaslavs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is18 Doc Type: Bug Fix
Doc Text:
Previously, the data warehouse would assume that the engine was not running when all hosts registered in the engine were non-resposive because the engine would not update their data. This update introduces a data warehouse heartbeat job that lets the data warehouse know that the engine is active even when all hosts are in a non-responsive state. The heartbeat job functions by periodically updating the status in the database to notify the data warehouse that the engine is active. The interval for updating the heartbeat can be configured via engine-config using the DwhHeartBeatInterval variable.
Story Points: ---
Clone Of:
: 1008370 (view as bug list) Environment:
Last Closed: 2014-01-21 17:21:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1008370    
Attachments:
Description Flags
dwh-log
none
all-logs none

Description David Botzer 2013-05-12 10:33:41 UTC
Created attachment 746831 [details]
dwh-log

Description of problem:
ETL Reports error when a Single Host in setup is Non-Responsive ("ETL service sampling has encountered an error")

Version-Release number of selected component (if applicable):
3.2/sf15

How reproducible:
always

Steps to Reproduce:
1.install rhevm+dwh+reports
2.Create couple of VMs
3.Shutdown the HOST physically, or unplug the power cord (to reach " host status "Non-Responsive")
  
Actual results:
VMs are still running, and etl Reports error ("ETL service sampling has encountered an error")

Expected results:
Should retrieve data from all "Up" statuses entities

Additional info:
Logs

Comment 1 David Botzer 2013-05-12 10:34:04 UTC
Yaniv:
This may happen because rhevm doesn't update host statistics table when a single host is non responsive.

Comment 2 David Botzer 2013-05-12 10:34:23 UTC
Created attachment 746832 [details]
all-logs

Comment 3 Yaniv Lavi 2013-05-12 11:48:24 UTC
Eli, do we update the host stats table in this staution?



Yaniv

Comment 4 Eli Mesika 2013-05-14 01:39:08 UTC
(In reply to comment #3)
> Eli, do we update the host stats table in this staution?
> 
> 
> 
> Yaniv

I see nothing in the code that blocks the Host stat updates when its status is not responding ...

Comment 5 Yaniv Lavi 2013-05-16 10:53:09 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Eli, do we update the host stats table in this staution?
> > 
> > 
> > 
> > Yaniv
> 
> I see nothing in the code that blocks the Host stat updates when its status
> is not responding ...

Can it be that vdsm doesn't send stats for non responsive hosts or something in these lines?

Comment 6 Barak 2013-06-06 12:28:35 UTC
(In reply to Yaniv Dary from comment #5)
> Can it be that vdsm doesn't send stats for non responsive hosts or something
> in these lines?

1 - VDSM is being polled (it doesn't send anything)
2 - none-responsive means there is no communication to the host 

This has never stopped engine from updating the rest of the hosts stats
And DWH should not stop collecting data in those areas.

the scenario is easy to reproduce,
Yaniv can you please try reproducing on your environment ?

Comment 7 Barak 2013-06-09 11:45:15 UTC
After discussing the issue with Yaniv,
This issue happens only when all hosts in the system are none-responsive.

Although less interesting, still this needs to be handled on the engine side regardless of the hosts statuses.

One option to solve it is to update a variable in dwh_history_timekeeping table everytime the engine start the polling from VDSM.

In the past we have tried doing that but we tried to use the same transactions used by the stats collection, which caused db locking issues.

The fact is that all the DWH needs is to understand that the engine is up.
So the most basic approach is simply to have a quartz job that function as heart beat and update the variable mentioned above, to enable DWH to understand that the engine is actually up and to produce a record for all hosts (even when none-responsive)

This Heart Beat frequency should be configurable in the vdc_options.

Comment 8 Barak 2013-06-09 11:46:51 UTC
Alon, Yair,

Please see comment #7

Comment 9 Alon Bar-Lev 2013-06-09 11:55:23 UTC
(In reply to Barak from comment #7)
> The fact is that all the DWH needs is to understand that the engine is up.
> So the most basic approach is simply to have a quartz job that function as
> heart beat and update the variable mentioned above, to enable DWH to
> understand that the engine is actually up and to produce a record for all
> hosts (even when none-responsive)

we discussed this when discussed bug#918039 comment#2...

I don't like blind watchdogs... but it is better than what we have anyway...

Comment 10 Yair Zaslavsky 2013-06-09 14:29:01 UTC
Barak, from pure Java/Java EE point of view, seems like doable thing.
As I understand we need to modify one value in a table that resides at engine.
No problem with adding a scheduler for this.

Comment 13 Richard Davis 2013-08-19 17:00:29 UTC
"ETL service sampling has encountered an error"

This error is also encountered if your language is not configured as "en_US.UTF8".
(For instance "en_GB.UTF-8")

Please see RHN support case 00898361 or speak to RH TSA Rui Gouveia for more details.

Thank You

Comment 14 wdaniel 2013-08-26 16:38:49 UTC
Team,

I recently attached a case to this, however the customer is running the most up to date rhevm packages, and we verified the locale settings in the database (As per the KCS https://access.redhat.com/site/solutions/413393 - is there anything else I should checkm or maybe create a new bug? Thanks

Comment 15 Alon Bar-Lev 2013-08-26 16:45:02 UTC
(In reply to wdaniel from comment #14)
> Team,
> 
> I recently attached a case to this, however the customer is running the most
> up to date rhevm packages, and we verified the locale settings in the
> database (As per the KCS https://access.redhat.com/site/solutions/413393 -
> is there anything else I should checkm or maybe create a new bug? Thanks

If you unsure open a new bug, attach logs, worse case your bug will be marked as duplicate of this or any other bug.

Comment 16 Yaniv Lavi 2013-09-01 11:29:50 UTC
*** Bug 1001762 has been marked as a duplicate of this bug. ***

Comment 18 Richard Davis 2013-09-17 13:11:52 UTC
BZ 1005132 raised to cover Comment 13

Comment 21 Barak Dagan 2013-10-31 12:36:51 UTC
Verified on IS20.1

[RHEVM shell (connected)]# show host aqua08 | grep status
status-state                      : non_responsive

# tail -f /var/log/ovirt-engine/ovirt-engine-dwhd.log 
2013-10-31 10:05:56|ETL Service Started

Comment 22 Charlie 2013-11-28 00:21:44 UTC
This bug is currently attached to errata RHEA-2013:15231. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 24 errata-xmlrpc 2014-01-21 17:21:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0038.html