Bug 1211856 - Ansible installer doesn't work with overlong hostname
Summary: Ansible installer doesn't work with overlong hostname
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Gaoyun Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2015-04-15 06:12 UTC by Gaoyun Pei
Modified: 2016-01-27 19:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-01-27 19:42:35 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0075 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-01-28 00:42:22 UTC

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.


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