Bug 1915460 - Cluster name size might affect installations
Summary: Cluster name size might affect installations
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.6.z
Hardware: All
OS: Linux
Target Milestone: ---
: 4.7.0
Assignee: Douglas Schilling Landgraf
QA Contact: michal
Depends On:
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:
Last Closed: 2021-02-24 15:52:28 UTC
Target Upstream Version:

Attachments (Terms of Use)

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

$ openshift-install version

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

Size of the hostname was preventing proper DNS resolution of the worker node names

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
? Ingress virtual IP
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
rhv -
ocp - 4.7.0-0.nightly-2021-01-31-023653
install openshift with long cluster name 

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.


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