Commit Graph

417 Commits

Author SHA1 Message Date
Kevin Fenzi
d1c3d4496a buildhw-a64: override max tasks on aarch64 builders. See ticket 12090
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-29 14:15:21 -07:00
Kevin Fenzi
84b71edf51 koji_builder: try telling dnf to download filelists in prod
This sort of seemed to work in staging (although there is some issue
with staging koji).

So, lets try it in production. It will make all the boostrap repo regens
a little slower, but it should get epel8 back working hopefully for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-13 11:04:47 -07:00
Kevin Fenzi
28d03c6145 koji_builder / staging / mock site defaults: try adding option for fileslists for epel8
lets try setting the opt to download filelists for the bootstrap chroot.
This is needed for epel8 because the deps for dnf need to resolve
/usr/libexec/platform-python and cannot due to f40 dnf not downloading
filelists by default anymore.

This will affect all bootstrap chroot creation, but it seems the
simpilest solution without changes in koji.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-13 10:26:50 -07:00
Kevin Fenzi
c84b99223c osbs: raise a glass for it's service
This removes osbs and allmost all it's associated playbooks and files.

It served long and well, but we no longer need it.
flatpaks are building with a koji-flatpak plugin.
base/minimal/toolbox containers are building with kiwi.
We aren't building any other containers right now, and we did they could
be added to kiwi.

This is the end of an era... I look with nostolga on
ansible-ansible-openshift-ansible (a role to setup ansible on a control
host and run it from our ansible).

Good bye osbs!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-28 12:52:07 -07:00
Kevin Fenzi
4a6cb460ca buildvm_s390x in boston: retire
We have moved over to the rdu mainframe, drop all the bos kvm hosts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-27 08:33:41 -08:00
Kevin Fenzi
bafa98897a kojid / koji_hub: enable kiwi plugin
We need to still setup a bug tag and target for this (which needs old
mock chroot) and a group, but this enables the plugin and allows us to
download blueprints.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-21 13:03:10 -08:00
Kevin Fenzi
334219e706 buildvm-s390x: move rest of old zvm builders to rdu and kvm
We want to move (well, really re-install) all these over on the new lpar
in rdu. This will have much higher stats and be in general faster by
both network and cpu. Hopefully all these will replace all the old
boston ones.

We may need to break these up some more into smaller vm's if the number
isn't able to keep up ok. We can adjust after things are all working.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-21 09:51:24 -08:00
Kevin Fenzi
7ecb1b1895 buildvm-s390: fix missing host in statement
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-20 18:33:30 -08:00
Kevin Fenzi
1c4408ebe5 buildvm-s390x-14: move to rdu and setup as new varnish cache
Lets move this vm over to rdu, and set it up as a new varnish cache.
This way we can test 01 doing builds before moving others.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-20 17:38:34 -08:00
Kevin Fenzi
584101ce0e koji / staging: enable kiwi
First cut at enabling kiwi plugins

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-15 15:17:29 -08:00
Kevin Fenzi
456ddc8658 koji_builder: switch sleeptime back to default
Since the database is pretty happy now, lets return this to normal and
see how it does.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-07 15:52:08 -08:00
Kevin Fenzi
2159c95c39 koji_builder: fix misleading task name
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-07 11:45:37 -08:00
Kevin Fenzi
a70e2c8fa8 kojid / staging: just enable osbuild on all
Just enable the osbuild plugin on all the hosts, and we will narrow
things down with the channel/policy setup.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-02-06 12:38:42 -08:00
Pavel Raiskup
5c9b80dd76 koji-builder: don't call 'dnf5 group' with --allowerasing
https://fedoraproject.org/wiki/Changes/BuildWithDNF5
2024-01-15 20:46:47 +01:00
Kevin Fenzi
4581d1f7c4 koji_builder: adjust osbuild api job to run in stg also
Right now we just run the cron to update osbuildapi ip on buildhw-x86 in
prod, but we need to run it on the osbuild channel builders in staging
too. Fixes ticket 11575.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-16 14:18:53 -08:00
Kevin Fenzi
292db92153 koji_builder / buildhw-a64: try and get core dumps another way
We tried to override the machine scope, but that didn't work in this
case, so instead lets tell mock to pass a new core limit to
systemd-nspawn and see if that gets us cores.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-14 10:53:53 -08:00
Kevin Fenzi
c6d175f414 koji_builder: try and allow coredumps on buildhw-a64 builders
We want to get core dumps from these builders in order to try and track
down livemedia failures in python with SIGILL.
https://bugzilla.redhat.com/show_bug.cgi?id=2247319
We just enable this on those builders for now and we set it so it is the
limit for the systemd-nspawn containers that mock uses.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-03 16:41:59 +00:00
Kevin Fenzi
202cffc5ff koji_builder: drop local site config to add /dev/fuse
We added local site config to make sure there was a /dev/fuse in the
mock nspawn container in order to get ostree oci image building working
correctly. Now in mock 5.x, /dev/fuse is automatically setup/added, so
we need to drop our local config so it doesn't conflict with the
internal upstream version now.

