Bug 1127777

Summary: [RFE] Log collector does not collect hosted engine information
Product: Red Hat Enterprise Virtualization Manager Reporter: wdaniel
Component: ovirt-log-collectorAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Gonza <grafuls>
Severity: high Docs Contact:
Priority: high    
Version: 3.3.0CC: aburden, benglish, bmr, dfediuck, didi, gklein, iheim, lpeer, lveyde, msivak, nbarcet, pstehlik, rbalakri, Rhev-m-bugs, sbonazzo, stirabos, tdosek, yeylon, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature, ZStream
Target Release: 3.6.0Flags: sherold: Triaged+
Hardware: x86_64   
OS: Linux   
URL: https://github.com/sosreport/sos/issues/364
Fixed In Version: Doc Type: Enhancement
Doc Text:
A new plugin has been added to sos 3.2, the sosreport tool, so that information about the hosted-engine setup and high availability daemons is now collected by log collector.
Story Points: ---
Clone Of:
: 1208113 (view as bug list) Environment:
Last Closed: 2016-03-09 19:59:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1208113, 1234855    

Description wdaniel 2014-08-07 14:26:20 UTC
Description of problem:

Currently the sosreport tool, used by log collector, does not collect any information related to hosted-engine. These files include, but may not be limited to:


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

How reproducible:


Steps to Reproduce:
1. Run log collector in hosted engine environment
2. Extract host sosreports in log collector

Actual results:

No hosted-engine related files are found

Expected results:

All hosted-engine configuration and log files should be included

Additional info:

It may also be useful to grab the output from a few 'hosted-engine' commands, similar to the way in which vdsClient output is collected:

# hosted-engine --vm-status

The RHEV-M VM in these situations is completely unaware that it's a VM, no different than running a baremetal RHEV-M. Though there isn't an obvious and easy way to do it inside the guest, would it be useful (or even possible) to somehow indicate that this is a self-hosted environment? Maybe include a file under the log-collector-data directory (like time_diff.txt) that includes a list of all HA hosts? A lot of our customers simply open cases with brief descriptions and a LC, but no information on the environment. Other times, they simply fail to mention self hosted altogether. This small addition would a great convenience.

Comment 1 Sandro Bonazzola 2014-08-13 07:14:56 UTC
Upstream sos plugin request for collecting needed data is here: https://github.com/sosreport/sos/issues/364

We can deliver a sos plugin for hosted-engine within ovirt-hosted-engine-ha or ovirt-hosted-engine-setup for distributions still using sos 2.

Comment 3 Sandro Bonazzola 2014-09-05 08:37:43 UTC
updated after first review:
 - https://www.redhat.com/archives/sos-devel/2014-September/msg00004.html

Comment 4 wdaniel 2014-11-04 18:48:46 UTC

Can we get this backported to 3.5? This feature is extremely helpful for anyone trying to troubleshoot issues with hosted-engine, and it would save a decent amount of time for end users.

Comment 5 Sandro Bonazzola 2014-11-05 07:43:10 UTC
(In reply to wdaniel from comment #4)
> Sandro,
> Can we get this backported to 3.5? This feature is extremely helpful for
> anyone trying to troubleshoot issues with hosted-engine, and it would save a
> decent amount of time for end users.

Proposed for 3.5.1 ZStream

Comment 7 Sandro Bonazzola 2015-03-30 14:36:51 UTC
*** Bug 1169098 has been marked as a duplicate of this bug. ***

Comment 8 Bryn M. Reeves 2015-03-30 15:52:47 UTC
We have a request upstream to make sos tolerant of non-existent plugins on the command-line (so far just for disabled plugins):


Not sure this would apply to the lC situation (and it's not going to be in the next RHEL releases) but would appreciate comments on the upstream discussion if this seems like something that could be of interest (I know maintaining the lC command lines in the face of changing plugin sets has caused challenges in the past).

Comment 9 Sandro Bonazzola 2015-04-01 12:25:10 UTC
Thanks Bryn, commented.

Comment 11 Gonza 2015-06-19 07:34:15 UTC
Verified with 

Red Hat Enterprise Linux Server release 7.1 (Maipo)

Red Hat Enterprise Linux Server release 6.7 Beta (Santiago)

Result file:

hosted-engine data is now being collected by log-collector.

Comment 15 errata-xmlrpc 2016-03-09 19:59:02 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.