Commit Graph

468 Commits

Author SHA1 Message Date
Kevin Fenzi
a754144f19 Update infra pagure.io links to forge.fp.o (WIP)
This should update all the references we have to
https://pagure.io/fedora-infrastructure to the
new https://forge.fedoraproject.org/infra/tickets/ area.

Do not merge this before the migration on tuesday.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-20 14:39:40 -08:00
Kevin Fenzi
7917422391 koji_builder / riscv: up jobs on x86 buildvms
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-11 08:44:03 -08:00
Kevin Fenzi
0b3e12e114 koji_builder: install libvirt stack on koji builders
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-02 14:30:17 -07:00
Kevin Fenzi
c7579f7f53 koji_builder: say goodbye to oz and ImageBuilder
They have served us long and well, but now we have osbuild and kiwi and
everything should be moved off ImageBuild. This PR will also need to
actually remove those files and packages when we merge this.
(Or I suppose wait until the next reinstall of builders).

Signed-off-by: Kevin Fenzi kevin@scrye.com
2025-09-17 18:50:39 +00:00
Kevin Fenzi
fd6828d7c8 buildvm-x86-riscv: increase max jobs a bunch
These vm's run tasks like newrepos and tagging, so they can handle a lot
more smaller jobs like that. Increase things to 128 for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-08-12 09:06:29 -07:00
Kevin Fenzi
a75c44d3ff koji_builder: try and fix /mnt/koji link for riscv buildvms
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-07 09:43:58 -07:00
Michal Konecny
bc8d9ab946 [koji_builders] Don't recreate /mnk/fedora_koji
This folder is already created during execution of nfs/client role,
recreating it will just make empty folder.
2025-07-03 22:54:55 +02:00
Nils Philippsen
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
Adam Williamson
75298197ce Remove cisco openh264 repo on all Fedora systems
We used to do this only on builders, but right now it's causing
problems on all hosts during the infra move:

2025-06-30T23:35:32+0000 INFO Serious error - Curl code (28): Timeout was reached for https://kojipkgs.fedoraproject.org/repos-dist/f42-infra/latest/x86_64/repodata/repomd.xml [Connection timed out after 30001 milliseconds]

and we don't actually need this repo for any infra systems, I
don't think. Let's just disable it for every Fedora host.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-30 16:37:54 -07:00
James Antill
9a3b4670bf koji_builder: Replace openh264.repo instead of remove, due to upgrades.
Signed-off-by: James Antill <james@and.org>
2025-06-27 20:06:48 -04:00
James Antill
5d24121a32 koji_builder: Remove openh264 repo, packages are external.
Signed-off-by: James Antill <james@and.org>
2025-06-27 17:52:59 -04:00
James Antill
1d37a90bda koji_builder: Change out edk2-arm for edk2-aarch64
Signed-off-by: James Antill <james@and.org>
2025-06-27 15:54:47 -04:00
Simon de Vlieger
1e777285e6 koji: image-builder for production
Enables the `image-builder` plugin from `koji-image-builder` in the
production environment for both the koji hub, and the koji builder
(kojid).

