Commit Graph

82 Commits

Author SHA1 Message Date
Adam Williamson
ae2cd3530b roles/openqa/server: drop OpenID auth support
We've been using OAuth2 for prod and stg for some time now, so
let's clean this up.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-01-26 15:40:50 -08:00
Adam Williamson
7b84f30429 openqa/server: switch prod to OAuth2
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-28 14:37:00 -07:00
Adam Williamson
5da2faac67 openqa/server: allow OAuth2 authentication, enable on lab
OpenID support in FAS is going away. openQA has OAuth2 support.
I've tested this config to work with manual edits on lab, now
ansiblizing it (for lab only to start with).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-28 13:40:57 -07:00
Adam Williamson
295c0ccb25 openqa: run aarch64 updates on prod too
Seems to be working fine on stg.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-07-19 17:22:59 -07:00
Adam Williamson
a62b48fff7 openqa: don't use updates-testing on prod again
forgot to do this before, we don't want it now as I'm about to
push an untested build there for stg to try out.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-08 18:17:10 -08:00
Adam Williamson
be953e0be4 Dangit, went too far. Only the scheduler should be set that way
Sigh. Sorry, this stuff is hard to keep straight in my head.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 13:26:16 +02:00
Adam Williamson
b50fa6a477 openqa amqp: fix stg-on-prod queue names
so, this was working before somehow, but it was pretty clearly
wrong. We were using queues owned by openqa.stg on the prod
rabbitmq instance for the cases where the openQA "stg" consumers
need to listen to prod queues. This can only have been working
with an openqa.stg user on prod, which seems wrong. Instead,
these three consumers should do it the way the relval and
relvalami consumers do - use a queue owned by the "openqa" user,
but with a suffix so they have a different queue from the actual
prod queue. The upshot of this is that in the configs, we should
go from:

amqp_url = "amqps://openqa:@rabbitmq.fedoraproject.org/%2Fpubsub"
...
queue = "openqa.stg_scheduler"

- which is weird and I have no idea how it ever worked - to:

amqp_url = "amqps://openqa:@rabbitmq.fedoraproject.org/%2Fpubsub"
...
queue = "openqa_scheduler_stg"

- which seems much more sensible.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 13:15:38 +02:00
Adam Williamson
9953afa06e openqa etc: fix up and improve AMQP messaging configuration
This is triggered by
https://pagure.io/fedora-infrastructure/issue/11375 , but the
changes are rather extensive. Unfortunately, some of the
relevant files got messed up by the alphabetical sort thing that
got run on several group variable files a while ago, so that
confuses the diff a bit - I had to unwind those changes to make
the files readable again in order to make these changes.

Ultimately the goal here is to make the config more consistent
and more functional - the variables used and their names should
be more consistently related to what they're actually *for*,
which I didn't entirely understand when setting this up. So
we have variables for the username being used in each case and
we use that variable where we're referring to the username, for
instance. This should also make the whole thing about the cases
where listeners on the openQA stg/lab instance need to listen
to prod messages clearer, too. It also makes the user creation
clearer by doing it explicitly, just once per user, instead of
haphazardly doing it implicitly through the queue definitions.

