Bug 1010472 - rhevm-log-collector hangs when running ausearch command from sos selinux plugin
rhevm-log-collector hangs when running ausearch command from sos selinux plugin
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-log-collector (Show other bugs)
All Linux
high Severity high
: ---
: 3.3.0
Assigned To: Sandro Bonazzola
sefi litmanovich
: Triaged, ZStream
Depends On: 1005202
Blocks: 1022505
  Show dependency treegraph
Reported: 2013-09-20 16:38 EDT by Derrick Ornelas
Modified: 2015-09-22 09 EDT (History)
12 users (show)

See Also:
Fixed In Version: rhevm-log-collector-3.3.1-1.el6ev
Doc Type: Bug Fix
Doc Text:
When rhevm-log-collector attempted to collect logs from Red Hat Enterprise Linux hosts, the process was suspended indefinitely while processing the SELinux sos plugin. This update adds a "-t" flag to the ssh command used in the log collector, which provides a controlling TTY to finish the rhevm-log-collector process after the host sosreport is collected.
Story Points: ---
Clone Of:
: 1022505 (view as bug list)
Last Closed: 2014-01-21 12:00:12 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 489813 None None None Never
oVirt gerrit 19471 None None None Never
oVirt gerrit 19578 None None None Never

  None (edit)
Description Derrick Ornelas 2013-09-20 16:38:03 EDT
Description of problem:  When rhevm-log-collector attempts to collect logs from RHEL hypervisor the process hangs indefinitely while processing the selinux sos plugin because of the following line:

        self.collectExtOutput("ausearch -m avc,user_avc -ts today")

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


How reproducible:


Steps to Reproduce:
1.  Run 'rhevm-log-collector' on an environment containing a hypervisor running full RHEL 6

Actual results:

The rhevm-log-collector command never finishes, and sosreport runs indefinitely on the RHEL 6 hypervisor

Expected results:

The rhevm-log-collector command finishes after the host sosreport is collected 

Additional info:

The issue appears to be that the ausearch command requires a controlling TTY(pty), and hangs indefinitely without access to one.  The ssh command that rhevm-log-collector runs does have a controlling TTY.
Comment 1 Sandro Bonazzola 2013-09-23 02:26:46 EDT
There is an open bug about ausearch, however it seems that running it through ssh with -t flag is enough for providing the needed TTY.
I just need to check if adding that flag has other implications.
Comment 2 Sandro Bonazzola 2013-09-24 10:45:58 EDT
Patch pushed upstream master by James W. Mills.
Comment 3 Sandro Bonazzola 2013-09-25 09:12:27 EDT
Patch merged upstream master. Pushed and merged also on upstream 3.3 branch.
Comment 5 sefi litmanovich 2013-10-03 03:52:50 EDT
verified on RHEVM 3.3 IS17.
Comment 7 errata-xmlrpc 2014-01-21 12:00:12 EST
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.


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