Commit Graph

47 Commits

Author SHA1 Message Date
Adam Williamson
5e737c675c openqa: disable ppc64le on lab for now
We don't have any workers. We may turn this back on later, or...
not.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-02 19:54:44 -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
27ed0ce621 openqa: test running update tests on aarch64 on stg
We really ought to do this. Capacity and reliability are issues,
so I'm going to try it with a small set of core tests at first.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-07-19 09:59:51 -07:00
Adam Williamson
07f6d5967e Revert "Try new openQA scratch build out on lab"
This reverts commit b75517e07d. I
totally forgot I changed how we deploy scratch builds now. Sigh.
2024-07-03 20:42:25 -07:00
Adam Williamson
b75517e07d Try new openQA scratch build out on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-07-03 18:48:45 -07: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
47953e6b52 Test new openqa/os-autoinst scratch builds on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-05-26 16:09:04 -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
3e52c1c08f openQA: test new openQA scratch build on stg
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-04-25 11:46:53 -07:00
Adam Williamson
29395d0c96 openqa: report queued 'results' on prod too
It seems to work OK on staging, so let's try it out on prod and
see how it looks in Bodhi.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 08:47:14 -07:00
Adam Williamson
c3974fc8c5 openqa: test reporting non-complete 'results' on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-02-08 15:55: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
bf501ee013 openqa: disable updates-testing on lab for now
Due to https://progress.opensuse.org/issues/121054 , waiting for
upstream review on my proposed fix.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-30 08:59:43 -08:00
Adam Williamson
06fc914348 openQA: same update asset size for prod and stg
We're turning on Rawhide update testing on prod now (whee) so we
need this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-28 16:13:44 -07: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
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
1563df24e4 openqa: use 2022-05 scratch builds on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-31 13:39:29 -07:00
Adam Williamson
e6e0e2f42d openqa: set up for new resultsdb location and auth on lab
This sets up the openQA lab instance to report to the new stg
instance of resultsdb, and use authentication. The scheduler
config file is now mode 0600 because it has a password in it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-11 17:06:35 -07:00
Adam Williamson
b3b68ee4ac openqa: add hdd images for Rawhide update testing on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-04-22 12:58:32 -07:00
Adam Williamson
58dd80c799 openqa/server: reduce PPC update group asset size
We need to treat it and the x86_64 update group separately to
do this, but it really doesn't need 200G. We have images from
three weeks ago, and we don't need that kind of buffer, and space
is a bit tight.

Note: there is no aarch64 updates group as we do not currently
run updates tests on aarch64.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-03-22 16:17:17 -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
71cbce0447 Deploy latest test openQA and os-autoinst builds on openQA lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-02-03 11:29:09 -08:00
Adam Williamson
9a4027b096 Re-enable openQA-related wiki writing services in staging
Staging wiki auth from openqa-lab01 works again now (thanks to
Aurelien) so we can re-enable these. Also fix the grouping in
openqa_lab that was broken by the sorting done in 580cd25.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-01-20 15:21:38 -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
Adam Williamson
55be7c05f6 openQA: update AMQP config settings for lab
These need to change with the newer version of openQA.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-30 10:30:20 -08:00
Adam Williamson
6dbdd858e3 openQA lab: update scratch builds
os-autoinst is actually an official build now, and this is a
newer (and somewhat fixed) openQA scratch.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-30 10:13:30 -08:00
Adam Williamson
57d29546b0 openQA: deploy updated openQA scratch build to lab as well
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-26 13:55:35 -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
feab3ac036 openQA: test out latest scratch builds on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-08-04 17:29:05 -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
57d57397d5 openQA: test new git bump builds on lab
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-07-02 14:20:49 -07:00
Adam Williamson
8cc6545c4a Drop openQA scratch builds
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-04-22 16:06:19 -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
dffebd91fe Update openQA builds for staging again, right this time
They're going to u-t too, but I want to deploy them without
waiting.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-04-01 16:28:46 -07:00
Adam Williamson
06b71c46ca Update openQA lab to latest upstream scratch builds for testing
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-03-30 18:54:14 -07:00
Adam Williamson
10afb34935 openqa-lab: drop scratch builds
...we're quite a way past these builds in u-t now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-19 10:18:47 -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
51bfc54f0b openQA: deploy new scratch builds on stg
Testing a git bump.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-03 18:42:35 -08: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
24b3645f96 openqa_lab: fix up couple of hostnames for iad2
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-10-05 12:34:44 -07:00
Kevin Fenzi
acf4103459 Bring back openqa-stg01 and (some)workers as openqa-lab01
We decided that since this wasn't really a staging host, we should stop
calling it 'stg' and putting it in stg group. Since it's used for
testing new openqa and edge features, lab seemed appropriate.

This brings up a openqa-lab01 on qvmhost-x86-01 and a power9 and aarch64
workers. More workers to be added as they are installed. Ther will be at
least one more power9 and 2 more aarch64 boxes.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-21 14:49:17 -07:00