Temporary failure in name resolution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Maverick |
Invalid
|
Medium
|
Unassigned |
Bug Description
libvirt-bin is not started correctly.
It tries to resolve the hostname when starting but at that time ther eis no network and no DNS available. It fails with error 6 and starts again immediately. After several attempts init disables the job completely:
Jun 28 14:33:05 natta libvirtd: 14:33:05.885: error : virGetHostname:1838 : internal error getaddrinfo failed for 'natta': Temporary failure in name resolution
Jun 28 14:33:05 natta init: libvirt-bin main process (1332) terminated with status 6
Jun 28 14:33:05 natta init: libvirt-bin main process ended, respawning
Jun 28 14:33:05 natta libvirtd: 14:33:05.892: error : virGetHostname:1838 : internal error getaddrinfo failed for 'natta': Temporary failure in name resolution
Jun 28 14:33:05 natta init: libvirt-bin main process (1338) terminated with status 6
Jun 28 14:33:05 natta init: libvirt-bin respawning too fast, stopped
We have removed the "bogus" hostname entry from /etc/hosts poiting to a 127.0.0.2 address. Our network DNS resolves hostnames to their "real" IP addresses.
If libvirt-bin needs to resolve a hostname to an IP address it should wait for the network when starting.
The libvirt-bin upstart script may need a dependency.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.5-5ubuntu27
ProcVersionSign
Uname: Linux 2.6.32.
NonfreeKernelMo
Architecture: amd64
Date: Mon Jun 28 14:34:41 2010
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
LANGUAGE=
SourcePackage: libvirt
Changed in libvirt (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: patch |
tags: | added: maverick |
Changed in libvirt (Ubuntu Maverick): | |
milestone: | ubuntu-10.10-beta → none |
tags: | added: server-mrs |
Changed in libvirt (Ubuntu Maverick): | |
milestone: | none → maverick-updates |
tags: | removed: server-mrs |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in libvirt (Ubuntu Maverick): | |
status: | Incomplete → Invalid |
After reading bug #595388 I have added the lines:
until host $hostname
do
done
to the pre-start section of libvirt-bin's upstart script. It works for me.