Bug 1655094

Summary: Additional new lines in remote execution output
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: aruzicka, inecas, pcreech
Target Milestone: 6.5.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_remote_execution-1.6.6-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:39:19 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:

Description Ivan Necas 2018-11-30 15:21:16 UTC
Description of problem:
With https://bugzilla.redhat.com/show_bug.cgi?id=1532675, we've update the way
how we render the output. However, there was an issue introduced, that caused
additional empty lines to sneak into the output.

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


How reproducible:
90%

Steps to Reproduce:
1. run rex job running 'echo one; sleep 1; echo two; sleep 1; echo three'


Actual results:

Job output on host is shown as:
   1: one
   2:
   3: two
   4:
   5: three
   6:
   7: Exit status: 0

Expected results:

Job output looks like this:

   1: one
   2: two
   3: three
   4: Exit status: 0

Additional info:

Comment 4 Ivan Necas 2018-11-30 15:23:33 UTC
Created redmine issue https://projects.theforeman.org/issues/25598 from this bug

Comment 5 Peter Ondrejka 2018-12-10 14:17:03 UTC
Verified on Sat 6.5 snap 7 on using ansible and ssh command templates

Comment 8 errata-xmlrpc 2019-05-14 12:39:19 UTC
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.

https://access.redhat.com/errata/RHSA-2019:1222