[et-mgmt-tools] distro add error.

David Mackintosh David.Mackintosh at xdroop.com
Fri Mar 2 19:51:25 UTC 2007


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 at helmsdeep ~]# rpm -qa | grep cobb
cobbler-0.4.2-0
[root at 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 at 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 at helmsdeep ~]# ls "/mnt/kickstart/CentOS-4.3-i386/images/pxeboot/vmlinuz"                                               /mnt/kickstart/CentOS-4.3-i386/images/pxeboot/vmlinuz
[root at helmsdeep ~]# cat /etc/redhat-release
[root at 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

-- 
 /\oo/\
/ /()\ \ David Mackintosh | 
         dave at xdroop.com  | http://www.xdroop.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20070302/b478b927/attachment.sig>


More information about the et-mgmt-tools mailing list