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.
DescriptionDerrick Ornelas
2013-09-20 20:38:03 UTC
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):
rhevm-log-collector-3.2.2-4.el6ev.noarch
sos-2.2-38.el6_4.2.noarch
How reproducible:
100%
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.
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.
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/RHBA-2014-0039.html
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): rhevm-log-collector-3.2.2-4.el6ev.noarch sos-2.2-38.el6_4.2.noarch How reproducible: 100% 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.