I'm working on a Cobbler Chef recipe for my company and decided to use Cobbler 2.4.0. I'm running into a problem when trying to do the initial reposync. Our Yum repos are using https and Cobbler seems to want to fail over to rsync+ssh, which won't work.
Is there a way to force reposync to use yumdownloader instead? It's currently a blocker for me. Stack trace below.
# cobbler reposync --only centos6_2-x86_64 task started: 2013-08-12_233011_reposync task started (id=Reposync, time=Mon Aug 12 23:30:11 2013) hello, reposync run, reposync, run! running: rsync -rltDv --copy-unsafe-links --delete-after -e ssh --delete --exclude-from=/etc/cobbler/rsync.excludehttps://yum.*REDACTED*.com/centos/6.2/os/x86_64/ /var/www/cobbler/repo_mirror/centos6_2-x86_64 received on stdout: received on stderr: ssh: Could not resolve hostname https: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
Exception occured: <class 'cobbler.cexceptions.CX'> Exception value: 'cobbler reposync failed' Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 129, 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 173, in sync return self.rsync_sync(repo) File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 247, in rsync_sync utils.die(self.logger,"cobbler reposync failed") File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 137, in die raise CX(msg)
reposync failed, tries left: 0 reposync failed, retry limit reached, skipping running: chown -R root:apache /var/www/cobbler/repo_mirror/centos6_2-x86_64 received on stdout: received on stderr: running: chmod -R 755 /var/www/cobbler/repo_mirror/centos6_2-x86_64 received on stdout: received on stderr: Exception occured: <class 'cobbler.cexceptions.CX'> Exception value: 'overall reposync failed, at least one repo failed to synchronize' Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 129, in die raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'> Exception value: 'overall reposync failed, at least one repo failed to synchronize' 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 248, in runner 3), name=name, nofail=nofail, logger=self.logger) File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 808, in reposync return reposync.run(name) File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 154, in run utils.die(self.logger,"overall reposync failed, at least one repo failed to synchronize") File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 137, in die raise CX(msg)
!!! TASK FAILED !!!
Tucker, This is quite an interesting project,
We are also looking to migrate to a Chef based approach for cobbler. Can you provide a link to a GitHub or some sort of resources? I would love to collaborate with you on this. Regards Brandon
cobbler@lists.fedorahosted.org