Bug 1869174

Summary: Adding a host without a domain or with a different domain causes failures with tls everywhere enabled
Product: Red Hat OpenStack Reporter: Grzegorz Grasza <ggrasza>
Component: ansible-tripleo-ipaAssignee: Grzegorz Grasza <ggrasza>
Status: CLOSED ERRATA QA Contact: Jeremy Agee <jagee>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: dmendiza, hrybacki, pmannidi
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ansible-tripleo-ipa-0.2.1-1.20210407143429.3bb3c53.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1984483 (view as bug list) Environment:
Last Closed: 2021-09-15 07:08:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1984483    

Description Grzegorz Grasza 2020-08-17 07:30:25 UTC
Description of problem:

The code in tripleo-ipa assumes that all of these entries contain a domain and that forward and reverse dns entries should be added. This is true until the user specifies something unrelated in ExtraHostFileEntries.


Version-Release number of selected component (if applicable):

OSP 16.1

How reproducible:

This was reproduced in infrared

Steps to Reproduce:

The issue occured in infrared with the following configuration: 

  ExtraHostFileEntries:
  - '1.2.3.4 stillhavemythumb'


https://gitlab.cee.redhat.com/pidone/infrapatches/-/commit/706c006f3e14a50998ab7f445fdf93ba606bbcd0

Actual results:

The deployment fails with:

TASK [tripleo_ipa_dns : set forward dns record values] *************************
Thursday 23 July 2020  15:13:02 +0000 (0:00:00.693)       0:22:05.757 *********
fatal: [undercloud]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 1\n\nThe error appears to be in '/usr/share/ansible/roles/tripleo_ipa_dns/tasks/dns.yaml': line 18, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: set forward dns record values\n  ^ here\n"}

Expected results:

DNS entries are added, deployment succeeds.

Additional info:

A lachupad bug was reported to gather feedback. The proposal is to only add hosts with cloud domains, all other hosts will be ignored, which will resolve the issue.

Comment 8 errata-xmlrpc 2021-09-15 07:08:45 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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement 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/RHEA-2021:3483