Bug 1838660 - OCPRHV-123: RFE: Installer should check if FQDN resolves before continuing the installation
Summary: OCPRHV-123: RFE: Installer should check if FQDN resolves before continuing th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.6.0
Assignee: Douglas Schilling Landgraf
QA Contact: Jan Zmeskal
URL:
Whiteboard:
Depends On: OCPRHV-176 1850723
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-21 14:17 UTC by Douglas Schilling Landgraf
Modified: 2020-10-27 16:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:00:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 3661 0 None closed ovirt: add checkURLResponse() for credentials 2020-10-31 19:12:41 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:00:42 UTC

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


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