Bug 1838660

Summary: OCPRHV-123: RFE: Installer should check if FQDN resolves before continuing the installation
Product: OpenShift Container Platform Reporter: Douglas Schilling Landgraf <dougsland>
Component: InstallerAssignee: Douglas Schilling Landgraf <dougsland>
Installer sub component: OpenShift on RHV QA Contact: Jan Zmeskal <jzmeskal>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: medium CC: gzaidman, hpopal
Version: unspecified   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:00:22 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: 1846366, 1850723    
Bug Blocks:    

Description Douglas Schilling Landgraf 2020-05-21 14:17:17 UTC
Description of problem:

If FQDN provided by user not reachable the installer stop and not continuing asking more questions regarding the environment.


Today:
-------
$ ./bin/openshift-install create cluster --log-level=debug
? Platform ovirt
? oVirt API endpoint URL https://abcd.yzt
? Is the oVirt CA trusted locally? [? for help] (Y/n) 


Expected results:
----------------------
$ ./bin/openshift-install create cluster --log-level=debug
? Platform ovirt
? oVirt API endpoint URL https://abcd.yzt
DEBUG Checking URL Response: https://abcd.yzt      
FATAL Get "https://abcd.yzt": dial tcp: lookup abcd.yzt on 127.0.0.1:53: no such host 
[douglas@localhost installer]$

Comment 2 Jan Zmeskal 2020-06-11 12:59:33 UTC
Attempted verification with: openshift-install-linux-4.6.0-0.nightly-2020-06-11-041445

Failed verification:
[root@ocp-qe-1 secondary]# ./openshift-install create install-config
? SSH Public Key /root/.ssh/id_rsa.pub
? Platform ovirt
? Engine FQDN[:PORT] ocp-qe-1.qa.lab.tlv.redhat.com
? Engine username admin@internal
FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": you must pass a pointer as the target of a Write operation 

The same happens if I add port after the FQDN. Also, it seems as thought the PR referenced in this BZ was never merged. Could you please provide the actual PR?

Comment 3 Douglas Schilling Landgraf 2020-06-11 13:19:35 UTC
Thanks Jan. I was able to reproduce this as well, added the "Depends on" bug.

Comment 6 Jan Zmeskal 2020-06-19 08:17:54 UTC
Verified with: openshift-install-linux-4.6.0-0.nightly-2020-06-19-020835

Installer only proceeds when it gets FQDN/port combination that can be resolved. So the original intent of this BZ has been fulfilled. However, I ran into two cases, where this causes a little strange user experience and reported them here:
Bug 1848885 - OCPRHV-205: Exit installation once we receive 404 when trying to contact engine 
Bug 1848901 - OCPRHV-206: When trying to resolve engine FQDN, let's try to strip it from both ends

Comment 8 errata-xmlrpc 2020-10-27 16:00:22 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 (OpenShift Container Platform 4.6 GA Images), 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:4196