-
Notifications
You must be signed in to change notification settings - Fork 171
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
delegate_to is not reflected in report #282
Comments
o/ thanks for the issue ! For what it's worth, I found an openstack-ansible example of delegated task that we already had recorded on the demo instance: https://demo.recordsansible.org/results/435852.html and it's API response: https://demo.recordsansible.org/api/v1/results/435852 So, you're right, ara's callback currently simply doesn't verify if the task is delegated or not and there's no field for it in the API but it seems possible to do according to this snippet upstream: https://github.com/ansible/ansible/blob/60c9f045cc9195e9c8b3b90027dc19b72f9c579d/lib/ansible/plugins/callback/__init__.py#L100-L113 Adding support for this would be a good improvement. In terms of potential implementation between the callback and the API, I can see it working this way:
From a UI perspective, if the |
I've pushed a PR of my WIP so far: #293 |
The PR has been merged and it will be released in 1.5.7. Thanks for creating an issue about this ! |
Sorry for bringing so much trouble with that. For me it looked really more trivial, alike with the initial implementation.... |
I thought so too ! No worries, I'm happy that it works now and I learned a bit in the process :p |
What is the issue ?
Delegated tasks are not displayed in any way in ara report.
For instance, task is shown to be executed against infra1 host:
https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_725/798638/5/check/openstack-ansible-functional-ubuntu-bionic/7254c25/logs/ara-report/results/445.html
However, whole block is delegated to localhost: https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_725/798638/5/check/openstack-ansible-functional-ubuntu-bionic/7254c25/logs/ara-report/files/121.html#line-20
Which is eventually what happening according to the output log:
Env:
What should be happening ?
There should be some representation in report about real host against which tasks are executed and respect delegated tasks. Otherwise report is pretty misleading.
The text was updated successfully, but these errors were encountered: