Cobbler: Missing yum-utils

Asked by Sherman Boyd

I'm trying to create a CentOS 5 repository, but it errors out because it is missing the the reposync executable. The question how do I get reposync is this a bug? Should'nt reposync come with the cobbler package?

cobbler repo add --mirror=http://centos.mirror.netriplex.com/5/updates/x86_64 --name=centos5-x86-64 --arch=x86_64

cobbler reposync
task started: 2011-05-27_101747_reposync
task started (id=Reposync, time=Fri May 27 10:17:47 2011)
hello, reposync
run, reposync, run!
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'no /usr/bin/reposync found, please install yum-utils'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/utils.py", line 123, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'no /usr/bin/reposync found, please install yum-utils'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/action_reposync.py", line 119, in run
    self.sync(repo)
   File "/usr/lib/python2.7/dist-packages/cobbler/action_reposync.py", line 150, in sync
    return self.yum_sync(repo)
   File "/usr/lib/python2.7/dist-packages/cobbler/action_reposync.py", line 326, in yum_sync
    utils.die(self.logger,"no /usr/bin/reposync found, please install yum-utils")
   File "/usr/lib/python2.7/dist-packages/cobbler/utils.py", line 131, 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.7/dist-packages/cobbler/utils.py", line 123, 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.7/dist-packages/cobbler/remote.py", line 93, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 246, in runner
    name=None, nofail=nofail, logger=self.logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 730, in reposync
    return reposync.run(name)
   File "/usr/lib/python2.7/dist-packages/cobbler/action_reposync.py", line 128, in run
    utils.die(self.logger,"reposync failed, retry limit reached, aborting")
   File "/usr/lib/python2.7/dist-packages/cobbler/utils.py", line 131, in die
    raise CX(msg)

!!! TASK FAILED !!!

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu cobbler Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

I don't understand. You talk of CentOS and Yum in a forum dedicated to Ubuntu. It's not only the right OS, but also Ubuntu use Debian packet system and not RPM of RedHat.

Revision history for this message
Sherman Boyd (sherman-twocell) said :
#2

I'm using a system running Ubuntu & Cobbler to deploy many different flavors of Linux. That's what Cobbler does.

Revision history for this message
Sherman Boyd (sherman-twocell) said :
#3

This is under natty, and Cobbler is a new package. I'd like to be able to create repos for both Ubuntu and Redhat/CentOS.

Revision history for this message
delance (olivier-delance) said :
#4

Only two guys asked question on Cobbler, including you. First one is https://launchpad.net/~koolhead17 , you could try to contact him. You can also get help on ubuntuforums.org . Your question will only interest system administrator, so I'm not sure you will get an answer.

Can you help with this problem?

Provide an answer of your own, or ask Sherman Boyd for more information if necessary.

To post a message you must log in.