Commit Graph

58 Commits

Author SHA1 Message Date
Kevin Fenzi
f5089257fd koji_builder: use iptables backend for libvirt
In f41+ libvirt defaults to using nftables if both it and iptables
are installed, but it doesn't seem to work with imagefactory/oz
virt instances and our iptables setup.
So, lets revert back to iptables for now.
We can switch back if we can fix the incompatiblity, switch builders
to nftables, or stop using oz/IF

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-11-22 19:01:31 -08:00
Stephen Smoogen
7d7d0bf0a8 Remove smooge from various aliases
Currently, I (Stephen Smoogen) do not have the time to work on Fedora
system administration items. However, I get a lot of email and people
see my email address in various places to ping me for working on
things. I feel it would be better to remove myself from those places
and let Fedora Infrastructure add someone else to replace me when it
is possible to do so.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-07-17 23:34:18 +00:00
Kevin Fenzi
3325c17951 koji_builder: update service file with upstream improvements
Add reload in so we can reload and have kojid finish any jobs and then
restart and also add a 60s restart backoff time.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-17 12:53:49 -08:00
Kevin Fenzi
b3c2a39e1f koji_builder / osbuild: adjustments for osbuild api scripting
Right now we run a script on all builders once a minute to update the
api/auth ip's for osbuild. This has a number of problems:
* Sometimes osbuild jobs land on s390x builders that have no internet
  access and hang or fail.
* Sometimes the update script hangs or takes a long time to run because
  the builder is heavily loaded with builds, resulting in locking emails
  to sysadmin-main folks.

So, in this commit we:
* make a new koji channel called 'osbuild' with all the buildhw-x86's in
  it. They are usually not too overloaded and there are 16 of them so it
  should be available all the time.
* Leave the cron job on all builders for now in case, but make them only
  update once a day since they won't be getting jobs. If this works out
  we can remove it entirely there.
* Make the buildhw-x86s only update every 5min. This opens a larger
  window for it being wrong, but it's still pretty small and should
  reduce the number of emails for stalled processes we get.

See https://pagure.io/fedora-infrastructure/issue/10982

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-12-06 14:44:03 -08:00
Kevin Fenzi
6ce19b66af osbuildapi-update: only send errors once a day
Right now if a host errors out it can send a vast pile of these.
So, lets use nag-once to avoid floods.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-14 18:32:50 -07:00
Kevin Fenzi
f545ece040 koji_builder: move update to templates for stg/prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-28 11:59:30 -07:00
Kevin Fenzi
1951c7fb1b koji_builder: first cut at a script to update osbuild api ip for builder firewalls
This is a quick, hacked up script that just runs once per minute and
updates the ip addresses for the osbuild koji plugin. The script calls
systemd's resolvectl without cache and puts the ips in a ipset. The
koji_builder firewall has a added rule to check that ipset for outgoing
connections that are allowed.

TODO: add some kind of error checking
TODO: probibly won't work on s390x builders as they can't reach the host
even with open firewalls, but should work for others.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-28 11:29:07 -07:00
Kevin Fenzi
f2fd9f897c koji_builder / kojid: on failure, restart kojid
kojid from time to time hits OOM-killer and is killed, making the
builder basically never checkin or run builds until a manual restart.
Setting this should restart it after such a OOM event and hopefully keep
it processing.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-01 17:58:32 +00:00
Peter Robinson
a3b174ccf7 aarch64: add edk2-arm UEFI firmware for oz/imagefactory/openqa for armhfp on aarch64 processes 2019-02-28 20:59:49 +00:00
Patrick Uiterwijk
1d648eeec8 Add console to aarch64 Guest.py
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-11-04 13:39:35 +01:00
Patrick Uiterwijk
11db5a7d53 Add pre-hotfix oz Guest.py
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-11-04 13:39:11 +01:00
Kevin Fenzi
5dcd66d570 Per https://pagure.io/releng/issue/7326 move the power builders oz config to use just 1 cpu for now.
There is a bug in nested virt with more than 1 cpu that is causing all the images to fail to build.
2018-03-22 21:37:39 +00:00
Dennis Gilmore
76c584e920 remove the no longer needed compose mock configs
We no longer use the old compose mock configs as part of our processes. nuke
them all from being installed

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2017-04-13 19:36:20 +00:00
Kevin Fenzi
2d8adc0f20 Add a kojid.service that overrides the upstream one and sets TasksMax to infinity.
We will want to drop this once upstream has added this.
This hopefully fixes kernel and other package builds that have been failing with anoying fork errors.
2016-09-02 18:12:42 +00:00
Ralph Bean
d5d344e58b Make koji_builders site-defaults.cfg into a template. 2016-08-01 15:05:59 +00:00
Kevin Fenzi
a5f8df8fa2 Add a idmapd.conf file with our domain for all nfs clients. 2016-05-19 16:32:52 +00:00
Kevin Fenzi
714636b6ed Move koji runroot config to a template and add some changes just for staging. Prod is untouched.
Ticket 5253
2016-04-27 17:55:14 +00:00
Dennis Gilmore
0285a24331 set install weak deps to 0, per fpc
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2016-04-07 01:48:08 +00:00
Dennis Gilmore
59f4e2974c fix up the runroot plugin config and install
the koji-builder rpm now installs the runroot plugin into the
builder plugin directory. no longer install our copy and use
upstreams and no longer reset the plugin directory

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2016-03-04 13:39:16 +00:00
Dennis Gilmore
3f820c27dc fix missing = in site-defaults.cfg
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2016-01-26 03:46:17 +00:00
Dennis Gilmore
ab26f6885e set mock site default to tekll dnf to install weak dependecies by default.
this is to ensure we have consistency across arches

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2016-01-26 03:41:21 +00:00
Kevin Fenzi
549d89f306 Actually drop hotfix thats not needed anymore. Argh 2015-10-10 18:49:58 +00:00
Dennis Gilmore
f0fb0726f7 add a oz.cfg and deploy it. need to make some changes from upstream
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-09-16 21:15:20 +00:00
Dennis Gilmore
fbac8974ab update the pungi mock configs to use mocks internel /dev/ it has loop device supporrt in 1.2.12
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-08-28 18:28:21 +00:00
Kevin Fenzi
9891e0e4e2 Add hotfix for koji ssl issues. 2015-08-15 17:20:47 +00:00
Kevin Fenzi
7b9b3db1eb Initial patch for koji ssl issue hotfix 2015-08-15 17:19:42 +00:00
Dennis Gilmore
ce53b9f729 That did not go so well
Revert "attempt to bind mount /dev"

