[et-mgmt-tools] anaconda crashes with cobbler-generated kickstart-file
Rainer Duffner
rainer at ultra-secure.de
Wed Nov 21 11:49:12 UTC 2007
Hi,
I'm trying out cobbler.
0.6.4-2 is installed (and configured).
I imported the RHEL5.1 repository from the DVD image.
I had it create this kickstartfile:
[root at vmrhel5 syslog]# cat /var/www/cobbler/kickstarts/RHEL5-i386/ks.cfg
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
text
key --skip
# Firewall configuration
firewall --enabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Use network installation
url --url=http://172.16.50.100/cblr/links/RHEL5-i386
# If any cobbler repo definitions were referenced in the kickstart
profile, include them here.
repo --name=RHEL5-i386-5
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/VT
repo --name=RHEL5-i386-3
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/ClusterStorage
repo --name=RHEL5-i386-6
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/Cluster
repo --name=RHEL5-i386-1
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/VT
repo --name=RHEL5-i386-7
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/ClusterStorage
repo --name=RHEL5-i386-4
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/Server
repo --name=RHEL5-i386-2
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/Cluster
repo --name=RHEL5-i386-0
--baseurl=http://172.16.50.100/cobbler/ks_mirror/RHEL5-i386/Server
# Network information
network --bootproto=static --device=eth0 --onboot=on --ip=172.16.50.56
--netmask=255.255.255.0 --gateway=172.16.50.2 --nameserver=172.16.50.2
# Reboot after installation
reboot
#Root password
rootpw --iscrypted yadayadayadayadayadayada.
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System timezone
timezone --utc Europe/Zurich
# Install OS instead of upgrade
install
# Clear the Master Boot Record
zerombr
# Magically figure out how to partition this thing
#SNIPPET::partition_select_normal
# or not
part /boot --fstype ext3 --size=150 --ondisk=sda --asprimary
part swap --fstype swap --size=4096 --ondisk=sda
part pv.01 --fstype ext3 --size=2048 --ondisk=sda
volgroup rootvol pv.01 --pesize=32768
logvol / --vgname=rootvol --name=root --size=1024 --grow
part pv.02 --fstype ext3 --size=4096 --ondisk=sda
volgroup usrvol pv.02 --pesize=32768
logvol /usr --vgname=usrvol --name=usr --size=1024 --grow
part pv.03 --fstype ext3 --size=2048 --grow --ondisk=sda
volgroup varvol pv.03 --pesize=32768
logvol /var --vgname=varvol --name=var --size=1024 --grow
part pv.04 --fstype ext3 --size=4096 --ondisk=sda
volgroup varlogvol pv.04 --pesize=32768
logvol /var/log --vgname=varlogvol --name=varlog --size=1024 --grow
%packages
#-s390utils
#-bluez-bluefw
#-bluez-hcidump
#-bluez-libs
#-bluez-utils
#-bluez-gnome
#-bridge-utils
#-dhclient
#-dhcpv6_client
#-irda-utils
#-pcmciautils
#-rp-pppoe
#-sendmail
#-mutt
#-fetchmail
#-mdadm
#-wireless-tools
#-rhpl
#-NetworkManager
#lvm2
#grub
#e2fsprogs
#compat-libstdc++-296
#compat-libstdc++-33
#elinks
#ntp
#postfix
#vim-common
#vim-enhanced
%post
wget http://172.16.50.100/cblr/watcher.py?profile_done=RHEL5-i386 -b
wget http://172.16.50.100/cobbler/kickstarts/RHEL5-i386/ks.cfg -O
/root/cobbler.ks
****
However, anaconda crashes after resolving the packages.
Error in anaconda.log says:
...
17:38:42 DEBUG : Matched cups-libs - 1:1.2.4-11.14.el5.i386 to require
for libcupsimage.so.2
17:38:42 DEBUG : Matched libXxf86vm - 1.0.1-3.1.i386 to require for
libXxf86vm.so.1
17:38:42 DEBUG : Matched libXxf86vm - 1.0.1-3.1.i386 to require for
libXxf86vm.so.1
17:38:42 DEBUG : Matched libXxf86vm - 1.0.1-3.1.i386 to require for
libXxf86vm.so.1
17:38:42 INFO : adding libXxf86vm for libXxf86vm.so.1, required by
mesa-libGL
17:38:42 DEBUG : Matched libdrm - 2.0.2-1.1.i386 to require for libdrm.so.2
17:38:42 DEBUG : Matched libdrm - 2.0.2-1.1.i386 to require for libdrm.so.2
17:38:42 DEBUG : Matched libdrm - 2.0.2-1.1.i386 to require for libdrm.so.2
17:38:42 INFO : adding libdrm for libdrm.so.2, required by mesa-libGL
17:38:43 INFO : Running kickstart %%traceback script(s)
17:38:43 INFO : All kickstart %%traceback script(s) have been run
17:38:43 CRITICAL: Traceback (most recent call first):
File "/usr/lib/python2.4/site-packages/yum/packages.py", line 35, in
comparePoEVR
(e2, v2, r2) = (po2.epoch, po2.ver, po2.rel)
File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in
__eq__
if comparePoEVR(self, other) == 0 and self.arch == other.arch and
self.name == other.name:
File "/usr/lib/yum-plugins/fedorakmod.py", line 151, in resolveVersions
elif sameName == None:
File "/usr/lib/yum-plugins/fedorakmod.py", line 222, in installAllKmods
rAvaModules = resolveVersions(avaModules)
File "/usr/lib/yum-plugins/fedorakmod.py", line 276, in postresolve_hook
newKernels + installedKernels)
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 442, in
buildTransaction
self.plugins.run('postresolve', rescode=rescode, restring=restring)
File "/usr/lib/anaconda/yuminstall.py", line 1267, in doPostSelection
(code, msgs) = self.ayum.buildTransaction()
File "/usr/lib/anaconda/backend.py", line 177, in doPostSelection
return anaconda.backend.doPostSelection(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 201, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 124, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 223, in currentStep
self.gotoNext()
File "/usr/lib/anaconda/text.py", line 539, in run
(step, instance) = anaconda.dispatch.currentStep()
File "/usr/bin/anaconda", line 982, in ?
anaconda.intf.run(anaconda)
AttributeError: 'NoneType' object has no attribute 'epoch'
17:38:43 INFO : in run, screen = <snack.SnackScreen instance at
0xb7e20dac>
What is wrong here?
Best Regads,
Rainer
More information about the et-mgmt-tools
mailing list