A small bug, I think, in adding yum repositories

Dan White ygor at comcast.net
Thu Jul 21 15:13:33 UTC 2011


I think I just partially answered my own question:

If I set "keep_updated" to false, I do not get the error.
But it seems to me that there is something missing in the workflow to create the ".origin" in the path.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Dan White <ygor at comcast.net> wrote:
> I made a set of local yum repositories according to <https://access.redhat.com/kb/docs/DOC-35962>
> 
> As an example, 
> reposync --gpgcheck -l -n --repoid=rhel-x86_64-server-5 --download_path=/var/www/localRepo/rhel-x86_64-server-5
> createrepo /var/www/localRepo/rhel-x86_64-server-5
> 
> and create an appropriate /etc/yum.repos.d/local.repo, naming my repo "local-rhel-x86_64-server-5"
> 
> OK, so now I want to roll this into cobbler.
> 
> So I say:
> cobbler repo add --name=local-rhel-x86_64-server-5 --mirror=http://my.server.org/localRepo/rhel-x86_64-server-5 --mirror-locally=false --keep-updated=false
> 
> And then when I say:
> cobbler reposync
> 
> I get this:
> 
> running /usr/bin/wget -q http://my.server.org/localRepo/rhel-x86_64-server-5/repodata/repomd.xml -O /var/www/cobbler/repo_mirror/local-rhel-x86_64-server-5/.origin/repomd.xml
> received on stderr: /var/www/cobbler/repo_mirror/local-rhel-x86_64-server-5/.origin/repomd.xml: No such file or directory.
> 
> And the target directory (/var/www/cobbler/repo_mirror/local-rhel-x86_64-server-5) is empty
> 
> So I say:
> 
> mkdir /var/www/cobbler/repo_mirror/local-rhel-x86_64-server-5/.origin
> 
> and run cobbler reposync again, and get what looks like proper responses and proper contents of the directory.
> 
> So, the question/bug is: Why isn't the ".origin" directory created before trying to wget the file into it ?
> 
> “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler



More information about the cobbler mailing list