Jeff Schroeder wrote:
On Wed, May 13, 2009 at 9:21 AM, Ronald J. Yacketta
<[email protected]> wrote:
Hello all!

I have a %post script that has been running flawlessly through numerous
cobbler / koan upgrades. Recently, I have noticed that DNS resolution is
failing in 1.6.3 / 4 during %post wget as well as yum updates.

Now, I am not sure if this is a cobbler / anaconda or ? issue.

I am able to hop over to virt con 2 (during koan install) and do a
nslookup on the servers in question without issue, also resolve.conf
looks fine.

post-install.log shows:
installing torque.repo
--2009-04-22 14:39:40--  http://FQDN/setup/torque.repo
Resolving FQDN... failed: Name or service not known.
wget: unable to resolve host address `FQDN
Removing any repo.rpmnew files
Setting up snmpd
--2009-04-22 14:39:40--  http://FQDN/setup/snmpd.cnf
Resolving FQDN... failed: Name or service not known.
wget: unable to resolve host address `FQDN'
Setting up syslog via stunnel to timber
--2009-04-22 14:39:40--  http://FQDN/setup/syslog.cnf
Resolving FQDN... failed: Name or service not known.
wget: unable to resolve host address `FQDN'

.....

[r...@~]# rpm -qa koan
koan-1.6.3-1.fc9.noarch
[r...@~]# rpm -qa cobbler
cobbler-1.6.4-1.fc9.i386

here is a excerpt from the %post section of the ks as well as the script
being ran:

%post
(
echo "Post-Install section begins.."
sleep 15

$SNIPPET('post_install_network_config')

$SNIPPET('post_install_kernel_options')

$SNIPPET('server_check.sh')

$SNIPPET('post_anamon')

echo "Post-Install section ends.."
) 2>&1 | tee  /root/post-install.log


echo "Setting up snmpd"
wget -O /etc/snmp/snmpd.conf http://FQDN/setup/snmpd.cnf
chkconfig snmpd on

echo "Setting up syslog via stunnel to timber"
wget -O /etc/stunnel/syslog.conf http://FQDN/setup/syslog.cnf
wget -O /etc/init.d/syslog-stunnel http://FQDN/setup/syslog-stunnel

chmod 755 /etc/init.d/syslog-stunnel

chkconfig syslog-stunnel on

#enable network
echo "Enabling standard network service"
chkconfig network on

echo "Updating /etc/updatedb"
wget -O /tmp/updatedb_conf.pl http://FQDN/setup/updatedb_conf.pl
chmod 755 /tmp/updatedb_conf.pl
/tmp/updatedb_conf.pl


again, from virt con 2 during install a nslookup of FQDN resolves
without issue.

any thoughts?

Can we get the output of cobbler system report --name FQDN?

It could be the --name-servers-search is wrong. We put static subnet
declarations in our cobbler dhcp.template include the dns servers we
want used for each subnet.

cobbler system report --name=WebProxynew
system                : WebProxynew
profile               : f10-i386
comment               :
created               : Mon May 11 10:40:29 2009
gateway               :
hostname              : WebProxy
image                 :
kernel options        : {}
kernel options post   : {}
kickstart             : <<inherit>>
ks metadata           : {}
mgmt classes          : []
modified              : Wed May 13 12:34:41 2009
name servers          : []
name servers search   : []
netboot enabled?      : True
owners                : ['yacketrj']
redhat mgmt key       : ~
redhat mgmt server    : ~
server                : <<inherit>>
template files        : {}
virt cpus             : 2
virt file size        : 30
virt path             : /mnt/os1
virt ram              : 2047
virt type             : qemu
power type            : apc_snmp
power address         :
power user            :
power password        :
power id              :
interface        : eth0
 mac address    : 00:16:3e:54:bf:6f
 bonding        :
 bonding_master :
 bonding_opts   :
 is static?     : False
 ip address     :
 subnet         :
 static routes  : []
 dns name       :
 dhcp tag       :
 virt bridge    : br9


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to