-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add any_errors_fatal to openstack playbooks #7225
Add any_errors_fatal to openstack playbooks #7225
Conversation
/ok-to-test |
Awesome, thanks! This is not necessary for the Anyway, it works great! Needs a rebase but we can merge it afterwards. Note that some of the plays have now moved under install and they still require any_errors_fatal, too. |
2133eef
to
712cb50
Compare
Thanks for the review! I've rebased and added any_errors_fatal to the install playbook. |
So sadly, when I tested this, it didn't seem to work. But there's apparently a few ansible bugs about that, so I'm okay to merge this. For the record, here's how I'm testing this. I've added the following to the provision playbook, right after the - os_server:
name: app-node-0.openshift.example.com
state: absent It will delete an app server (the name is hardcoded so if your env is different, change this). The play should abort during the Apparently though, it's possible to enable this option globally in
And that seem so be working fine. Would you mind adding that to the readme? Something along the lines of "It is recommended that you put |
I actually was going to just document the ansible.cfg change and leave it at that, but when I was testing - I did so by removing a nova server after the heat stack was created - the ansible.cfg change did nothing, while my changes worked. any_errors_fatal only seems to work on the specific tasks I threw it on, so perhaps the reason your test didn't work is because you were expecting it to fail in the playbooks/init/basic_facts.yml playbook? |
Interesting. Maybe our Ansible versions are different. The changes in this PR did nothing at all to me -- as if they weren't there. While the ansible.cfg version worked perfectly. So let's do both. |
Fair enough! Out of curiosity, what's your ansible version? |
@tzumainn: |
@tomassedovic I'm using 2.4.2.0. Now I'm really confused... |
Hm, so I updated to 2.4.2.0 but I keep seeing the same thing: ansible.cfg stops the play right after the failure, whereas without it, this patch keeps going for ages afterwards. |
@tomassedovic Okay, I've added a note to the README. I guess one of the billion options here will work, although it might be a different one for each person. |
/lgtm |
/test gcp |
2 similar comments
/test gcp |
/test gcp |
/test install |
/test containerized |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test install |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test gcp |
/retest |
1 similar comment
/retest |
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test install |
4 similar comments
/test install |
/test install |
/test install |
/test install |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
@tzumainn: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
No description provided.