Hi All,

Have just configured and setup Cobbler on a CentOS5.1 box as an automated 
provisioning system for our Linux infrastructure. We're a RHEL/CentOS shop.

Cobbler works fine, have setup a couple of test kickstarts and the like all 
works nicely, certainly a lot simpler than a convoluted mix of scripts and cgis 
to generate kickstarts I used to use :)

Am trying to configure my repos in Cobbler so that it automagically downloads 
and manages the updates, etc. Did these steps...

[EMAIL PROTECTED] ~]# cobbler repo add \
--mirror=http://www.mirrorservice.org/sites/mirror.centos.org/5/updates/i386/ \
--name=CentOS5-i386updates
[EMAIL PROTECTED] ~]# cobbler sync
[EMAIL PROTECTED] ~]# cobbler reposync
- creating: /var/www/cobbler/repo_mirror/.origin/CentOS5-i386updates.repo
- /usr/bin/reposync 
--config=/var/www/cobbler/repo_mirror/.origin/CentOS5-i386updates.repo 
--repoid=CentOS5-i386updates --download_path=/var/www/cobbler/repo_mirror -a 
i386
Traceback (most recent call last):
  File "/usr/bin/reposync", line 196, in ?
    main()
  File "/usr/bin/reposync", line 140, in main
    my.doRepoSetup()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 306, in 
doRepoSetup
    repo.setup(self.conf.cache)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 498, in setup
    raise Errors.RepoError, ('Cannot open/read repomd.xml file for repository: 
%s' % self)
yum.Errors.RepoError: Cannot open/read repomd.xml file for repository: 
CentOS5-i386updates
cobbler reposync failed

So it fails :(

If I try a standard /usr/bin/reposync it all works fine and starts downloading 
files quite happily. Equally I can wget the repomd.xml file the script 
complains about quite readily and yum works fine.

Anyone got any ideas??? Other salient details are below anything else required, 
let me know.

[EMAIL PROTECTED] ~]# cobbler repo report
repo             : CentOS5-i386updates
arch             : i386
createrepo_flags : -c cache
keep updated     : True
mirror           : 
http://www.mirrorservice.org/sites/mirror.centos.org/5/updates/i386/
mirror locally   : 1
owners           : ['admin']
priority         : 99
rpm list         :
yum options      : {}

[EMAIL PROTECTED] ~]# uname -a
Linux kvcvs01.ad.kew.org 2.6.18-53.1.21.el5 #1 SMP Tue May 20 09:35:07 EDT 2008 
x86_64 x86_64 x86_64 GNU/Linux

[EMAIL PROTECTED] ~]# python -V
Python 2.4.3

[EMAIL PROTECTED] ~]# rpm -qa | grep cobbler
cobbler-1.0.3-1.kg
(this is an rpm I rebuilt for our own internal repo from the cobbler srpm, as 
the EPEL version is still a bit behind).

Thanks

Dan

--
Dan Hawker
[EMAIL PROTECTED]
UNIX & Comms
Royal Botanic Gardens - Kew
--

"I love deadlines. I like the whooshing sound they make as they fly by" - 
Douglas Adams

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

Reply via email to