[et-mgmt-tools] Adding a distribution - where do I put the files?

Msquared cobbler at msquared.id.au
Thu Feb 22 10:41:51 UTC 2007


I'm having some trouble understanding where everything goes under cobbler.

If I use 'cobbler import' or 'cobbler distro add', do I put the files
somewhere in /var/www/cobbler first?

It seems that 'cobbler import' doesn't actually copy files for me, so I'm
not really sure what it does.


The walkthrough at http://wiki.xdroop.com/space/RedHat/kickstart/Cobbler
doesn't seem to help me, as it doesn't tell me what I need to put where.

I've tried to copy the contents of my Fedora 6 DVD to
/var/www/cobbler/kickstarts/Fedora6 and run 'cobbler import
--path=/var/www/cobbler/kickstarts/Fedora6', and then run 'cobbler list',
but the output looks nothing like the output presented on
http://wiki.xdroop.com/space/RedHat/kickstart/Cobbler, instead it looks
like this:

Distros:
  var_www_cobbler_kickstarts_Fedora6_images_pxeboot
  var_www_cobbler_kickstarts_Fedora6_images_xen
Repos:
Profiles:
  var_www_cobbler_kickstarts_Fedora6_images_pxeboot
  var_www_cobbler_kickstarts_Fedora6_images_xen
Systems:


I can't seem to get 'cobbler distro add' to work either, not that I'm
entirely sure what it does.  Where does it get the repository files from?
Do I need to do some preparation of the files from the DVD, or download a
mirror first?

I tried to run cobbler distro add but ended up with a very strange error:

  cobbler distro add --name=myxendistro
--kernel=/var/www/cobbler/kickstarts/Fedora6/images/xen/vmlinuz
--initrd=/var/www/cobbler/kickstarts/Fedora6/images/xen/initrd.img

The result is:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 505, in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 421, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 469, in distro
    return self.curry_args(args, self.commands['distro'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 421, in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 386, in distro_edit
    return self.apply_args(args,commands,on_ok)
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 409, in apply_args
    on_ok()
  File "/usr/lib/python2.4/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.4/site-packages/cobbler/collection.py", line 97, in add
    lite_sync.add_single_distro(ref.name)
  File "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py", line 60, in add_single_distro
    self.sync.write_distro_file(distro)
  File "/usr/lib/python2.4/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.4/site-packages/cobbler/action_sync.py", line 885, in hash_to_string
    buffer = buffer + key + "=" + value + " "
TypeError: cannot concatenate 'str' and 'int' objects


Any ideas?

Regards, Msquared...




More information about the et-mgmt-tools mailing list