[node-patches] Change in ovirt-node[master]: store hostname in /etc/hosts if set manually

mburns at redhat.com mburns at redhat.com
Wed Jan 11 20:40:55 UTC 2012


Michael Burns has submitted this change and it was merged.

Change subject: store hostname in /etc/hosts if set manually
......................................................................


store hostname in /etc/hosts if set manually

Fixes a performance issue that occurs when the hostname is not
resolvable and a configured dns server is unavailable.  All sudo
commands run in the above situation take 30 seconds to complete.

This is because of 6 interations of 5 second timeouts trying to get
to the broken dns server.

The fix is to set the hostname directly in /etc/hosts on the
127.0.0.1 line to ensure that sudo calls work correctly.

rhbz#768491

Change-Id: I0f9618b432ad592adc41db47605fb2854b7dd860
---
M scripts/network.py
M scripts/ovirt-config-setup.py
M scripts/ovirtfunctions.py
3 files changed, 38 insertions(+), 1 deletion(-)

Approvals:
  Michael Burns: Verified; Looks good to me, approved
  Joey Boggs: Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/997
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0f9618b432ad592adc41db47605fb2854b7dd860
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: Joey Boggs <jboggs at redhat.com>
Gerrit-Reviewer: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list