FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 11-06-2008, 09:55 AM
Dan Horák
 
Default caching packages on koji builder

Mike McLean p*še v St 05. 11. 2008 v 15:14 -0500:
> Mike McLean wrote:
> > This behavior is controlled by kojid options. If you specify the
> > 'topurl' option for kojid, then the mock configs it generates will use
> > an http:// url to point to the repo. Otherwise it will use a file:// url
> > (using the value of the 'topdir' option, which defaults to /mnt/koji).
> >
> > Also, the use of a file:// url doesn't have to mean nfs. You could
> > theoretically use another shared file system.
>
> So this is true, but misleading. The interaction of the topurl and
> pkgurl options in kojid is complicated.
>
> The topurl/topdir options determine how kojid will locate the repo.
> However, with the current code, the repodata will contain url references
> for the component rpms. That url is determined when the repo is
> generated. This happens during a createrepo task on a builder, and the
> pkgurl (not topurl) option is used.
>
> So..
> - repodata location determined by topurl/topdir options
> - rpm location determined by pkgurl option on the builder that created
> the repo.
>
> I admit, this is a bit of a mess.

And I am lost there :-)

Squid runs, url_rewriter works and I am still unable to cache the
packages. What value is placed into the mock generated yum config?


Dan


--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 
Old 11-06-2008, 01:28 PM
Mike McLean
 
Default caching packages on koji builder

Dan Horák wrote:

Mike McLean p*še v St 05. 11. 2008 v 15:14 -0500:

So..
- repodata location determined by topurl/topdir options
- rpm location determined by pkgurl option on the builder that created
the repo.


I admit, this is a bit of a mess.


And I am lost there :-)

Squid runs, url_rewriter works and I am still unable to cache the
packages. What value is placed into the mock generated yum config?


Look at the repo in question, use zless to view primary.xml.gz. Search
for 'base=' -- the value of this field is determined by the pkgurl
setting of the builder that created the repo.


Regardless of how yum gets the repo, once it sees this in the metadata,
it will use this base url to download the rpms. You need to make sure
that this hits your squid server instead of the remote http server.
There are a couple ways you might do this.


1 - change the pkgurl setting on all your builders and regenerate all
your repos.


2 - leave pkgurl as-is, but use an iptables redirect on your builders to
map it to the local squid proxy.


--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 

Thread Tools




All times are GMT. The time now is 12:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org