Hi,
I want to install a DHCP server using autoyast over a network connection.
The dhcp-server section of my control file looks like this:
<?xml version="1.0"?>
<dhcp-server xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" xmlns:xinclude="http://www.w3.org/2001/XInclude">
eth0
<chroot>1</chroot>
1
0
</dhcp-server>
The dhcpd.conf comes from elsewhere, since it is a quite complicated setup
on replicated machines (although YaST2 did quite a good job in translating
the external source into an xml config).
Now, when I install, everything is fine (control file ok, network up and
running...), but the autoconfiguration module for the dhcp server fires up
a message box stating "No network interface found..." and a message that
YaST will stop now. When I hit OK, then autoinstallation continues and
dhcp gets set up properly.
Here is a snippet from y2log, which relates to this part of the
autoinstallation:
2005-06-09 07:32:00 <1> linux(7718) [wfm] Y2WFMComponent.cc(import):637
Y2WFMComponent::import (Sequencer)
2005-06-09 07:32:00 <2> linux(7718) [Parser]
clients/dhcp-server_auto.ycp:89 Warning: 'select ()' is deprecated
2005-06-09 07:32:00 <1> linux(7718) [wfm] Y2CCWFM.cc(createInLevel):153
Parsing finished
2005-06-09 07:32:00 <1> linux(7718) [Interpreter] Call.ycp:144 Calling
YaST client dhcp-server_auto (arguments: ["Import",
$["allowed_interfaces":["eth0"], "chroot":"1", "start_service":"1",
"use_ldap":"0"]])
2005-06-09 07:32:00 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:26
----------------------------------------
2005-06-09 07:32:00 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:27
DhcpServer auto started
2005-06-09 07:32:07 <3> linux(7718) [YCP] Report.ycp:420 Für ein
einwandfreies Funktionieren benötigt
dieser Server mindestens ein konfiguriertes
Netzwerkgerät (neben loopback).
Konfigurieren Sie eines.
YaST wird nun beendet.
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <3> linux(7718) [YCP] TablePopup.ycp:65 Unknown
attribute add_delete_butons
2005-06-09 07:32:07 <1> linux(7718) [wfm] Y2WFMComponent.cc(import):637
Y2WFMComponent::import (Mode)
2005-06-09 07:32:07 <1> linux(7718) [wfm] Y2WFMComponent.cc(import):637
Y2WFMComponent::import (ProductFeatures)
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:143
DhcpServer auto finished
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:144
----------------------------------------
2005-06-09 07:32:07 <1> linux(7718) [Interpreter] Call.ycp:144 Called YaST
client returned: nil
2005-06-09 07:32:07 <2> linux(7718) [Parser]
clients/dhcp-server_auto.ycp:89 Warning: 'select ()' is deprecated
2005-06-09 07:32:07 <1> linux(7718) [wfm] Y2CCWFM.cc(createInLevel):153
Parsing finished
2005-06-09 07:32:07 <1> linux(7718) [Interpreter] Call.ycp:144 Calling
YaST client dhcp-server_auto (arguments: ["Packages"])
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:26
----------------------------------------
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:27
DhcpServer auto started
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:143
DhcpServer auto finished
2005-06-09 07:32:07 <1> linux(7718) [YCP] clients/dhcp-server_auto.ycp:144
----------------------------------------
2005-06-09 07:32:07 <1> linux(7718) [Interpreter] Call.ycp:144 Called YaST
client returned: $["install":["dhcp-server"], "remote":[]]
2
A workaround would be to set the sysconfig variables directly and add the
service start to a <runlevel> section. Any other ideas?
Yours,
--
Volkmar Glauche
-
Department of Neurology volkmar.glauche@uniklinik-freiburg.de
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5310
79106 Freiburg