This is based on the earlier enablement in staging where I've
succesfully tested some builds and it didn't seem to bring down all of
the staging instance.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-04-28 18:58:22 +00:00
Simon de Vlieger
9f15884401 koji: image-builder for staging
Enables the `image-builder` plugin from `koji-image-builder` in the
staging environment for both the koji hub, and the koji builder (kojid).

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-04-23 23:53:51 +00:00
Kevin Fenzi
fc5425c07f koji_builder: add a iptables tag to the osbuildapi scripting
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-19 09:17:09 -07:00
Kevin Fenzi
feb1bf9a97 koji_builder: syntax tweak
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-10 17:53:26 -07:00
James Antill
6af1918415 Conditionalize osbuild*.cron based on osbuild in group_names.
Signed-off-by: James Antill <james@and.org>
2025-04-11 00:33:11 +00:00
James Antill
50d04f6e95 Remove nftables cron and disable service, when using iptables (for backout).
Signed-off-by: James Antill <james@and.org>
2025-04-11 00:33:11 +00:00
James Antill
af90bbb6c5 Nice error for osbuildapi-update-nft.sh and comment explaining issues.
Signed-off-by: James Antill <james@and.org>
2025-04-11 00:29:23 +00:00
Kevin Fenzi
5a44707cf4 koji_builder: install linux-firmware, not kernel-firmware
kernel-firmware is the old provide and it's no longer provided by newer
versions of linux-firmware. This is causing our builders to downgrade to
an older linux-firmware, then dnf-automatic just updates it the next
time to the newer one (because it's a security update).

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-01 13:54:51 -07:00
James Antill
e83b42b572 Remove iptables cron and stop/disable services, when using nftables.
Signed-off-by: James Antill <james@and.org>
2025-03-04 14:14:37 -05:00
James Antill
ca18224faa Change osbuildapi set table to the ip filter table.
Signed-off-by: James Antill <james@and.org>
2025-03-03 17:08:20 -05:00
James Antill
1c6c65844d Add new osbuildapi-update-nft.cron entries, and get it installed when nftables.
Signed-off-by: James Antill <james@and.org>
2025-03-03 21:20:30 +00:00
James Antill
b322316be5 Don't flush old osbuildapi entries in nftables land either.
Signed-off-by: James Antill <james@and.org>
2025-03-03 21:20:30 +00:00
Kevin Fenzi
de1fae51d8 osbuildapi-update: supress mention of duplicate ipts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-14 16:58:28 -08:00
Kevin Fenzi
e7b50aaee4 osbuildapi-update: just keep adding to ipset
It seems sso.redhat.com has a 20 second time to live, so it changes
often. However, it seems to only change the pool of ips from a small
(5-10) number. So, lets just add to the set so we allow any of the ips
we have seen. The set will grow, but if the pool is small it should
stablize to have all the ips in the pool.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-14 09:32:26 -08:00
Kevin Fenzi
487e07450f builders: drop loading containerbuild plugin, we do not use it anymore
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-11 11:14:00 -08:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Kevin Fenzi
8a545a7e75 buildvm-x86-riscv: fix principal for kojid
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-07 10:40:54 -08:00
Kevin Fenzi
d710450269 buildvm-x86-riscv: adjust principal for riscv secondary koji hub
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-06 16:19:31 -08:00
Kevin Fenzi
8140d863f0 koji_builder: no longer install koji-containerbuild packages
These packages were used when we were building containers in OSBS, and
since we don't do that anymore, drop installing that anywhere.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-20 14:13:31 -08:00
Kevin Fenzi
d4523c609d koji_builder: fix another handler case
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-16 15:06:57 -08:00
James Antill
80aa4bbbc2 Initial version of iptables to nftables conversion. 2025-01-16 11:28:24 -05:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
Ryan Lerch
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
Kevin Fenzi
82a8e8dbc9 buildvm_s390x: cleanup and add 7 new builders.
We no longer need to keep any config around from boston, so nuke that.
All the buildvm's are now kvm, so we don't need a seperate group/config
for that, so remove it.

Consolidate the variables down to buildvm_s390x group and only have ip
address for host vars.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-12-10 10:50:25 -08:00
Kevin Fenzi
ccb3e81b62 koji_builder: don't try and run rngd on aarch64 either
It tries to start on aarch64, but fails.
So, only run rngd on x86_64

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-12-09 17:42:27 -08:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Kevin Fenzi
5b9d067a31 koji_builder: don't restart the old monolythic libvirtd
In Fedora libvirt switched to a collection of socket activated services
instead of a large single libvirtd service. Restarting that service
caused the socket activated ones to die and then libvirtd exited on
idle, leaving nothing handling virt connections.

So, lets stop trying to restart that and no need to notify other things
because they should idle out/restart on socket activation.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-11-23 08:56:43 -08:00
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
Ondřej Budai
6d1c03d0eb osbuildapi-update: update the osbuildapi ipset atomically
Prior this commit, the script flushed the content of the osbuildapi
set before adding the newly resolved IP addresses into it. Even worse,
the DNS resolve for sso.redhat.com happened after the flush, so there
was no IP address for sso.redhat.com for quite some time (resolving
sso.redhat.com without caching takes 30 ms on my machine).

This commit fixes that by introducing a secondary ipset that is firstly
filled with the resolved IP addresses, and then its content is swapped
with the main set. This should hopefully reduce the likelihood of
random races.
2024-11-19 22:56:13 +00:00
Carl George
f40ad8262a koji_builder / mock site defaults: remove filelists option
An explicit provides for /usr/libexec/platform-python was added to
platform-python in RHEL 8.

https://access.redhat.com/errata/RHSA-2024:6975

This solves the original reason for needing the filelists option, so it
should be safe to remove.  This will make bootstrap chroot creation
faster for all builds, not just EPEL 8.

https://pagure.io/releng/issue/12199

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-10-08 20:13:58 +00:00
Kevin Fenzi
e3e2cb1d93 odcs: retire service ( infra 12192 )
Time to retire ODCS. ELN is moved off and that was the last thing using
it. Thanks for all the service ODCS!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-24 18:21:51 +00:00
Nils Philippsen
e46308a1a2 Switch to rpmautospec mock plugin in prod
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-08-16 09:49:40 +02:00
Nils Philippsen
7ce68f8a4c koji: Fix typo 🫣
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-08-15 19:41:34 +02:00
Nils Philippsen
4ac0bfac91 koji: Remove rpmautospec_builder plugin in stg
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-08-15 19:32:34 +02:00
Nils Philippsen
44876b117d koji: Also remove python3-/rpmautospec pkgs
These were only needed for the rpmautospec koji plugin.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-08-15 19:06:01 +02:00