Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19642

tracer hangs forever if not ran via tty

XMLWordPrintable

    • Sprint 133, Sprint 134, Sprint 135, Sprint 136, Sprint 137
    • Moderate
    • None

      Description of problem:
      tracer performs a check to see if it can expect additional input from stdin, if so then it tries to read from stdin
      https://github.com/FrostyX/tracer/blob/master/tracer/main.py#L42
      However, this conditional also triggers if you run tracer via a non-tty ssh method. tracer then hangs on the blocking read until the session is killed.

      Version-Release number of selected component (if applicable):
      All versions. This part of the codebase has been intact for at least 7 years.

      How reproducible:
      100%

      Steps to Reproduce:
      1. Install tracer on a host
      2. ssh root@<your host> tracer

      Actual results:
      The ssh command will continue to wait until killed (or timed out by other means)

      Expected results:
      tracer runs as normal (with a better mechanism of checking the stdin buffer)

      Additional info:
      os.isatty(0) also has the same issue

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-qe-jcallaha Jake Callahan
              Vladimír Sedmík Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: