Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1490268 - [3.7] "when statements should not include jinja2 templating delimiters" warning is shown when running installer with ansible-2.3.1.0-3.el7.noarch
[3.7] "when statements should not include jinja2 templating delimiters" warni...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.7.0
Assigned To: Russell Teague
Johnny Liu
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-11 04:04 EDT by Johnny Liu
Modified: 2017-11-28 17:09 EST (History)
3 users (show)

See Also:
Fixed In Version: openshift-ansible-3.7.0-0.126.4
Doc Type: Bug Fix
Doc Text:
With Ansible 2.3 warnings are issued when using Jinja delimiters in 'when' conditions. The delimiters have been removed from the code base to avoid these warnings.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-28 17:09:56 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Johnny Liu 2017-09-11 04:04:46 EDT
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:
Comment 1 Russell Teague 2017-09-11 16:00:47 EDT
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
Comment 2 Russell Teague 2017-09-12 13:20:48 EDT
Proposed: https://github.com/openshift/openshift-ansible/pull/5379
Comment 3 Russell Teague 2017-09-13 13:57:50 EDT
Merged: https://github.com/openshift/openshift-ansible/pull/5379
Comment 4 Johnny Liu 2017-09-14 06:03:27 EDT
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.
Comment 5 Russell Teague 2017-09-15 09:15:03 EDT
$ 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
Comment 6 Johnny Liu 2017-09-18 03:23:53 EDT
Verified this bug with openshift-ansible-3.7.0-0.126.4.git.0.3fc2b9b.el7.noarch, and PASS.

No warning is seen now.
Comment 10 errata-xmlrpc 2017-11-28 17:09:56 EST
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

Note You need to log in before you can comment on or make changes to this bug.