ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.97k stars 3.41k forks source link

Ad-hoc jobs are not listed in jobs summary for single host #13610

Open mbuczkowski-gm opened 1 year ago

mbuczkowski-gm commented 1 year ago

Please confirm the following

Bug Summary

I noticed that ad-hoc jobs that you can run from inventory using "run command" button isn't later visible in job history for single host. In the scenario I select one host and run shell command. It is listed correctly under: #/jobs and #/inventories/inventory/1/jobs, but it's missing from #/inventories/inventory/1/hosts/49/jobs, where 49 is the host that command was executed on.

AWX version

21.11.0

Select the relevant components

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

ubuntu 22.04

Web browser

Firefox

Steps to reproduce

Run ad-hoc command and visit jobs history for single host (that ad-hoc command was executed on). The ad-hoc job is missing, while being present in other jobs listings.

Expected results

Ad-hoc job present in single host job history.

Actual results

The ad-hoc job is missing in single host job history, while being present in other jobs listings.

Additional information

No response

fosterseth commented 1 year ago

replicated this behavior. This a current limitation the use of recent_jobs for templates (of which ad hoc commands have none). This would require a bit of rework to get these to display in the UI

might be to be captured in an RFE