-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 notification data omits new host summary fields (rescued, ignored) #4394
Labels
Comments
@jladdjr can you add some instructions here on how to reproduce/observe this bug? |
@rebeccahhh (@ryanpetrello) - provided some additional context. Let me know if you need any other info! |
I verified this by doing the following:
{
"created_by": "admin",
"credential": "Demo Credential",
"extra_vars": "{}",
"finished": "2019-09-05T13:19:11.784510+00:00",
"friendly_name": "Job",
"hosts": {
"localhost": {
"changed": 0,
"dark": 0,
"failed": false,
"failures": 0,
"ignored": 0,
"ok": 2,
"processed": 1,
"rescued": 0,
"skipped": 0
}
},
"id": 15,
"inventory": "Demo Inventory",
"limit": "",
"name": "Demo Job Template",
"playbook": "hello_world.yml",
"project": "Demo Project",
"started": "2019-09-05T13:19:04.441732+00:00",
"status": "successful",
"traceback": "",
"url": "https://towerhost/#/jobs/playbook/15"
} With all the above we consider this done |
ryanpetrello
added a commit
to ryanpetrello/awx
that referenced
this issue
Aug 5, 2020
Send content-type with mattermost notifications, fixes ansible#7264
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ISSUE TYPE
ENVIRONMENT
SUMMARY
The Job model's
notification_data
method omits the new ansible host summary fields added here.awx/awx/main/models/jobs.py
Lines 655 to 661 in c7bb0f1
STEPS TO REPRODUCE
These steps can be accomplished with
akit
using the following commands:EXPECTED RESULTS
The e-mail notification will include a JSON dictionary with a number of fields describing the job run. The
hosts
section will list results for each host involved in the playbook run. Each host's results should include therescued
andignored
fields.ACTUAL RESULTS
rescued
andignored
fields are missing:ADDITIONAL INFORMATION
The new host summary fields (rescued, ignored) were added in Ansible 2.8 and adopted by awx here (and included in Tower 3.5)
The text was updated successfully, but these errors were encountered: