Bug 1211856

Summary: Ansible installer doesn't work with overlong hostname
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.0.0CC: bleanhar, cryan, dmcphers, jdetiber, jokerman, libra-bugs, libra-onpremise-devel, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-27 19:42:35 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:

Comment 3 Gaoyun Pei 2015-04-16 04:43:38 UTC
@Jason, thanks for the detailed explanation.

After configuring my ansible hosts file with openshift_hostname and openshift_public_hostname fields, it works pretty well.

Update the bug summary to track the problem mentioned in step 4.

Comment 4 Jason DeTiberus 2015-11-18 20:11:58 UTC
Once https://github.com/openshift/openshift-ansible/pull/924 is merged, we will no longer set the hostname on systems and will not be limited by the hostname length of hostnamed anymore.

Comment 5 Gaoyun Pei 2015-11-19 09:18:10 UTC
Got the same error as https://bugzilla.redhat.com/show_bug.cgi?id=1275395#c4 mentioned when testing with this PR.

Comment 6 Brenton Leanhardt 2016-01-12 16:31:37 UTC
Now that https://github.com/openshift/openshift-ansible/pull/1165 is merged would you mind testing this to see if the error message for excessively long names is improved?

Comment 7 Gaoyun Pei 2016-01-13 06:36:32 UTC
Verify with the latest openshift-ansible master branch.

When installing with hostname more than 64 characters, ansible would abort the installation and prompt that the hostname length is invalid as below:

TASK: [openshift_common | fail ] ********************************************** 
failed: [10.66.x.x] => {"failed": true}
msg: openshift_hostname must be 64 characters or less
failed: [10.66.x.x] => {"failed": true}
msg: openshift_hostname must be 64 characters or less

Comment 9 errata-xmlrpc 2016-01-27 19:42:35 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, 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-2016:0075