On Mon, May 21, 2012 at 6:16 AM,  <[email protected]> wrote:
> Hello everyone
> I setup a repo and have choosen mirror locally false. If I execute cobbler
> reposync I got an error message "No such file or directory" because
> directory .origin is missing.
>
> [root@cobbler ~]# cobbler repo report --name=rhel62-x86_64-updates
> Name                           : rhel62-x86_64-updates
> Arch                           : x86_64
> Breed                          : yum
> Comment                        : RHEL 6 Update 2
> Createrepo Flags               : <<inherit>>
> Environment Variables          : {}
> Keep Updated                   : True
> Mirror                         :
> http://cobbler/rhel/rhel6server-x86_64/RPMS.updates_62
> Mirror locally                 : False
> Owners                         : ['admin']
> Priority                       : 99
> RPM List                       : []
> Yum Options                    : {}
>
> [root@cobbler ~]# cobbler reposync
> task started: 2012-05-21_130356_reposync
> task started (id=Reposync, time=Mon May 21 13:03:56 2012)
> hello, reposync
> run, reposync, run!
> running: /usr/bin/wget -q
> http://cobbler/rhel/rhel6server-x86_64/RPMS.updates_62/repodata/repomd.xml
> -O /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/.origin/repomd.xml
> received on stdout:
> received on stderr:
> /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/.origin/repomd.xml: No
> such file or directory

While this is being reported on stderr, it may not be a critical
error. The command does not appear to fail (rc=0, otherwise it would
retry and/or print a stack dump after failing X tries). It may not
need that .origin directory, however if it does that would be more of
a createrepo/reposync issue than a cobbler problem.

> creating: /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/config.repo
> running: chown -R root:apache
> /var/www/cobbler/repo_mirror/rhel62-x86_64-updates
> received on stdout:
> received on stderr:

Here's the important part, it creates a file for this repo. If you
look at that file (or if you look at a rendered kickstart using the
"getks" command), you should see the resultant lines in the kickstart
using this repo. You should verify there if it looks ok, i.e. the base
url matches the url you supplied above when creating the repo.

> running: chmod -R 755 /var/www/cobbler/repo_mirror/rhel62-x86_64-updates
> received on stdout:
> received on stderr:
> rhel63-x86_64-updates is set to not be updated
> *** TASK COMPLETE ***
>
> If I create .origin by hand some repo-files like repomd.xml will be created
> but I can't use the Repo during kickstart because it doesn't seem to be
> available.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to