Bug 1041749
Summary: | rhevm-log-collector garbles the tty when multiple hosts are gathered and ssh is called with the "-t" flag | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | James W. Mills <jamills> | |
Component: | ovirt-engine-log-collector | Assignee: | Sandro Bonazzola <sbonazzo> | |
Status: | CLOSED ERRATA | QA Contact: | Jiri Belka <jbelka> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.3.0 | CC: | acathrow, adahms, iheim, knesenko, kroberts, lyarwood, pprakash, Rhev-m-bugs, yeylon | |
Target Milestone: | --- | Keywords: | Patch, ZStream | |
Target Release: | 3.4.0 | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | integration | |||
Fixed In Version: | ovirt-3.4.0-beta2 | Doc Type: | Bug Fix | |
Doc Text: |
Previously, when the rhevm-log-collector utility was run for multiple hypervisor hosts, it resulted in a garbled TTY and "stty sane" had to be run to recover the TTY. Now, the TTY is not garbled.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1049759 1058744 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-09 14:06:16 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1059692 | |||
Bug Blocks: | 1058744, 1078909, 1142926 |
Description
James W. Mills
2013-12-12 19:09:46 UTC
Hi James, thanks for your analysis of the issue. (In reply to James W. Mills from comment #0) > Additional info: > > This appears to be something to be a combination of the "-t" flag and > specifying multiple hosts. If you remove the "-t" flag the behavior goes > away, and if you only specify one host the behavior goes away. It might > have something to do with the logging module being used in multiple threads > simultaneously. Well logging module is supposed to be thread safe: http://docs.python.org/2/library/logging.html#thread-safety I don't think it's due to logging module. > > I was able to completely alleviate the problem with this patch: > > --- rhevm-log-collector.orig 2013-10-07 10:40:57.000000000 -0400 > +++ rhevm-log-collector 2013-12-12 12:59:03.552000942 -0500 > @@ -626,6 +630,7 @@ > ) > stdout = self.sosreport() > self.parse_sosreport_stdout(stdout) > + self.caller.call('stty sane') > self.configuration["hypervisor_dir"] = os.path.join( > self.configuration.get("local_scratch_dir"), > self.configuration.get("hostname") There are other ssh calls after that one so better move the call to stty sane after them. merged on upstream master for 3.5.0, pushed to 3.4.0 branch. merged on 3.4.0 branch ok, beta3 with 2 hosts... # engine-log-collector INFO: Gathering oVirt Engine information... INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost... Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): About to collect information from 2 hypervisors. Continue? (Y/n): Y INFO: Gathering information from selected hypervisors... INFO: collecting information from 10.34.63.222 INFO: collecting information from 10.34.66.81 INFO: finished collecting information from 10.34.63.222 INFO: finished collecting information from 10.34.66.81 Creating compressed archive... INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20140225092540.tar.xz. The MD5 for this file is 24c9bcc187d96d7ef818005f4d1ed055 and its size is 36.2M 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-0668.html |