Skip to content

Add a pod status check after EOF detection - #1333

Closed
lranjbar wants to merge 1 commit into
ansible:develfrom
lranjbar:add-pod-status-check
Closed

Add a pod status check after EOF detection#1333
lranjbar wants to merge 1 commit into
ansible:develfrom
lranjbar:add-pod-status-check

Conversation

@lranjbar

@lranjbar lranjbar commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

In researching the bug: AAP-46484
Jobs are in failed status with message "Receptor detail: Finished"

Receptor is returning a WorkStateSuccessful with a truncated stdout. This causes parsing JSON errors by ansible-runner.

The reproducer we have so far is shows that when a container exits with a failure exit code (non-zero exit code) receptor will pass the truncated stdout as a success. We can force this path by creating a container with low memory that causes k8s to OOMKill the container and pod.

This adds a check to grab the terminated state of the container and sends an error message if the container exited with a failure of some kind.

@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2025

Copy link
Copy Markdown

@lranjbar

lranjbar commented Jun 9, 2025

Copy link
Copy Markdown
Contributor Author

Changes have been rolled into #1332

@lranjbar lranjbar closed this Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant