[node-patches] Change in ovirt-node[ovirt-3.6]: Prepend the hostname in /etc/hosts, don't append

rbarry at redhat.com rbarry at redhat.com
Wed Mar 30 17:48:43 UTC 2016


Ryan Barry has submitted this change and it was merged.

Change subject: Prepend the hostname in /etc/hosts, don't append
......................................................................


Prepend the hostname in /etc/hosts, don't append

hostname -f and socket.getfqdn() are incorrect if the hostname is
at the end of the list in /etc/hosts.

Prepend it instead.

This resolves a bug with deploying a second hosted-engine node

Change-Id: I3b0825ceba7ce4620ec5675122099037efe17d3d
Signed-off-by: Ryan Barry <rbarry at redhat.com>
(cherry picked from commit f1283d5dd111a2574fcf1d2b225269bc7f8448e0)
---
M src/ovirt/node/config/defaults.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ryan Barry: Verified; Looks good to me, approved; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/55487
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3b0825ceba7ce4620ec5675122099037efe17d3d
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the node-patches mailing list