See: https://github.com/rpm-software-management/mock/issues/1188

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-09-26 15:14:03 -07:00
Kevin Fenzi
6f48779818 koji_builder: switch to 30s sleep time
Right now builders are checking in every 20s, but that puts a lot of
load on the db server. Having them check in every 30s should ease that
some. Might increase it higher as well.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-09-20 09:31:39 -07:00
Owen W. Taylor
aaec95b064 Enable koji-flatpak on production
Enable the plugin on production, not just on staging.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2023-08-17 01:49:25 +00:00
Kevin Fenzi
53d5299895 koji_builder: disable bootstrap images in mock for the time being
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-14 18:05:30 -07:00
Kevin Fenzi
5493dd255b flatpak / kojid plugin: use docker:// for registry
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-14 17:28:23 -07:00
Owen W. Taylor
f3c44a3ca3 Enable koji-flatpak plugin for staging
Just for staging for now:
 - enable 'podman-login' role for the buildvm group, so built Flatpaks
   can be pushed to the skopeo registry.
 - add the koji-flatpak hub plugin to koji_hub role
 - add the koji-flatpak builder plugin to the koji_builder role
   and configure it.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2023-08-14 19:27:31 +00:00
Kevin Fenzi
2a442cf7a7 koji_builder: increase stats on oz
Lets increase stats for oz and see if that decreases compose time a bit.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-13 10:56:35 -07:00
Kevin Fenzi
9e98f4c0de koji_builder / runroot: Also add bind mount to nspwan args
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-21 09:57:43 -07:00
Kevin Fenzi
7c10f88b02 koji_builder / runroot: set this mount at the mock level on compose channel hosts only
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-21 09:46:08 -07:00
Kevin Fenzi
8735931424 kojibuilder / runroot: revert fuse attempts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-21 09:42:33 -07:00
Kevin Fenzi
f94a4d1a8f koji_builder / runroot: try no options here
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-21 09:34:47 -07:00
Kevin Fenzi
f4e8a921a6 koji_builder: add /dev/fuse mount to runroots
ostree unified composes need /dev/fuse, so allow/add it to runroot
defaults. See https://pagure.io/fedora-infrastructure/issue/11420

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-21 09:05:14 -07: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
Ondřej Budai
a9f0785b5c koji_builder: switch the koji-osbuild token URL to the unified SSO
identity.api.openshift.com was shut down several hours ago. The plugin now
needs to use sso.redhat.com instead.

