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
backport: mon: fix with_items being evaluated before when #1567
Conversation
Ansible evaluates the 'with_items' before the 'when' so if the inventory does not have the group declared it'll fail. To fix this, we set an empty array to make the with_items happy and then evaluate with the 'when'. Signed-off-by: Sébastien Han <seb@redhat.com> (cherry picked from commit 05331a2) Signed-off-by: Sébastien Han <seb@redhat.com>
backport of #1428 |
jenkins test jewel-ansible2.2-dmcrypt_journal |
jenkins test kraken-ansible2.2-journal_collocation |
1 similar comment
jenkins test kraken-ansible2.2-journal_collocation |
jenkins test jewel-ansible2.2-dmcrypt_journal_collocation |
jenkins test jewel-ansible2.2-docker_cluster |
jenkins test jewel-ansible2.2-docker_dmcrypt_journal_collocation |
jenkins test jewel-ansible2.2-purge_dmcrypt |
jenkins test kraken-ansible2.2-centos7_cluster |
jenkins test kraken-ansible2.2-dmcrypt_journal_collocation |
jenkins test kraken-ansible2.2-docker_dedicated_journal |
jenkins test kraken-ansible2.2-dmcrypt_journal_collocation |
What BZ does this resolve? What is the risk of not taking this fix now? |
@ktdreyer this is no BZ for this yet, risk is low. |
@ktdreyer The risk is that containers fail to deploy. We see this failure consistently in our nightly ceph-docker tests that use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please file a BZ with "Steps to reproduce", "Actual results", "Expected results", so QE understands why we would change this and how to test it?
What is the exact impact to users if we do not ship this?
jenkins test kraken-ansible2.2-dmcrypt_journal_collocation |
2 similar comments
jenkins test kraken-ansible2.2-dmcrypt_journal_collocation |
jenkins test kraken-ansible2.2-dmcrypt_journal_collocation |
Ansible evaluates the 'with_items' before the 'when' so if the inventory
does not have the group declared it'll fail. To fix this, we set an
empty array to make the with_items happy and then evaluate with the
'when'.
Signed-off-by: Sébastien Han seb@redhat.com
(cherry picked from commit 05331a2)
Signed-off-by: Sébastien Han seb@redhat.com