Skip to content
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

Job Summary missing, sometimes lines in output missing #15423

Open
5 of 11 tasks
BartOpitz opened this issue Aug 6, 2024 · 0 comments
Open
5 of 11 tasks

Job Summary missing, sometimes lines in output missing #15423

BartOpitz opened this issue Aug 6, 2024 · 0 comments

Comments

@BartOpitz
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

Sporadicaly some lines in output seem not to load (missing), but recently I have encounterd a situation, when the Job ended successfully, but no summary was rendered. Due to that fact also no summary about OK and failed hosts over the output was produced:
image

Accessing via API job_host_summaries shows one entry for each host, so correctly. The informations seem to be in job_events as well. Only web output and log download seem to be affected (also does not include summary, ends with the last host of last task 'ok' output.

Missing lines were observed mainly with strategy free, while the missing summary was for a standard linear strategy.
Missing lines in output look then like if they would not load:
image

Also with strategy free some TASK lines are from the same event as the directly following ok/changed/failed as both are contained in same event reported by ansible-playbook. Those lines are then associated with host_name and do not filter with TASK Started event. This makes host_name filtered output different to read, as TASK headers are not present or mostly not present.
Here, log download includes however all lines. Also all lines are present in job_events via API. Seems to be just UI artefact, is however reproducible in 100% for a chosen job where it occured.
In a closer look it looks like initially all lines were drawn, but withint a fraction of second those lines get un-loaded. All lines look like they were present for less than 200ms when refreshing the page, but this might be just an impression...

AWX version

24.5.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

Edge

Steps to reproduce

This problem seems sporadic. Re-running job shows normally host summary. Just from time to time it does not show. Once such a result is available, refreshing page, changing browsers etc. seems to have no influence on the issue. This seems then to be 100% reproducible for a given historic job. Re-running works then normal.

Missing lines show most often when using strategy free over >100 hosts with at least few tasks. It might be a problem in ansible-playbook, as the TASK line for strategy free is very often produced by a 'ok/changed/skipped' event which includes TASK and itself in the same stdout with just newline separator embedded between. I guess this is how AWX got it from ansible-playbook and might be related with strategy free handling. Also fot strategy free TASK lines sometimes get 'clickable' in output and do not count as TASK Started Event anymore.

Expected results

I expect to always get a host summary for each job and get all output lines shown

Actual results

Sporadicaly host summary is missing, and sometimes part of output lines do not load at all

Additional information

I have seen the issue for missing output lines (#6534), but it is a pretty old one from 2020 and I assume that since then many things got changed. This is why I opened this one, especially that here I got a problem when the entire summary was missing, as if the job would end pre-maturely. API reveals however that all output has been received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant