Commit Graph

33 Commits

Author SHA1 Message Date
Adam Williamson
4c997fbe70 Enable nftables on openQA prod workers
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-05-30 14:52:42 -07:00
Kevin Fenzi
7c670efbfe openqa: do not do the nftables switch on these until we have more time for testing
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-24 13:51:09 -07:00
Adam Williamson
68af8cadda Try to prepare openQA worker host vars for redeployment
We intend to use disk encryption and udev network interface
naming on all hosts with the re-deployment, so this attempts to
set up for that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-08 14:37:44 -07:00
Adam Williamson
0127f5397f openQA prod workers: disable updates-testing again
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-06-10 15:59:37 -07: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
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
6fa7132bde openqa/workers: whoops, we only need the scratch build on lab
Forgot prod isn't on F35 yet.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-08 12:40:40 -08:00
Adam Williamson
92e66bb444 openQA: deploy new qemu build with qxl snapshot fix
This is an official build, not a scratch build, I just want to
get it deployed ahead of the updates-testing push.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-08 11:30:40 -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
a40fe2e8a4 Re-enable updates-testing on openQA prod workers
This reverts commit 5bacc237c3.
Needles have been updated, should be OK to deploy the latest
os-autoinst on prod now.
2021-07-19 14:24:37 -07:00
Adam Williamson
5bacc237c3 Don't enable u-t for prod openQA workers yet
I forgot we actually need to retake a ton of needles for a change
in os-autoinst. Can't deploy the new version till that's done.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-07-14 14:09: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
fe1981d292 openQA: disable u-t for prod
Don't need it now, latest openQA is pushed stable.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-06-01 12:20:24 -07:00
Adam Williamson
6a0a290f9e openqa: drop scratch repo (lab), enable u-t temporarily (prod)
Latest builds have been testing on lab and are working fine.
They are in u-t so lab doesn't need to use a scratch repo any
more, but prod needs to enable u-t to get them (can't push
stable yet).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-05-28 10:50:30 -07:00
Kevin Fenzi
3c12ef6aa9 Killed trailing spaces in group/host vars with fire.
Normally it's just a nitpick to not have trailing spaces on variables.
However, for some things like mac address, it really matters.
Bunches of buildhw's were failing ansibile because they were passing
"mac address " to linux-system-roles networking and ansible was going
'huh, nope, I can't find that mac address here at all'.
So, just blow all the tailing spaces away to avoid any other variables
that hit this.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-04 08:52:52 -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
Nils Philippsen
6fcbc946ee ipa/client: enable for openqa in prod
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-24 13:44:33 +01:00
Nils Philippsen
dbbf94a411 ipa/client: configure global shell access and sudo
Almost global anyway, i.e. inside the VPN.

The ipa/client-based shell access and sudo rules are only effective for
staging right now, the respective playbook bits are masked out for prod.

- Assign Ansible host groups to IPA host groups, the latter don't care
  about 'stg' in the name and use dashes rather than underscores.
- Distill shell access groups from fas_client_groups in group and host
  vars.
- Let all `sysadmin-*` groups in the previous list run anything via sudo
  in the host group (except bastion & batcave).
- Remove `fas_client_groups` from staging host and group vars.
- Remove sudoers from staging host and group vars if only `sysadmin-*`
  groups have shell access.
- Set up `ipa_client_shell_groups` on bastion to be a super set of the
  same on batcave.

Newly created IPA host groups:
- autosign
- badges
- basset
- bastion
- batcave
- blockerbugs
- bodhi
- bugzilla2fedmsg
- busgateway
- datagrepper
- dbserver
- dns
- fedimg
- github2fedmsg
- ipa
- kernel-qa
- kerneltest
- kojibuilder
- kojihub
- kojipkgs
- logging
- mailman
- memcached
- mirrormanager
- nagios
- notifs
- oci-registry
- odcs
- openqa
- openqa-workers
- osbs
- packages
- pdc-web
- pkgs
- proxies
- rabbitmq
- releng-compose
- resultsdb
- secondary
- sign-bridge
- sundries
- value
- wiki

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-02-01 22:23:41 +00: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
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
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
Kevin Fenzi
db9e25330b inventory: try removing all the calls to ansible_python_interpreter and rely on the auto detection.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
7a5755597e Set ansible_python_interpreter to python3 for all openQA boxes
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-16 10:15:28 -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
Kevin Fenzi
4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00