Cloning this bug for RHSC as the same issue is present in rhsc-log-collector as well. +++ This bug was initially created as a clone of Bug #1041749 +++ Description of problem: When rhsc-log-collector is run for multiple hypervisor hosts and invokes ssh with the "-t" flag, it results in a garbled TTY requiring "stty sane" to be run to get it back. Version-Release number of selected component (if applicable): rhsc-log-collector-2.1.2.0-0.3.el6rhs.noarch How reproducible: I was able to reproduce this 100% of the time if gathering more than one host. A single host does not exhibit this problem. Steps to Reproduce: 1. This problem depends on bug 1010472, which adds the "-t" flag to ssh. The patch looks like this: --- rhevm-log-collector.orig 2013-10-07 10:40:57.000000000 -0400 +++ rhevm-log-collector 2013-12-12 12:59:03.552000942 -0500 @@ -503,6 +503,10 @@ def format_ssh_command(self, cmd="ssh"): cmd = "/usr/bin/%s " % cmd + # add a controlling tty + if cmd.startswith("/usr/bin/ssh"): + cmd += "-t " + if "ssh_port" in self.configuration: port_flag = "-p" if cmd.startswith("/usr/bin/ssh") else "-P" cmd += port_flag + " %(ssh_port)s " % self.configuration 2. With that patch in place, run 'rhsc-log-collector collect' in an environment with more than one host Actual results: The command will succeed, but the TTY will become garbled during or just after the collection of data from the hosts The only recovery is to run 'stty sane' or 'reset' on the TTY where the 'rhevm-log-collector' was invoked. Expected results: The command succeeds and the TTY is sane. 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. 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") --- Additional comment from Sandro Bonazzola on 2013-12-18 03:07:34 EST --- Moving to RHEVM since there are Red Hat Customer Portal references.
As this bug has been identified as known issue, please add the DocText.
Please review the edited Doc Text and signoff.
Minor change in doc text. (Red Hat Storage Console => Terminal)
This issue has been fixed post rebase to upstream ovirt 3.5 in RHGS release 3.1. Closing this bug. Please reopen a bug against version 3.1 if you encounter the issue again