And finally it should also actually fix 11375, by giving the
appropriate write permissions to each user.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 12:04:55 +02:00
Adam Williamson
6c7e6a3218 openqa: use updates-testing on prod and stg to get latest builds
The 2023-05 git builds look good on stg, and are now in u-t, so
drop the scratch repos on stg and enable u-t on prod so we get
the builds from u-t everywhere.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-05-30 09:21:31 -07:00
Adam Williamson
c9dcfefc1a openqa: drop openqa_scratch, the 2023-04 updates are stable now
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-05-11 23:57:44 -07:00
Adam Williamson
e526ab4120 Use 2023-04 update builds on openqa prod and stg
The update isn't in u-t yet (waiting for push) so I'm using the
builds, but this has been in testing on stg for a week and it
seems fine.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-05-02 11:13:00 -07:00
Adam Williamson
5cd71a659b openQA: don't install from u-t on prod
The current builds are in stable now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-12-14 15:06:18 -08:00
Adam Williamson
3fc8903111 openQA: install from updates-testing on prod and stg again
I think the recent git builds are good and I want them everywhere
so I can merge a bunch of things and clean up before the weekend.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-12-02 14:40:21 -08:00
Adam Williamson
7ba67fdc12 openQA: don't enable FedoraUpdateRestart plugin
Upstream implemented a feature that we can use to do the same
thing using just a test variable, so we're switching to that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-06 10:42:26 -07:00
Adam Williamson
084315f334 openqa: don't use updates-testing on prod
The build prod is on has hit stable, I want to send a new build
to testing for lab to test out, don't want it on prod yet.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-24 14:40:16 -07:00
Adam Williamson
294cbf994d Switch openQA prod to new resultsdb URL and enable auth
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-16 10:47:26 -07:00
Adam Williamson
0ceef0f7d0 Revert "Switch openQA prod to new resultsdb URL and enable auth"
This reverts commit edb9704acc.
The new prod deployment seems to have some issues (message
publishing is timing out) so let's go back to using the old
deployment for now.
2022-06-10 13:03:57 -07:00
Adam Williamson
edb9704acc Switch openQA prod to new resultsdb URL and enable auth
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-10 11:39:31 -07:00
Adam Williamson
479388a242 openqa: use updates-testing builds on all prod/stg
We don't need the scratch builds on stg any more now we've sent
the new builds to updates-testing. We *do* want to use the builds
from u-t on prod now (I don't want to wait a week for the stable
push).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-03 13:25:05 -07:00
Adam Williamson
6c24d53203 openQA: clean up repository config
We don't need scratch builds on lab or updates-testing on prod
any more, latest builds are stable.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-02-17 14:32:30 -08:00
Adam Williamson
224e28131d openQA: prepare for prod deployment of latest releases
This unifies prod and stg onto the ways of doing things for the
latest packages, and rejigs the swtpm stuff a bit to tear down
more (we shouldn't need the custom SELinux policy any more).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-12-06 10:40:33 -08:00
Kevin Fenzi
580cd252c5 Inventory group/host variables: Sort yaml
This was done using yq (
https://mikefarah.gitbook.io/yq/operators/sort-keys )

Doing things this way makes it much easier to see if a variable is set
in a file or if two hosts differ in what variables they set. Hopefully
we can keep things sorted moving forward.

Basically this means just sort a-z anything you add to any host or group
vaiable and it will be in the right place.

Additionally, this enforces 'normal' intent rules for all the variable
files which we should also try and obey. 2 spaces for first level, 3 for
next, etc. When in doubt you can run yq on it.

This should cause NO actual vairable changes, it's all just readability
fixing for humans, ansible parses it exactly the same.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-11-16 13:27:57 -08:00
Adam Williamson
bd0683a453 openQA: drop scratch builds, git branches etc.
We don't need the scratch builds any more, they're in u-t. We
also don't need to use a side branch on lab createhdds any more,
or deploy from u-t on prod.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-08-12 15:48:54 -07:00
Adam Williamson
43edb707f5 openQA: use updates-testing but no scratch builds on both
The latest versions that were previously deployed as scratch
builds on lab are now in u-t, and ran fine on lab for a week, so
let's just deploy them from u-t to both instances now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-07-13 15:55:19 -07:00
Adam Williamson
16b06a655c openQA: use scratch os-autoinst on lab, stable on prod
Drop updates-testing repo for prod (though might have to put it
back next week). Use a scratch os-autoinst current git build on
lab to see if it works.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-05-07 13:27:41 -07:00
Adam Williamson
a889649c46 openqa: bump asset size allocations a bit
We have more space on the IAD servers, so let's use it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-04-08 09:24:23 -07:00
Adam Williamson
cd09666b16 Try and fix cecert definitions for openQA lab/stg
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-04-01 17:18:57 -07:00
Adam Williamson
0c0820803a openqa: use updates-testing repo for prod for now
Latest builds in u-t are quite well tested and I want them on
prod, don't want to wait a week for the stable push.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-19 10:20:05 -08:00
Adam Williamson
d61631fbe7 More syntax fixin (I hope)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-05 16:18:08 -08:00
Adam Williamson
95f062c07a openQA: allow all workers NFS write access, other tweaks
The main goal of these changes is to allow all workers in each
deployment NFS write access to the factory share. This is because
I want to try using os-autoinst's at-job-run-time decompression
of disk images instead of openQA's at-asset-download-time
decompression; it avoids some awkwardness with the asset file
name, and should also actually allow us to drop the decompression
code from openQA I think.

I also rejigged various other things at the same time as they
kinda logically go together. It's mostly cleanups and tweaks to
group variables. I tried to handle more things explicitly with
variables, as it's better for use of these plays outside of
Fedora infra.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-05 16:10:32 -08:00
Adam Williamson
7d32a58788 openqa: enable aarch64 testing in production
whee!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-10-30 14:55:41 -07:00
Adam Williamson
2b7a62f232 openqa/dispatcher: use arch filtering instead of custom WANTED
I just enhanced the scheduler code so we can share the stock
WANTED definition (which now includes all arches) between prod
and lab, but filter the arches with a config file setting. This
means we don't have to carry and install a whole custom WANTED
file with the extra arches for lab any more, we just set the
appropriate value in the config file. Also drop some stuff from
the config file that's been useless since we switched to
fedora-messaging.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-10-29 16:55:11 -07:00
Adam Williamson
b2169edd74 openqa vars, inventory: drop most phx2 bits
This pretty much nukes all inventory entries and variables
relating to the old phx2 openQA deployments, as I don't think
they're ever coming up again. I left a few group entries around
for now just in case they're necessary for decommissioning.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-11 08:38:39 -07:00
Adam Williamson
06f8ca684a openqa: add new groups for IAD vs. PHX variables
...like the database server host.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-01 15:46:42 -07:00
Adam Williamson
1096adb4a7 Drop openQA asset size limit on stg to try and save disk space
stg's disk is groaning at the seams, let's drop this to 400GB to
try and give it a bit of room to breathe.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-13 10:21:15 -07:00
Adam Williamson
6483485c8a openqa/dispatcher: handle update test arch config, ppc64le on stg
I enhanced the fedora_openqa job scheduling consumer to have a
setting for which arches update tests should be run on. This
change adds that new setting to the config we write, and enables
ppc64le update tests in staging. If this goes well we will also
enable them in production, and later enable aarch64 as well when
we have more workers.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:20 +02:00
Adam Williamson
ef3bbe781c openqa: switch prod to fedora-messaging
*crosses fingers*

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:08 +02:00
Adam Williamson
ab4a46bf9e openQA: try and set up fedora-messaging publishing on staging
Also tweak how we do the plugin config a bit, I don't like the
whole 'do special stuff if deployment_mode is set' thing any
more.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:07 +02:00
Adam Williamson
efddd0d5b1 check-compose: convert to fedora-messaging
Following the patterns from openQA and relvalconsumer. Just one
to go after this!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:45:20 -07:00
Adam Williamson
db1a847517 openqa/dispatcher: use more role vars for messaging config
Now I've built the whole thing and it works, I feel like this
is a cleaner design: we use a lot more role variables in the
messaging config files, set defaults for them that are
appropriate for non-infra use, and set the correct values for
the infra servers in the group vars. Let's just hope I got it
all right...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 15:05:23 -07:00
Adam Williamson
054bdeaf6a openqa: consolidate some server settings to a common group
There are several variables we set to the same value for openQA
prod and staging servers. Instead of duplicating these between
the openqa and openqa_stg groups, let's invent an openqa_common
and put them in there, and add both servers to it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 12:43:22 -07:00
Adam Williamson
080701af48 Try to clean up openqa/rabbit var usage a bit now it works
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 12:12:00 -07:00
Adam Williamson
29100697e8 openqa: fix rabbitmq_server for staging
damn "not really staging"...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:54:43 -07:00
Adam Williamson
848f81fa36 openqa: use openqa_env instead of env, just like env_suffix...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:24:35 -07:00
Adam Williamson
440e0fd91e openqa: rejig env_suffix handling
env_suffix isn't actually set to .stg on openQA staging because
it's not a normal staging host. Let's not set it in case it
breaks other plays, but use a custom var instead.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:19:41 -07:00
Adam Williamson
348145dbfa openqa/dispatcher: first cut at supporting fedora-messaging
This is a big change to support fedora-messaging based consumers
instead of fedmsg ones in the openqa/dispatcher role. This needs
the fedora-messaging branch of fedora_openqa, until that is
merged to stable. For now this is all conditionalized so prod
will continue to use fedmsg. This also improves some variable
usage and documentation in the fedmsg path too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 17:44:42 -07:00
Adam Williamson
4f202be131 openqa: drop all use of wikitcms_user and wikitcms_password
It's all wikitcms_token now, this was all just outdated cruft.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 16:56:11 -07:00
Adam Williamson
ed6fb9c465 Update check-compose role for Greenwave integration
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-05 19:33:06 -08:00
Adam Williamson
8459241233 openQA: try bumping asset size limits a bit
This is a slightly inexact science, but I think we have solid
free space on both servers and it does seem like assets are
getting thrown away pretty aggressively, so let's see how this
does.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-01 08:40:09 -08:00
Adam Williamson
b87474ad30 Move openQA prod over to Fedora (postgres 10) db host
Just as we did for stg last week.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 14:18:22 -08:00