A small bug, I think, in adding yum repositories

Dan White ygor at comcast.net
Thu Jul 21 14:42:45 UTC 2011


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)


More information about the cobbler mailing list