-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible-runner fails to write large task output to stdout #1371
Comments
A few initial questions:
|
Maybe a result of #1343 ? |
I feel like I'm suffering from this, too - although it's not necessarily due to large output. It's actually very hard to reproduce in my environment - all I can say is that it's a problem when I'm operating in a high network latency environment. What I can see is:
I have redacted some of the actual Broken: So the same working event looks more like:
My |
Ansible-runner 2.4.0
Ansible 2.17
Python 3.10.12
I'm using ansible-runner to execute ansible playbooks in a containerized environment. Existing configuration works fine.
Occasionally, ansible-runner will stop writing output to stdout but playbook execution will continue. This behaviour is very consistent and seems to occur when a given ansible task returns a large number of output lines. No errors are thrown, only that the ansible-runner process exits to the terminal prompt without showing the remaining task output or the PLAY RECAP.
artifacts/myjob/stdout file matches what I see on my local terminal.
artifacts/myjob/job_events lists all the events correctly, including the large number of output lines.
To troubleshoot, I've invoked the podman command directly using all the same parameters as runner (work dir, volumes, env file, ansible-playbook command) and the container is able to write the entire playbook output to stdout with no problem, so likely not an issue with my ansible configuration or callbacks. Changing the ansible verbosity also doesn't affect this behaviour, leading me to believe it's not really about the amount of text written to stdout.
In this instance, I'm receiving the output of a Powershell Get-Module command, but I experience the same behaviour any time I'm working with a large amount of data in a single task. I don't have an exact threshold, but several thousand lines at least.
Expected Behaviour:
Actual Behaviour:
The text was updated successfully, but these errors were encountered: