Hello Folks,

I am still new to cobbler but finding it to be very powerful and am beginning to get a feel for things. However I have a couple of problems WRT cobbler not being able to import multiple iso images for a single distro. My apologies if this has already been dealt with in the past.

So what is he on about? Here at HP, I have a setup using "mrepo" which manages the mounting of the various RHEL, SLES and Debian versions that we have in-house to provide deployment/install trees for our lab.

For simplicity and compatibility reasons, I am not currently going to transfer all of these mounted iso to cobbler's management but use cobbler's import and --available-as options instead. For info, I am running cobbler 1.6.4 on Rhel5.3 x86_64.

This works like a treat for Rhel5 where mrepo mounts a single DVD iso. However, this fails apart when it comes to older versions of Rhel4 where I only have access to CD iso images. So my mrepo tree looks like the following:

# ll /var/www/mrepo/*rhel4-U4-es-i386*/

drwxr-xr-x 2 root root   4096 Jan 22 10:41 base
*drwxrwsr-x 6 root root  18432 Aug  3  2006 disc1
drwxrwsr-x 3 root root   2048 Aug  3  2006 disc2
drwxrwsr-x 3 root root   2048 Aug  3  2006 disc3
drwxrwsr-x 3 root root   2048 Aug  3  2006 disc4
drwxrwsr-x 3 root root   2048 Aug  3  2006 disc5*
lrwxrwxrwx 1 root root 50 Feb 28 2007 HEADER.shtml -> ../../../../usr/share/mrepo/html/HEADER.repo.shtml
drwxr-xr-x 2 root root   4096 Apr 26  2007 iso
lrwxrwxrwx 1 root root 50 Feb 28 2007 README.shtml -> ../../../../usr/share/mrepo/html/README.repo.shtml
drwxr-xr-x 4 root root  94208 May 12 16:30 RPMS.os

And cobbler hickups here:

# cobbler import --path=/var/www/mrepo/rhel4-U4-es-i386/ --name=rhel4.4-es \
 --arch=i386 --available-as=http://my.host.com/mrepo/rhel4-U4-es-i386/
---------------- (adding distros)
- found content (breed=redhat) at /var/www/mrepo/rhel4-U4-es-i386/disc1/images/pxeboot - architectures found at /var/www/mrepo/rhel4-U4-es-i386/disc1/RedHat/RPMS: [] Given arch (i386) not found on imported tree /var/www/mrepo/rhel4-U4-es-i386/disc1/RedHat/RPMS


So my guess for the first response that I will get back from the list is that cobbler only supports importing from a single mounted DVD iso image, true? The code in action_import.py seems to support this. Will cobbler ever support importing from multiple iso for a given distro? Should I begin taking a shot at this?

I hacked the action_import.py code a little to uncomment the additional traces but was surprised that it did not take the passed --arch=i386 option as gospel. This started me on the journey of why isn't the arch being used or correctly identified.

I saw that the .discinfo file is used to extract a timestamp, so I was wondering why couldn't that also be used to extract the arch info for an iso. On Rhel5 and Fedora 6+ you also have the .treeinfo file which could be parsed by ConfigParser. The tree.py module from the snake project could of use here and does that already.

https://fedorahosted.org/snake/browser/snake/tree.py

Could some of the kind souls on the list give me a pointer or two on where to begin my journey.

Many thanks in advance,

Gareth

--


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to