David Mackintosh wrote:
I'm probably bending the envelope again but can't figure out how.
What is cobbler trying to tell me I've done wrong?
[root@helmsdeep ~]# rpm -qa | grep cobb
cobbler-0.4.2-0
[root@helmsdeep ~]# rpm -qa | grep cheet
python23-cheetah-0.9.18-1.el4.pyv
python-cheetah-0.9.18-1.el4.pyv
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@helmsdeep ~]# uname -a
Linux helmsdeep 2.6.9-22.EL #1 Mon Sep 19 17:49:49 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
[root@helmsdeep ~]# ls "/mnt/kickstart/CentOS-4.3-i386/images/pxeboot/vmlinuz" /mnt/kickstart/CentOS-4.3-i386/images/pxeboot/vmlinuz
[root@helmsdeep ~]# cat /etc/redhat-release
[root@helmsdeep ~]# cobbler distro add --name="CentOS-4.3-i386" --kernel="/mnt/kickstart/CentOS-4.3-i386/images/pxeboot/vmlinuz" --initrd="/mnt/kickstart/CentOS-4.3-i386/images/pxeboot/initrd.img"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 505, in main
BootCLI(sys.argv).run()
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 102, in run
self.curry_args(self.args[1:], self.commands['toplevel'])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 421, in curry_args
commands[args[0]](args[1:])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 469, in distro
return self.curry_args(args, self.commands['distro'])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 421, in curry_args
commands[args[0]](args[1:])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 386, in distro_edit
return self.apply_args(args,commands,on_ok)
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 409, in apply_args
on_ok()
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 385, in <lambda>
on_ok = lambda: self.api.distros().add(distro, with_copy=self.api.sync_flag)
File "/usr/lib/python2.3/site-packages/cobbler/collection.py", line 97, in add
lite_sync.add_single_distro(ref.name)
File "/usr/lib/python2.3/site-packages/cobbler/action_litesync.py", line 60, in add_single_distro
self.sync.write_distro_file(distro)
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line 733, in write_distro_file
clone.kernel_options = self.hash_to_string(clone.kernel_options)
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line 885, in hash_to_string
buffer = buffer + key + "=" + value + " "
TypeError: cannot concatenate 'str' and 'int' objects
------------------------------------------------------------------------
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
It's a bug. There's a patch regarding this a bit further up on the
mailing list, or you can just upgrade to 0.4.3 and this goes away.
David Lutterkort runs a RHEL4 yum repo that includes cobbler and koan
here -- http://people.redhat.com/~dlutter/yum/rhel4/
--Michael