Bug 1831571 - IHA breaks when using ansible 2.9
Summary: IHA breaks when using ansible 2.9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: beta
: 16.1 (Train on RHEL 8.2)
Assignee: Michele Baldessari
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-05 10:11 UTC by Michele Baldessari
Modified: 2020-07-29 07:52 UTC (History)
2 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200514023428.0602d12.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-29 07:52:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1876897 0 None None None 2020-05-05 10:52:07 UTC
OpenStack gerrit 726230 0 None MERGED Fix IHA with ansible 2.9 2020-05-29 07:16:55 UTC
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:52:42 UTC

Description Michele Baldessari 2020-05-05 10:11:15 UTC
Description of problem:
Likely similar to https://bugzilla.redhat.com/show_bug.cgi?id=1831551

We fail IHA deployments when ansible 2.9 is installed:
TASK [If instance HA is enabled on the node activate the evacuation completed check] ***
Tuesday 05 May 2020  08:36:49 +0000 (0:00:00.403)       0:15:33.184 ***********
fatal: [compute-0]: FAILED! => {"msg": "The conditional check 'iha_nodes.stdout|lower | search('\"'+ansible_hostname|lower+'\"')'
failed. The error was: template error while templating string: no filter named 'search'. String: {% if iha_nodes.stdout|lower |
search('\"'+ansible_hostname|lower+'\"') %} True {% else %} False {% endif %}\n\nThe error appears to be in
'/var/lib/mistral/overcloud/ComputeInstanceHA/host_prep_tasks.yaml': line 391, column 5, but may\nbe elsewhere in the file depending
on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: iha_nodes\n  - file:
path=/var/lib/nova/instanceha/enabled state=touch\n    ^ here\n"}

Comment 7 errata-xmlrpc 2020-07-29 07:52:21 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.