Bug 1915460 - Cluster name size might affect installations
Summary: Cluster name size might affect installations
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.6.z
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.7.0
Assignee: Douglas Schilling Landgraf
QA Contact: michal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-12 16:59 UTC by Douglas Schilling Landgraf
Modified: 2021-02-24 15:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:52:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 4537 0 None closed Bug 1915460: ovirt: validate cluster name during install 2021-02-04 06:40:02 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:52:45 UTC

Description Douglas Schilling Landgraf 2021-01-12 16:59:18 UTC
Version:

$ openshift-install version
4.6.z

Platform:
OpenShift on RHV 

Please specify:
* IPI 

What happened?
Installation might fail with long cluster names. We should add a validation to avoid users facing DNS resolution problems.

See also: 

Document Known Issues and Beef Up Validation
https://bugzilla.redhat.com/show_bug.cgi?id=1749816

Size of the hostname was preventing proper DNS resolution of the worker node names
https://bugzilla.redhat.com/show_bug.cgi?id=1915122

Comment 2 Douglas Schilling Landgraf 2021-01-20 21:53:13 UTC
The test I have used:

DEBUG       Generating SSH Key...                  
? SSH Public Key /home/douglas/.ssh/id_rsa.pub
DEBUG       Fetching Base Domain...                
DEBUG         Fetching Platform...                 
DEBUG         Generating Platform...               
? Platform ovirt
DEBUG searching for DataCenters with search filter: status=up 
DEBUG Datacenter:Default                           
DEBUG   cluster:Default                             
? Cluster Default
? Storage domain data
? Network ovirtmgmt
? Internal API virtual IP 192.168.1.80
? Ingress virtual IP 192.168.1.81
DEBUG       Generating Base Domain...              
? Base Domain medogz.ocp4
DEBUG       Fetching Cluster Name...               
DEBUG         Fetching Base Domain...              
DEBUG         Reusing previously-fetched Base Domain 
DEBUG         Fetching Platform...                 
DEBUG         Reusing previously-fetched Platform  
DEBUG       Generating Cluster Name...              [mysuperclusterlongnameshouldbreak]
X Sorry, your reply was invalid: must be no more than 14 characters

^^ here

Comment 3 michal 2021-02-06 19:17:48 UTC
version:
rhv - 4.4.4.7
ocp - 4.7.0-0.nightly-2021-01-31-023653
 
step:
install openshift with long cluster name 

actual:
installation fails with an error that the name should be no more than 14 characters

Comment 6 errata-xmlrpc 2021-02-24 15:52:28 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633


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