[et-mgmt-tools] cobbler import --mirror error

Michael DeHaan mdehaan at redhat.com
Wed Feb 14 21:59:31 UTC 2007


Michael DeHaan wrote:
> James Fidell wrote:
>> I'm new to cobbler, so it's possible I've missed something obvious.
>> Please point me in the right direction if that's the case.
>>
>> I've rebuild the source RPM for 0.3.9-1 on a Centos 4.4 server and
>> I'm trying to import Fedora Core 6 from a mirror using rsync:
>>
>>   cobbler import
>> --mirror=rsync://rsync.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ 
>>
>> --name=fedoracore6
>>
>> Once the rsync is complete (fairly quick, as I populated most of it from
>> RPMs I'd already downloaded), I get the following messages:
>>
>>   /var/www/cobbler/ks_mirror/fedoracore6
>>   /var/www/cobbler/ks_mirror/fedoracore6/images
>>   /var/www/cobbler/ks_mirror/fedoracore6/images/xen
>>   (distro added)
>>   (profile added)
>>   - looking for comps in /var/www/cobbler/ks_mirror/fedoracore6
>>   Error: groupfile
>> /var/www/cobbler/ks_mirror/fedoracore6/repodata/comps.xml cannot be 
>> found.
>>
>> Followed by a usage message from createrepo.
>>
>> /var/www/cobbler/ks_mirror/fedoracore6/repodata/comps.xml is present
>> however, and readable.
>>
>> It looks possible to me that cobbler is running
>>
>>   createrepo --groupfile
>> /var/www/cobbler/ks_mirror/fedoracore6/repodata/comps.xml
>> /var/www/cobbler/ks_mirror/fedoracore6
>>
>> but then createrepo is prepending the path to fedoracore6 and
>> trying to open
>>
>>
>> /var/www/cobbler/ks_mirror/fedoracore6//var/www/cobbler/ks_mirror/fedoracore6/repodata/comps.xml 
>>
>>
>> Any ideas on how to get this working?  I'm using createrepo-0.4.3-1
>> if that makes a difference.
>>
>> James
>>
>> _______________________________________________
>> et-mgmt-tools mailing list
>> et-mgmt-tools at redhat.com
>> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>>   
> I've noticed this recently as well... I'm wondering if createrepo 
> might have changed somewhat.
>
> I'll look into this and get back to you.
>
> --MPD
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Apologies on being lazy here, though per the manpage...

    mirror

    The addresss of the mirror.  This needs to be either an rsync:// url 
or an ssh location usable with rsync.
    The mirror address should specify an exact repository to mirror -- 
just one architecture
    and just one distribution.  If you have a seperate repo to mirror 
for a different arch, add that
    repo seperately.

    Here's an example of what looks like a good URL:

    rsync://yourmirror.example.com/fedora-linux-core/6/i386 (for rsync 
protocol)
    user at yourmirror.example.com/fedora-linux-core/6/i386  (for SSH)

What I thought was a related problem is just something I'm seeing during 
the unit tests, so that was a bit of wild goose chase.

Your problem is that you didn't rsync enough data, and don't have the 
comps file.    Do an import using the URL format specified in the 
manpage and you should be good to go.   I would suggest cleaning up 
/var/www/cobbler/ks_mirror manually before doing that, just to free up 
the extra space on your drives.

Hope this helps, if not, let me know...

--Michael








More information about the et-mgmt-tools mailing list