Description of problem: When running 3.7 installer with ansible 2.3, some warning message is shown up, though it is harmless. TASK [openshift_hosted : Ensure OpenShift router correctly rolls out (best-effort today)] *** Monday 11 September 2017 06:53:14 +0000 (0:00:08.643) 0:14:36.796 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} TASK [openshift_hosted : Determine the latest version of the OpenShift router deployment] *** Monday 11 September 2017 06:53:14 +0000 (0:00:00.038) 0:14:36.835 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} TASK [openshift_hosted : Poll for OpenShift router deployment success] ********* Monday 11 September 2017 06:53:14 +0000 (0:00:00.038) 0:14:36.874 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} TASK [openshift_hosted : Ensure OpenShift registry correctly rolls out (best-effort today)] *** Monday 11 September 2017 06:53:37 +0000 (0:00:01.855) 0:14:59.034 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} TASK [openshift_hosted : Determine the latest version of the OpenShift registry deployment] *** Monday 11 September 2017 06:53:37 +0000 (0:00:00.027) 0:14:59.062 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} TASK [openshift_hosted : Sanity-check that the OpenShift registry rolled out correctly] *** Monday 11 September 2017 06:53:37 +0000 (0:00:00.025) 0:14:59.088 ****** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ not openshift_master_bootstrap_enabled | default(True) }} Version-Release number of the following components: ansible-2.3.1.0-3.el7.noarch openshift-ansible-3.7.0-0.125.0.git.0.91043b6.el7.noarch How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Some warning message is shown after switch ansible version from 2.2 to 2.3 Expected results: No more warning. Additional info:
The error is being reported because a variable is being defined which contains Jinja2 templating delimiters. Testing a workaround. This particular use case is fixed[1] in Ansible v2.4.0.0-0.1.rc1 [1] https://github.com/ansible/ansible/commit/23324bdda015256f90737ae93351d0ce71da01b2
Proposed: https://github.com/openshift/openshift-ansible/pull/5379
Merged: https://github.com/openshift/openshift-ansible/pull/5379
Re-test this bug with openshift-ansible-3.7.0-0.126.1.git.0.0bb5b0c.el7.noarch, but failed. Still reproduce the above warning. After checking the code, seem like the PR is not merged into rpm package.
$ git tag --contains a77f2ffdd0b1f37de2877a63511d8682ab4362bc openshift-ansible-3.7.0-0.126.2 openshift-ansible-3.7.0-0.126.3 Waiting for build openshift-ansible-3.7.0-0.126.3
Verified this bug with openshift-ansible-3.7.0-0.126.4.git.0.3fc2b9b.el7.noarch, 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/RHSA-2017:3188