Description of problem: We are deploying the Openshift 3.11 cluster using the aws_ec2.yml dynamic inventory plugin. When logging is enabled the cluster build fails with the issue mentioned here: https://github.com/openshift/openshift-ansible/issues/11697. This issue is not encountered when an ini style inventory file is used so it is related to the aws_ec2 plugin. Doing a diff on output, when using a ini inventory vs aws_ec2 sheds some light on what's going wrong: 2 of the fact dicts returned are of type string rather than dict. The logic in conditional_set_fact.py is expecting them to be of type dict and hence it blows up Version-Release number of the following components: #### Version-Release number of the following components: openshift-ansible: pointing at openshift-ansible-3.11.217-1 tag. rpm -q ansible: ansible-2.8.12-1.el7ae.noarch ansible --version: ansible 2.8.12 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] #### How reproducible: Every time Steps to Reproduce: 1. 2. 3. Actual results: Please include the entire output from the last TASK line through the end of output if an error is generated Expected results: Additional info: I found reference to a workaround in Case number: 02587009, which works by adding a dict: "{{ hostvars[inventory_hostname] | to_json | from_json }}" I can confirm this workaround worked for my customer but they would like a permanent fix for this rather than an unmanaged workaround.
Reopening to implement a fix.
No, regression was found. move to verified. As I didn't tested via dynamic inventory. Feel free to re-open it if you still hit this issue.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 3.11.394 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:0637