Bug 1788968

Summary: Ansible in pipeline mode fails with tlog enabled
Product: Red Hat Enterprise Linux 8 Reporter: Denis Volkov <dvolkov>
Component: tlogAssignee: jstephen
Status: CLOSED ERRATA QA Contact: Ondrej Moriš <omoris>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: jstephen, nikolai.kondrashov, omoris, pkettman, sssd-qe, svaezi, tscherf
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:27:10 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:
Attachments:
Description Flags
Playbook with pipelining disabled
none
Playbook with pipelining enabled none

Description Denis Volkov 2020-01-08 13:33:56 UTC
Description of problem:
After enabling pipeline mode in ansible on the user with tlog session recording enabled, simple playbooks fail

Version-Release number of selected component (if applicable):
tlog: tlog-6-1.el8.x86_64
ansible: 2.9.1 (not RHEL)

Steps to Reproduce:
1. Enable session recording:
chsh root -s /usr/bin/tlog-rec-session

2. Start test playbook with pipeline enabled

    $ ansible-playbook plays/ping-pipe.yml -i inv/hosts
PLAY [all] ********************************************************************************************************************************************************************************************************

TASK [ping all hosts] *********************************************************************************************************************************************************************************************
fatal: [rhel8]: FAILED! => {
    "changed": false,
    "rc": 0
}

MSG:

MODULE FAILURE
See stdout/stderr for the exact error


PLAY RECAP ********************************************************************************************************************************************************************************************************
rhel8                      : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   


Expected results:
Playbook is run without error


Additional info:
Test playbooks are in the attachment.
ping.yml - playbook with pipelining disabled
ping-pipe.yml - playbook with pipelining enabled

There is a ticket in the upstream with similar problem: https://github.com/Scribery/tlog/issues/227

Comment 1 Denis Volkov 2020-01-08 13:34:38 UTC
Created attachment 1650712 [details]
Playbook with pipelining disabled

Comment 2 Denis Volkov 2020-01-08 13:35:18 UTC
Created attachment 1650713 [details]
Playbook with pipelining enabled

Comment 3 jstephen 2020-01-13 15:03:07 UTC
Thank you for reporting this issue, I am looking into it.

Comment 4 Sasan Vaezi 2020-02-11 12:42:13 UTC
Hi  

Customer is requesting information. 

What release is this plan to, do we have any update on target date (some idea when)?


Thanks

Regards
Sasan

Comment 5 jstephen 2020-02-11 14:18:23 UTC
Hello,

This is not fixed upstream yet but I am planning to work on it after finishing some other development tasks, I expect the fix will be available in the RHEL 8.3 release. I will update on the progress of this BZ when I have some new details to share. Thank you for your patience.

Comment 15 errata-xmlrpc 2020-11-04 03:27:10 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 (tlog bug fix and enhancement update), 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/RHBA-2020:4739