+++ This bug was initially created as a clone of Bug #1480129 +++ Description of problem: When running 3.2 installer with ansible 2.3, a lot of warning is shown up, though it is harmless. PLAY [Populate config host groups] ********************************************* TASK [fail] ******************************************************************** Thursday 10 August 2017 02:13:09 +0000 (0:00:00.047) 0:00:00.316 ******* [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ g_etcd_hosts is not defined }} Pls search "when statements should not include jinja2 templating delimiters" keyword in the attached installation log to find more. Version-Release number of the following components: ansible-2.3.1.0-3.el7.noarch openshift-ansible-3.2.63-1.git.0.a21de5e.el7.noarch How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: a lot of warning is shown after switch ansible version from 2.2 to 2.3 Expected results: No more warning. Additional info: Please attach logs from ansible-playbook with the -vvv flag Description of problem: Version-Release number of the following components: rpm -q openshift-ansible rpm -q ansible ansible --version How reproducible: 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: Please attach logs from ansible-playbook with the -vvv flag --- Additional comment from Johnny Liu on 2017-08-10 05:13 EDT --- --- Additional comment from Johnny Liu on 2017-08-10 05:59:16 EDT --- Other version of installer (3.3 ~ 3.6) also has such issues, but the occurrence is less than 3.2. --- Additional comment from Russell Teague on 2017-08-24 20:21:25 EDT --- Proposed: https://github.com/openshift/openshift-ansible/pull/5207 --- Additional comment from Russell Teague on 2017-08-29 13:12:14 EDT --- Merged: https://github.com/openshift/openshift-ansible/pull/5207
Merged: https://github.com/openshift/openshift-ansible/pull/5218
Waiting for newer errata puddle to include the fix.
Due no AtomicOpenShift-errata puddle including the fix, switch to AtomicOpenShift puddle to do verification. Verified this bug with openshift-ansible-3.4.134-1.git.0.b0e4e16.el7.noarch.rpm, and FAIL. Still have some task is throwing the warning: TASK [openshift_serviceaccounts : Grant the user access to the appropriate scc] *** Monday 11 September 2017 04:07:00 +0000 (0:00:00.528) 0:08:36.064 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: 'system:serviceaccount:{{ openshift_serviceaccounts_namespace }}:{{ item.0 }}' not in {{ (item.1.stdout | from_yaml).users | default([]) }}
Proposed: https://github.com/openshift/openshift-ansible/pull/5355
Merged: https://github.com/openshift/openshift-ansible/pull/5355
Verified this bug with openshift-ansible-3.4.135-1.git.0.5bc4cb4.el7, and PASS. No warning is seen now.
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, 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/RHBA-2017:2900