Re: [et-mgmt-tools] Using cobbler to mirror repos like updates/extras -- further information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michael,

I went with the repo mirroring route:

[root@hemops2 ~]# cobbler import --name=centos-4.4
--mirror=rsync://rsync.mirrorservice.org/mirror.centos.org/4.4/os/i386/CentOS/

This went fine.

Adding the distro, however, gives me some trouble:

[root@hemops2 ~]# cobbler distro add --name=centos4.4
--kernel=/var/www/cobbler/repo_mirror/centos-4.4-i386/images/pxeboot/vmlinuz
--initrd=/var/www/cobbler/repo_mirror/centos-4.4-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

I'm not sure what to make of the above.  Any help to get this working
is greatly appreciated.

-D


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux