[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 19:11:00 UTC 2012


Michael Burns has uploaded a new change for review.

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, 37 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/97/997/1
--
To view, visit http://gerrit.ovirt.org/997
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f9618b432ad592adc41db47605fb2854b7dd860
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list