Bug 1275395 - openshift-ansible currently sets the system hostname unnecessarily
Summary: openshift-ansible currently sets the system hostname unnecessarily
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 19:21 UTC by Jason DeTiberus
Modified: 2016-07-04 00:46 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-17 21:19:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2667 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise bug fix update 2015-12-18 02:18:50 UTC

Description Jason DeTiberus 2015-10-26 19:21:45 UTC
Previously we had to set the system hostname to workaround unconfigurable code paths that would use uname to lookup the system's hostname. 

This should no longer be necessary as we can override all of the necessary hostnames using configuration.

Comment 2 Jason DeTiberus 2015-11-18 20:07:58 UTC
https://github.com/openshift/openshift-ansible/pull/924

Comment 3 Jason DeTiberus 2015-11-18 20:09:50 UTC
We need to make sure that this change doesn't break OSE 3.0.0 deployments as well.

Comment 4 Ma xiaoqiang 2015-11-19 07:33:03 UTC
If the system hostname is not resolved, we can get the error messages in the log

Nov 19 15:26:52 openshift-v3 atomic-openshift-master: E1119 15:26:52.466917   28396 common.go:722] Failed to lookup IP address for node test2.redhat.com: lookup test2.redhat.com: no such host
Nov 19 15:26:52 openshift-v3 atomic-openshift-master: F1119 15:26:52.466973   28396 flatsdn.go:27] SDN initialization failed: lookup test2.redhat.com: no such host

Is it worse to set the system hostname?

Comment 5 Jason DeTiberus 2015-11-19 15:42:57 UTC
Can you provide the following files from the system that threw that error?
- /etc/origin/node/node-config.yaml
- /etc/ansible/facts.d/openshift.fact
- ansible inventory file

Comment 10 Johnny Liu 2015-11-30 05:49:46 UTC
This is breaking QE's auto installation, so raise its priority.

Comment 12 Gaoyun Pei 2015-12-03 06:05:13 UTC
This issue is also blocking the installation of atomic-openshift-installer when setting hostname needed, since there's no way to specify the value of openshift_set_hostname during the interaction. 

Test with:
openshift-ansible-3.0.16-1.git.61.2054960.el7aos.noarch
openshift-ansible-roles-3.0.16-1.git.61.2054960.el7aos.noarch

Comment 13 Brenton Leanhardt 2015-12-03 13:48:53 UTC
Hi Gaoyun,

When you say there is no way to set openshift_set_hostname do you mean using atomic-openshift-installer?  Jason will probably chime in if I'm confused by I think you would would need to set it in your inventory:

https://github.com/openshift/openshift-ansible/pull/967/files#diff-786740a46e25ab5676fd83c2bf6b4197R155

Comment 14 Brenton Leanhardt 2015-12-03 13:53:46 UTC
This should be testable with the latest puddle.

Also, I see now that Comment #12 is indeed referring to atomic-openshift-installer.  I'm removing needinfo.

Comment 15 Brenton Leanhardt 2015-12-03 13:54:24 UTC
To be clear, this bug is for testing the feature by running ansible directly.

Comment 18 Ma xiaoqiang 2015-12-11 02:35:50 UTC
Get the expected result. Move it to VERIFIED.

Comment 20 errata-xmlrpc 2015-12-17 21:19:20 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-2015:2667


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