-
Notifications
You must be signed in to change notification settings - Fork 173
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
Labels passed as extra-vars causes ara errors and recording failures #116
Comments
I can replicate this with 1.3.2 but not with master; I suspect it was fixed by 7388229 ara/ara/plugins/callback/ara_default.py Lines 338 to 346 in d9df520
|
Hi @zswanson and thanks for taking the time to create an issue. It would be helpful to see if you can reproduce the issue with master, otherwise I will eventually get around to it. @flowerysong I agree that the current implementation is overly optimistic and failure tolerance needs to be improved across the board. Some errors are more "fatal" than others, but this has a lot to do with the synchronous nature of the callback and needing to tie data back to their parent.
If the task POST failed for some reason, then the failure will cascade and will cause the results for that task to fail being saved as well. That said, I would not consider a failure to patch a playbook to add labels to be fatal. I mean, it would not be a good thing to have missing labels but it shouldn't cause everything else to fail. |
I haven't looked at this yet but it didn't warrant blocking the release of 1.4, we can fix it in an upcoming dot release. |
What component is this about ?
API client
What is your ARA installation like ?
ara-api 1.3.2, running on an ubuntu AWS instance, installed from source. The ara-api is configured for an external postgres backend. No reverse proxy, it is accepting traffic directly over port 8000.
ara client 1.3.2, running on centos 7 installed from pypi. The ansible plugin portion is configured by environment variables, the ara client configuration is static configured in the ansible.cfg to the
http
type, and the url of my ara-api server.What is happening ?
Playbook executed during a packer AMI build on AWS was passing the
ara_ansible_playbook_labels
as an extra-var through a build script. The playbook execution itself was unaffected, but ara would report (via std-err output) errors during execution. Also, the record in ara-api appears incomplete and only shows the playbook name and start time; the api still thinks the playbook is in-progress. No tasks recorded.Execution of the playbook:
This reliably occurred over and over on multiple instance builds, changing various factors about the environment didn't help. I eventually noticed that the error about being unable to patch the playbook api came from a function doing some work with labels. I removed the extra-vars for the label, and the playbook now runs w/o errors and records appear in ara-api correctly.
What should be happening ?
Tasks from the ara client should be reported to the ara-api and recorded in the db.
The text was updated successfully, but these errors were encountered: