setting up a koji stage env
by Mike McLean
There are a number of ways one might use to set up a stage instance of
koji that is based on a production instance. This is one that I have
used on my koji systems.
The two major bits of data that koji contains are:
1) the koji db
2) /mnt/koji
With the db it is pretty easy to make a duplicate db based on a
snapshot. The filesystem can be trickier. If you're lucky, your
filesystem may support writable snapshots, in which case, awesome.
Otherwise, you might like this approach.
Koji has supported the notion of split storage since 1.7.0. There's a
brief summary of how that works here:
https://lists.fedoraproject.org/pipermail/buildsys/2012-May/003892.html
In this staging approach, we mount the production volume READ-ONLY on
the staging systems, and make /mnt/koji/vol/prod on the _stage_ fs point
to that RO mount.
When we restore the database from the production snapshot, we update the
builds to point to the prod volume (seen the attached example script).
The stage koji instance will then know where to find them.
Because the builds have changed locations, the old repodata becomes
invalid, so all the repos need to be regenerated. The attached script
just marks them expired (which should trigger the kojira running in
stage to regen them).
The attached example sql script is based on one that I have used before.
It will need to be adapted to your particular case.
8 years, 10 months
koji gc clean up failed builds?
by Pat Riehecky
I've begun to notice a surprising accumulation of failed build logs our
build system.
Is there a way to get koji gc to find all the failed builds for a given
package (by name, since it isn't successful) and clean up all but the
latest failed build?
I expect that will return an embarrassing amount of disk on my system.....
Pat
--
Pat Riehecky
Scientific Linux developer
Fermi National Accelerator Laboratory
www.fnal.gov
www.scientificlinux.org
8 years, 10 months
koji-devel list
by Mike McLean
https://lists.fedorahosted.org/mailman/listinfo/koji-devel
We now have a new mailing list specifically for Koji development. I see
a few of you joined after I mentioned it in the Koji 2.0 planning email.
This list (buildsys(a)lists.fedoraproject.org) is still a good place to
ask questions, talk about deployment issues, and discuss topics specific
to Fedora's Koji instance. Of course, this list also covers a number of
other build related tools besides Koji.
Development specific emails should go to the new list. In particular,
patches to Koji should now go to koji-devel list for review.
8 years, 10 months