This commit adjusts the token URL and the script that pokes holes in the
firewall for selected domains.
2023-06-28 15:58:11 +02:00
Kevin Fenzi
10bf453112 koji_builder: dnf5 site changes
We want to keep using dnf4 for koji builds, even after dnf5 is default
in rawhide. Once it's ready to do building as well, we can revert/drop
this. See https://pagure.io/releng/issue/11446

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-13 12:39:22 -07:00
Kevin Fenzi
a36b0101c6 koji_builder: increase sleep time a bit to see if it helps db load
Right now all builders ask the hub for jobs every 15s.
Bump that out a bit to see if it lowers the pressure on the db server.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-10 20:54:28 -07:00
Tomas Kopecek
8d99c12ea4 Move SCM policies to the koji hub
Moving all SCM policies previously defined in each builder to
centralized hub configuration. From now on, any SCM policy change just
needs updating the hub config and reloading it. Builders need nor change
nor reload.

Related: https://pagure.io/fedora-infrastructure/issue/9728

Signed-off-by: Tomas Kopecek <tkopecek@redhat.com>
2023-06-09 16:18:12 +00:00
Kevin Fenzi
0f4026b2a1 koji_builder: test dnf5 changes in staging
With dnf5 becoming default in rawhide, we need to make sure to override
things to use dnf4 for making buildroots for now until dnf5 is ready to
take that on.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-08 13:30:19 -07:00
Kevin Fenzi
f5ca8fcfbf koji: add scm plugin
Add a scm plugin and some policy for it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-04-28 10:24:20 -07: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
389a8434fe koji_builder: fix my broken template
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-12-06 14:57:11 -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
Ondřej Budai
6ba8b69e3e koji_builder: fix the script for updating osbuildapi
The awk helper responsible for extracting IP addresses from the resolvectl
call could handle only 2 of them.
It turns out that api.openshift.com now has 4 A records, therefore this method
became flakey: It added only 2 addresses to the IP set, so if the osbuild
plugin used one of the 2 ignored addresses, the call failed.

This commit solves it by introducing a different method of parsing the
resolvectl output:

We now use an ugly but working sed command that erases everything from the
line except for the IPv4 address. Therefore, I had to quote the echo before
the new sed command so it can get a proper multiline input. Also, I limited
resolvectl to just use IPv4 because the new script cannot handle IPv6
properly. This doesn't cause any harm because api.openshift.com isn't
actually accessible by IPv6. Sigh...
2022-11-28 15:51:28 +00:00
Kevin Fenzi
22fbdca02e Revert "Extend inactivity time to 600s"
This reverts commit c04e153372.
2022-09-16 10:17:35 -07: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
Stephen Gallagher
c04e153372 Extend inactivity time to 600s
It seems that ppc64le and aarch64 are both quite slow during the
ELN Image install. The aarch64 is now finishing most of the time,
but the ppc64le build still times out.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2022-09-14 20:56:46 +00:00
Kevin Fenzi
7763c3c6c3 koji_builder / runroot: set nspawn args on runroot builders to get ostree_installer working
The ostree_installer job needs additional capabilities over the normal
mock systemd-spawn ones. So, add that here and since the
ostree_installer jobs are all runroot jobs we can isolate it to just the
runroot builders.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-14 11:27:42 -07:00
Kevin Fenzi
75ddfcd201 koji_builder: mask systemd-oomd entirely
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-06 17:22:36 -07:00
Kevin Fenzi
688ca64361 koji_builder: add tag for oz.cfg so we can easily change it.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-01 12:38:42 -07:00
Kevin Fenzi
9abc608b4b koji_builder: increase inactivity timeout for oz to 450s
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-01 12:14:14 -07:00
Kevin Fenzi
76fbf76d1b koji_builders: add tag to be able to do just these
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-28 16:40:16 -07:00
Kevin Fenzi
f834a8443c kojibuilder: drop trying to add identity in prod as it is already included with api
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-28 15:53:57 -07:00
Kevin Fenzi
29efa52e94 koji_build: add identity to allowed list, add some comments
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-28 12:33:11 -07:00