On 6/29/12 3:10 PM, James Cammarata wrote:
On Fri, Jun 29, 2012 at 1:54 PM, Bob Cochran<bcochra...@verizon.net> wrote:
Greetings,
I am trying to set up cobbler repos for Fedora 17 using the instructions
provided here:
https://github.com/cobbler/cobbler/wiki/Manage%20yum%20repos
I am attaching the output of 'cobbler report' so you can see my repo
definitions. See file mycobbler.report.txt, attached.
When I attempt to do a 'cobbler reposync' I get the error message listed in
file 'mycobbler.reposync.error.txt', also attached.
I then do a 'cobbler repo edit' to change the name of the URL string so that
'http://' is prepended. See file mycobbler.report2.txt, also attached.
After editing the URL string, I get the error message text you see here, in
file 'mycobbler.reposync.error2.txt', also attached.
It would seem, based on this error, that the issue is the remote repo
(from your second error output):
Exception value: Damaged repomd.xml file
So it looks like you're doing it right, it's just that the remote repo
has an error.
I tried changing mirrors:
Name : f17-x86_64-everything
Arch : x86_64
Breed : yum
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror :
http://fedora.mirrors.tds.net/pub/fedora/releases/17/Everything/x86_64/os/repodata/
Mirror locally : True
Owners : ['admin']
Priority : 99
RPM List : []
Yum Options : {}
Name : f17-x86_64-updates
Arch : x86_64
Breed : yum
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror :
http://mirror.umd.edu/fedora/linux/updates/17/x86_64/repodata/
Mirror locally : True
Owners : ['admin']
Priority : 99
RPM List : []
Yum Options : {}
and then redoing 'cobbler reposync':
[root@cobbler1 ~]# cobbler reposync
task started: 2012-06-29_153656_reposync
task started (id=Reposync, time=Fri Jun 29 15:36:56 2012)
hello, reposync
run, reposync, run!
creating:
/var/www/cobbler/repo_mirror/f17-x86_64-everything/.origin/f17-x86_64-everything.repo
running: /usr/bin/reposync -l -m -d
--config=/var/www/cobbler/repo_mirror/f17-x86_64-everything/.origin/f17-x86_64-everything.repo
--repoid=f17-x86_64-everything
--download_path=/var/www/cobbler/repo_mirror -a x86_64
received on stdout:
received on stderr: Error setting up repositories: Cannot retrieve
repository metadata (repomd.xml) for repository: f17-x86_64-everything.
Please verify its path and try again
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131,
in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py",
line 125, in run
self.sync(repo)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py",
line 169, in sync
return self.yum_sync(repo)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py",
line 402, in yum_sync
utils.die(self.logger,"cobbler reposync failed")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 139,
in die
raise CX(msg)
reposync failed, tries left: 0
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'reposync failed, retry limit reached, aborting'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131,
in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'reposync failed, retry limit reached, aborting'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89,
in run
rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 251,
in runner
name=None, nofail=nofail, logger=self.logger)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 758, in
reposync
return reposync.run(name)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py",
line 147, in run
utils.die(self.logger,"reposync failed, retry limit reached, aborting")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 139,
in die
raise CX(msg)
!!! TASK FAILED !!!
[root@cobbler1 ~]#
I can ping the 'Everything' mirror:
[root@cobbler1 ~]# ping -c 3 fedora.mirrors.tds.net
PING fedora.mirrors.tds.net (204.246.0.137) 56(84) bytes of data.
64 bytes from fedora.mirrors.tds.net (204.246.0.137): icmp_seq=1 ttl=251
time=14.9 ms
64 bytes from fedora.mirrors.tds.net (204.246.0.137): icmp_seq=2 ttl=251
time=14.6 ms
64 bytes from fedora.mirrors.tds.net (204.246.0.137): icmp_seq=3 ttl=251
time=14.4 ms
--- fedora.mirrors.tds.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2016ms
rtt min/avg/max/mdev = 14.429/14.661/14.950/0.257 ms
[root@cobbler1 ~]#
Help much appreciated...hopefully I'm just doing some stupid amateur
mistake thing!
Bob
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler