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

rbarry at redhat.com rbarry at redhat.com
Wed Mar 30 14:15:00 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>
---
M src/ovirt/node/config/defaults.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Fabian Deutsch: Looks good to me, but someone else must approve
  Ryan Barry: Verified; Looks good to me, approved; Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3b0825ceba7ce4620ec5675122099037efe17d3d
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand 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