Bug 1846970 - OC Deployment with octavia fails - recursive loop detected in template string {{enable_log_offloading}}
Summary: OC Deployment with octavia fails - recursive loop detected in template string...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 16.1 (Train on RHEL 8.2)
Assignee: RHOS Maint
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-15 09:47 UTC by Pavel Sedlák
Modified: 2020-07-29 07:53 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200616081525.396affd.el8ost.noarch
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-29 07:53:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:53:32 UTC

Description Pavel Sedlák 2020-06-15 09:47:32 UTC
OSP16.1 with RHOS-16.1-RHEL-8-20200611.n.0 compose fails deployments with octavia in OSP-phase2.

Failure in /var/lib/mistral/overcloud/ansible.log can be seen as (shortened):

> TASK [octavia-controller-post-config : create ip list (remove the last two characters)] ***
> Friday 12 June 2020  21:35:08 -0400 (0:00:00.429)       0:02:56.431 ***********
> ok: [controller-0]
> ok: [controller-1]
> ok: [controller-2]
>  
> TASK [octavia-controller-post-config : create ip list (rsyslog)] ***************
> Friday 12 June 2020  21:35:08 -0400 (0:00:00.291)       0:02:56.723 ***********
> fatal: [controller-0]: FAILED! => {\"msg\": \"The conditional check 'enable_log_offloading | bool' failed. The error was: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ ena
>  
> ... snip ...
>  
> og_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ enable_log_offloading }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: recursive loop detected in template string: {{ enable_log_offloading }}\
> \
> The error appears to be in '/usr/share/ansible/roles/octavia-controller-post-config/tasks/main.yml': line 19, column 7, but may\
> be elsewhere in the file depending on the exact syntax problem.\
> \
> The offending line appears to be:\
> \
>   block:\
>     - name: create ip list (rsyslog)\
>       ^ here\
> \"}
>  
> // ... same repeats for other controllers like controller-1 and -2

With help from gthiemonge on irc:
- https://review.opendev.org/#/c/733712/ (tripleo-ansible) introduced this code part
- https://review.opendev.org/#/c/733710/  (tripleo-heat-templates) likely missing and so causing the issue
- while there is default value in role, its first referenced in playbook above
  it and so requires the value to be provided

Likely involved:
> tripleo-ansible.noarch                            0.5.1-0.20200611113654.34b8fcc.el8ost
> openstack-tripleo-heat-templates.noarch           11.3.2-0.20200608073443.f604618.el8ost

Comment 2 nlevinki 2020-06-17 06:40:50 UTC
Please move the target milestone to RC, We will use 0610 compose for Beta

Comment 9 errata-xmlrpc 2020-07-29 07:53:11 UTC
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-2020:3148


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