Commit graph

104 commits

Author SHA1 Message Date
Adam Williamson
4fd83483fa openqa/dispatcher: comment on the needed packages
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-07 15:21:15 -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
3e4c3534e5 openqa: switch FCOS scheduling to messages, reduce duplication
This sets us up for scheduling FCOS tests from messages, not
using a cron job. Also reduces some duplication of variables
between openqa-servers-common and the dispatcher role defaults.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-24 10:59:01 -08:00
Adam Williamson
ca112a1922 openQA: update some branch names to 'main' not 'master'
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-06-01 13:39:02 -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
d4f34b56f9 openqa/dispatcher: write file after creating directory
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-10-05 12:40:45 -07:00
Adam Williamson
f77767ce85 openqa/dispatcher: add cron job to schedule jobs for CoreOS
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-09-02 15:19:26 -07:00
Adam Williamson
5510c165e8 openqa/dispatcher: drop bool usage
I think I was using it wrong.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-05 16:20:38 -07:00
Adam Williamson
0dc0dd6659 openqa: slightly broaden "(N|n)ot a git repository" check
I wrote it as "Not" before, so I presumably saw the message that
way, but today it seems to be "not". Let's just skip the letter.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-01 17:09:38 -07:00
Adam Williamson
c77f42a409 openqa/dispatcher: tweak some conditionals
Use the |bool modifier, and add that check in some places where
we didn't currently have it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-19 12:36:11 -07:00
Adam Williamson
2b6c8be5aa openqa etc: reinstall local Python libs when Python ver changes
In openqa/dispatcher, relvalconsumer and check-compose roles, we
install Python libraries from git checkouts (these are things we
don't really want to package as they change too much). This
enhances those roles so that we check whether pip considers the
libraries to be installed, and install them if it doesn't. The
purpose is to catch when the Python version rolls over on system
upgrade, and reinstall the libraries in that case - I got bitten
by this when upgrading to F32, I forgot to reinstall these libs
for Python 3.8, and it broke things for a couple of days before
I noticed and fixed it manually...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-13 09:58:50 -07:00
Adam Williamson
7278d3f451 openqa/dispatcher: fix ansible-lint detected errors
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-29 16:49:32 -07:00
Adam Williamson
063548a931 openqa/dispatcher: drop --nodeps from setup.py install
This was an old fedmsg Python 2 vs. Python 3 thing that's no
longer needed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
52d7450a9c openqa, check-compose, relvalconsumer: drop remaining fedmsg bits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02: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
3441c4e18e openqa: correct systemd config drop in directory name
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:20 +02:00
Adam Williamson
5854224c14 openqa: create directory for config drop-in from prev commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:20 +02:00
Adam Williamson
16076c620b openqa: Slow fm-consumer@ service restarts to every 60 secs
This is to reduce a flood of errors happening when servers the
consumers communicate with go down.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:20 +02:00
Adam Williamson
be356508ae openqa/dispatcher: restart all fm-consumer@ services daily
fedora-messaging has an annoying bug where consumers get stuck
allegedly working fine but actually not handling any messages:

https://github.com/fedora-infra/fedora-messaging/issues/208

to deal with this on our openQA servers, just have the dispatcher
role install a cron job which restarts all the services nightly.
Strictly speaking this shouldn't really be part of a specific
role like this, but this is the easiest way to do it and it's
not really that "wrong".

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:16 +02:00
Adam Williamson
8d17d7b078 Disable openQA wiki reporter on stg as well
See https://pagure.io/fedora-infrastructure/issue/8381 - I'm
disabling everything on openQA stg that edits the wiki until
that's resolved.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
cc5a23960a openqa roles: fix fedora-messaging key permissions
geekotest needs to be able to read the key files or else openQA
cannot publish messages.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:09 +02:00
Adam Williamson
b4b28d98ad openqa/dispatcher: fix bare boolean
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 15:18:48 -07:00
Adam Williamson
3b6e6fea7a openqa/dispatcher: set up fedora-messaging restart handlers
This should handle consumer service restarts elegantly. I hope.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-17 17:05:23 -07:00
Adam Williamson
6360a231cb openqa/dispatcher: add missing quote mark
...sigh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-17 16:36:53 -07:00
Adam Williamson
97dd8ae650 openqa/dispatcher: always use fedora-messaging, ditch fedmsg
This ditches the ability to choose between fedora-messaging and
fedmsg and always uses fedora-messaging; with this, we'll switch
the prod instance to fedora-messaging also (fingers crossed).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-17 16:13:43 -07:00
Adam Williamson
b5ed2ce4e2 openqa/dispatcher: set up email error reporting
We had this for fedmsgs and it's pretty important, so let's try
and do it for fedora-messaging. The role has a generic setup,
infra-appropriate values are set in the group vars.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-17 11:24:22 -07:00
Adam Williamson
b8eeff1d9c openqa/dispatcher: use conditional-restart for the restarts
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 15:46:08 -07:00
Adam Williamson
927897eae9 openqa/dispatcher: restart messaging servers on config changes
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 15:43:40 -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
513ff61eaa Revert "openqa: disable private fedora-messaging auth for now"
This reverts commit 18f7398ca0.
Let's try with auth again now jcline is around to help out.
2019-06-14 08:36:46 -07:00
Adam Williamson
18f7398ca0 openqa: disable private fedora-messaging auth for now
well, this just isn't working and no-one's around to debug it.
So turn it off for now. Will try and fix it tomorrow.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 16:08:18 -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
700fb3c1ae openqa/dispatcher: use private auth in infra
The keys and certs have been created for us to use private auth
so let's do it. This tries to keep things working for non-infra
deployments somehow.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 13:55:04 -07:00
Paul W. Frields
7ef3be1d94 openqa: all roles change dnf -> package 2019-06-11 14:39:52 +00:00
Adam Williamson
37d272d1ff openqa/dispatcher: fix some more bare bools
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 19:08:03 -07:00
Adam Williamson
e5d34dd9d3 openqa/dispatcher: fix staging AMQP broker setup
The correct auth bits are missing from the package so I'll ship
them here for now, and correct the config.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 19:01:01 -07:00
Adam Williamson
547f669cde openqa/dispatcher: fix indentation issue
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 18:46:09 -07:00
Adam Williamson
c0e3a085f8 openqa/dispatcher: fix ansible bare boolean deprecation warning
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 18:08:45 -07:00
Adam Williamson
1c5be7ac3e openqa: set the UUIDs for the fedora-messaging staging queues
These should really be secrets, but no-one's around to help me
set up new secrets right now, and it shouldn't matter a lot in
the short term at least.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 18:01:11 -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
983e39abff openqa/dispatcher: improve 'extra arches' implementation
These bits were still named and described as if they were ppc64
specific, even though they actually cover aarch64 too. Also I
decided I don't like the implementation of cueing *directly* off
the infra deployment type here, it feels wrong. Instead let's
just make it work from a config variable, and set that variable
to false by default and true in group_vars/openqa-stg.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 10:34:04 -08:00
Adam Williamson
98645f5435 openqa/dispatcher: remove old wiki 'credentials' file
This is no longer used (we use OIDC token auth now), so let's
not leave the plain text password file sitting around for no
reason.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 10:24:54 -08:00
Adam Williamson
b30732e722 openqa etc.: drop Python 2 -> 3 migration bits
Both stg and prod are migrated now, so let's clean up the plays
to be pure Python 3.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 10:13:56 -08:00
Adam Williamson
e293bc91d4 ...or, you know, I just messed up the conditional
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 15:47:52 -08:00
Adam Williamson
958ddd9e62 openqa/dispatcher: perhaps we can't register to the same var?
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 15:42:11 -08:00
Adam Williamson
2426ab6e5c Use new --nodeps for Python 3 setup.py installs (oqa etc)
This should hopefully avoid an awkward problem I noticed with
'python3 setup.py install' dumping replacements in /usr/local
for packaged scripts (e.g. fedmsg-logger)...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 14:13:30 -08:00
Adam Williamson
11fdb6b643 oqa/fedmsg3: trim python2 package removals, still need fedmsg
openQA fedmsg plugin still needs python2-fedmsg for now...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 14:10:14 -08:00
Adam Williamson
56d689d31a Fix Py2 install detection and trim py2 package removals
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:57:10 -08:00
Adam Williamson
43db2ee9fc Fix Python 2 removal for oqa, rvc and acr as well
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:35:25 -08:00