On Tue, Aug 23, 2011 at 5:24 PM, Duffie Cooley <dcooley(a)nicira.com> wrote:
Hey all I am interested in getting debian working on cobbler. I am
happy
to test and answer any questions that I can. I just moved from a CentOS
house to a Debian house and REALLY miss my cobbler setup.
What I have done so far.
I have a debian host running cobbler 2.1.0 from the debian repo. I went
into /usr/lib/python2.7/dist-packages/cobbler and copied all the .py
to .py.orig. Then I uncommented all of the debian specific stuff in
actions-import and codes. Then I pycompile and rerun my import. Now when
I run an import command I get the following output.
root@pxetest:~# cobbler import --path=/mnt/debtest --name=debtest
--breed=debian --arch=x86_64
task started: 2011-08-23_151323_import
task started (id=Media import, time=Tue Aug 23 15:13:23 2011)
Found a debian/ubuntu compatible signature: pool
running: rsync -a
'/mnt/debtest/' /var/www/cobbler/ks_mirror/debtest-x86_64/
--exclude-from=/etc/cobbler/rsync.exclude --quiet
received on stdout:
received on stderr:
adding distros
avoiding symlink loop
avoiding symlink loop
associating repos
associating kickstarts
*** TASK COMPLETE ***
This tells me at least that I have uncommented the stuff correctly as it
recognizes a pool sig. However, I am not seeing any distros repos or
profiles created in cobbler. Cobbler list shows nothing. I am pretty
sure there must be something I am missing somewhere. I can't seem to
find it.
pastebin of actions-import.py
http://nopaste.linux-dev.org/?18227
codes.py
http://nopaste.linux-dev.org/?18228
Thanks for your help.
Something's wrong here, you shouldn't have to uncomment anything, as
we moved imports to a module structure and added full support for
debian/ubuntu distros (newer ones, at least) in 2.1.0. I'd recommend
grabbing the latest from git and trying that out, making sure to
uninstall what you've got on that machine so there are no conflicts.