Bug 1874936

Summary: TLS-E on pre-provisioned nodes fail with msg": "--server cannot be used without providing --domain"
Product: Red Hat OpenStack Reporter: Sadique Puthen <sputhenp>
Component: openstack-tripleo-heat-templatesAssignee: Grzegorz Grasza <ggrasza>
Status: CLOSED ERRATA QA Contact: Jeremy Agee <jagee>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: dwilde, hrybacki, igallagh, kthakre, mburns, mgarciac
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210104205653.el8ost Doc Type: Bug Fix
Doc Text:
Before this update, TLS-E on pre-provisioned nodes failed with the message: "--server cannot be used without providing --domain". With this update, the IDM domain name is detected by first resolving "ipa-ca" through DNS, then doing a reverse DNS lookup on the resulting IP address. It might be necessary to add the PTR record, which is required for the reverse lookup, manually.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-17 15:31:57 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:

Description Sadique Puthen 2020-09-02 15:42:11 UTC
Description of problem:

TLS-E on pre-provisioned nodes fail with:


TASK [ipaclient : Install - IPA client test] ***********************************
Tuesday 01 September 2020  03:01:10 -0400 (0:00:00.189)       0:12:23.307 ***** 
fatal: [controller-2]: FAILED! => {"changed": false, "msg": "--server cannot be used without providing --domain"}
fatal: [controller-3]: FAILED! => {"changed": false, "msg": "--server cannot be used without providing --domain"}
fatal: [controller-1]: FAILED! => {"changed": false, "msg": "--server cannot be used without providing --domain"}

Sep  1 07:01:11 controller-1 platform-python[46861]: ansible-ipaclient_test Invoked with domain= servers=[''] hostname=controller-1.redhat.local no_ntp=False force_ntpd=False no_nisdomain=False kinit_attempts=5 configure_firefox=False all_ip_addresses=False on_master=False enable_dns_updates=False realm=None ntp_servers=None ntp_pool=None nisdomain=None ca_cert_files=None firefox_dir=None ip_addresses=None

Setting below manually workarounds it.

  IdMServer: <ipa server ip>
  IdMDomain: <ipa domain>

This need a code fix and doc change to document the workaround till the code is fixed.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Ade Lee 2020-09-04 16:23:36 UTC
The pagure linked to is pretty old.  But the log here comes from the ipaclient ansible module.

The problem is probably something in the way that we call things, because even though Sadique did not specify either the Server 
or the Domain, we run into this issue.  It likely has to do with the defaults we use when calling this module.

We need to make sure to omit correctly if there are no values provided.

Comment 18 errata-xmlrpc 2021-03-17 15:31:57 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 16.1.4 director bug fix 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-2021:0817