On Thursday 05 Apr 2012 15:29:22 Razi Khaja wrote:
I've seen Jack Peterson's post https://fedorahosted.org/pipermail/cobbler/2012-April/007489.html, regarding adding and reposync'ing an EPEL repository. I am also having errors with 'cobbler reposync'
...
[root@cobbler ~]# cobbler reposync task started: 2012-04-05_092746_reposync task started (id=Reposync, time=Thu Apr 5 09:27:46 2012) hello, reposync run, reposync, run! creating: /var/www/cobbler/repo_mirror/Fedora-15-x86_64-Updates/.origin/Fedora-15-x8 6_64-Updates.repo running: /usr/bin/reposync -l -m -d --config=/var/www/cobbler/repo_mirror/Fedora-15-x86_64-Updates/.origin/Fedo ra-15-x86_64-Updates.repo --repoid=Fedora-15-x86_64-Updates --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: Fedora-15-x86_64-Updates. Please verify its path and try again
...
!!! TASK FAILED !!!
Are you by any chance using a proxy?
I had the same problem just yesterday and it turned out `cobbler reposync` does pass http_proxy variable defined in environment to the `/usr/bin/reposync` command it runs. I.e. in my case I was able to run the `/usr/bin/reposync ...` command with the same args as cobbler directly and it worked.
Not sure why that happens yet, but a workaround seems to be to add http_proxy variable to repo's environment, e.g.:
cobbler repo edit --name=foo --environment="http_proxy=http://bar/"