This reverts commit 7607116382.
2015-07-21 20:44:39 +00:00
Dennis Gilmore
7607116382 attempt to bind mount /dev
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-21 20:33:58 +00:00
Dennis Gilmore
1b52669bfc mount /mnt/koji by default
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-21 19:49:50 +00:00
Peter Robinson
56c4f1766d remove redundant ppc-koji.conf, it'll use templates like the rest 2015-07-17 11:27:34 +00:00
Peter Robinson
638f1c6510 add pungi branched/rawhide configs for aarch64, ppc64 and ppc64le 2015-07-17 10:44:40 +00:00
Dennis Gilmore
df167091fe update the rawhide and branched mock configs for f23 branching
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-15 15:35:32 +00:00
Dennis Gilmore
ffb6eb3c51 switch to bind moounting
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-10 01:03:54 +00:00
Dennis Gilmore
23f3174810 fix bug in runroot plugin
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-09 22:50:22 +00:00
Dennis Gilmore
2c1c50a805 runroot config: remove bg option not allowed in plugin
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-09 14:41:07 +00:00
Dennis Gilmore
faa003fc9e runroot config: setup an attempt to define the path option
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-09 14:38:12 +00:00
Dennis Gilmore
846ec4d3be allow /mnt/koji/compose to be mounted rw in the runroot plugin
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-09 02:55:38 +00:00
Ralph Bean
2f393cba9c Copy in the runroot plugin itself. 2015-06-12 18:15:12 +00:00
Ralph Bean
4cc1580eae Collapse our different /etc/koji.conf copies into a template as well. 2015-06-11 18:12:12 +00:00
Ralph Bean
9ea9f16504 Remove file, now rolled into a template. 2015-06-11 18:08:19 +00:00
Ralph Bean
7cdb09e384 Move kojid.conf from a file to a template to simplify stg/prod management. 2015-06-11 17:47:36 +00:00
Ralph Bean
f0590406f0 Typofix. 2015-06-06 21:07:40 +00:00
Ralph Bean
8658470497 Specify pluginpath for the staging koji builders. 2015-06-06 21:04:55 +00:00
Ralph Bean
6c3cfa79f0 Try the kojid runroot plugin in staging. 2015-06-05 22:44:35 +00:00
Dennis Gilmore
8ca6476563 koji builders: disable the ccache plugin in mock
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-05-06 17:36:37 +00:00
Peter Robinson
1fcdf6bc62 add ppc-koji.conf 2015-05-01 11:15:32 +00:00
Dennis Gilmore
50b4fc15a4 update the configs to use the correct buildroot 2015-02-11 10:40:19 +00:00
Dennis Gilmore
894f975e04 use the f22 and not the f21 buildroot in compose chroots 2015-01-29 19:52:36 +00:00
Dennis Gilmore
7e78c7a65f make sure all the cachine is turned off for when we make pungify tasks 2014-12-18 18:09:07 +00:00
Dennis Gilmore
fc1554c967 tell yum to disable tell squid to ignore all caching.
This should enable rawhide composes to cope with the signed rpms being switched in
2014-12-15 16:11:42 +00:00