Remote action error

Job execution says it is failing but able to see result of the remote execution.

Expected outcome:
Job completed successfully.

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:
Rocky Linux 8.6

Other relevant data:
Note: I changed ssh user and effective user from root to a new user. I tried executing ‘Run Command’ template. I used the command sudo yum check-update. The job result says job execution failed. But on the job invocation tab, it has results. Can someone help me on this. Thanks.


the “failed” state does not indicate that the job execution failed “per-se” but rather that the execution on the host failed (means: returned a non-0 exit code).
yum check-update returns the exit-code 100 if updates are available. So what the failed state in this case means is “there are updates available”. Depending on what you want to see, you should always keep this in mind when writing and interpreting your job executions.