https://bugzilla.novell.com/show_bug.cgi?id=432560
Summary: Autoyast install sets incomplete hostname (via DHCP)
Product: openSUSE 11.0
Version: Final
Platform: i686
OS/Version: openSUSE 11.0
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: leo@nwfactory.net
QAContact: qa@suse.de
Found By: ---
I configured an entire autoyast installation procedure were the newly installed
machine will get its hostname via DHCP
<networking>
AUTO
<dns>
true
true
</dns>
<interfaces config:type="list">
<interface>
<bootproto>dhcp</bootproto>
<device>eth0</device>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<managed config:type="boolean">false</managed>
<routing>
false
</routing>
</networking>
After the installation has finished the machine seems to have the correct
hostname but it does not seem to be complete.
app1:~ # hostname
app1
app1:~ # hostname -f
hostname: Host name lookup failure
app1:~ # cat /etc/HOSTNAME
linux-0q3j.site
However if I check with dhcpcd-test the dhcp server seems to provide the
correct values
app1:~ # dhcpcd-test eth0
dhcpcd: MAC address = 00:1a:64:32:72:2a
IPADDR=192.168.109.26
NETMASK=255.255.255.0
NETWORK=192.168.109.0
BROADCAST=192.168.109.255
GATEWAY=192.168.109.113
HOSTNAME='app1'
DOMAIN='mydomain.com'
DNS=192.168.110.2
DHCPSID=192.168.109.111
DHCPGIADDR=0.0.0.0
DHCPSIADDR=192.168.109.111
DHCPCHADDR=00:1A:64:32:72:2A
DHCPSHADDR=00:18:8B:85:4B:0C
DHCPSNAME=''
LEASETIME=86400
RENEWALTIME=43200
REBINDTIME=75600
INTERFACE='eth0'
CLASSID='Linux 2.6.16.46-0.12-smp x86_64'
CLIENTID=00:1A:64:32:72:2A
In /var/log/YaST2/y2log I see the following
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:181 Hosts:
$["192.168.109.111":["installptx", "install install.mydomain.com"]]
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:182 Updating /etc/hosts: ->
linux-0q3j.site: []
2008-10-06 13:59:33 <3> linux(4498) [YCP] Hostname.ycp:99 Bad FQ hostname:
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:203 oldhostname: '' : ''
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:239 No IP found, adding
dummy 127.0.0.2
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:242 Hosts:
$["127.0.0.1":["localhost"], "127.0.0.2":["linux-0q3j.site linux-0q3j"],
"192.168.109.111":
["installptx", "install install.mydomain.com"]]
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:83 Writing configuration
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:107
hosts=$["127.0.0.1":["localhost"], "127.0.0.2":["linux-0q3j.site linux-0q3j"],
"192.168.109.111":[
"installptx", "install install.mydomain.com"]]
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:109 127.0.0.1
(["localhost"]:nil)
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:109 127.0.0.2
(["linux-0q3j.site linux-0q3j"]:nil)
2008-10-06 13:59:33 <1> linux(4498) [YCP] Host.ycp:109 192.168.109.111
(["installptx", "install install.mydomain.com"]:nil)
2008-10-06 13:59:33 <1> linux(4498) [YCP] NetworkConfig.ycp:167 Writing
configuration
2008-10-06 13:59:33 <1> linux(4498) [YCP] DNS.ycp:228 Writing configuration
2008-10-06 13:59:33 <1> linux(4498) [YCP] DNS.ycp:234
nameservers=["192.168.110.2"]
2008-10-06 13:59:33 <1> linux(4498) [YCP] DNS.ycp:235 searchlist=[]
2008-10-06 13:59:33 <1> linux(4498) [YCP] DNS.ycp:236 hostname=linux-0q3j
2008-10-06 13:59:33 <1> linux(4498) [YCP] DNS.ycp:237 domain=site
2008-10-06 13:59:53 <1> linux-0q3j(4498) [YCP] network/runtime.ycp:27 Running
SuSEconfig ...
2008-10-06 13:59:54 <3> linux-0q3j(4498) [YCP] Service.ycp:82 Service lwresd
does not exist.
2008-10-06 13:59:54 <1> linux-0q3j(4498) [YCP] Host.ycp:83 Writing
configuration
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] Host.ycp:107
hosts=$["127.0.0.1":["localhost"], "127.0.0.2":["linux-0q3j.site linux-0q3j"],
"192.168.109.1
11":["installptx", "install install.mydomain.com"]]
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] Host.ycp:109 127.0.0.1
(["localhost"]:nil)
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] Host.ycp:109 127.0.0.2
(["linux-0q3j.site linux-0q3j"]:nil)
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] Host.ycp:109 192.168.109.111
(["installptx", "install install.mydomain.com"]:nil)
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] NetworkService.ycp:65 Enabling
service network
2008-10-06 13:59:55 <1> linux-0q3j(4498) [YCP] SuSEFirewall4Network.ycp:39
Writing the firewall configuration
So the 'problem/error' I see is that dhcpcd does not update /etc/HOSTNAME and
/etc/hosts correct. I'm not quite sure if this needs to be assigned to the
autoyast or the dhcpcd maintainer.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.