Commit Graph

153 Commits

Author SHA1 Message Date
Adam Williamson
029da6279a openqa/dispatcher: don't do git checkout when not on master
Like with openqa/server, sometimes we have the fedora_openqa
checkout in some kind of testing state on staging. We want to
skip the git checkout step when this is the case. This is just
copied across from the server role.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-04-26 20:03:59 -07:00
Adam Williamson
e9ba26289a openqa/server: *REALLY* fix the Apache status thing
OK, this version actually seems to work.
2017-03-14 13:10:27 -07:00
Adam Williamson
db1150c824 Revert "openqa/server: try fixing the Apache status thing again"
This reverts commit d6e32c9901.
It didn't work.
2017-03-14 12:55:51 -07:00
Adam Williamson
d6e32c9901 openqa/server: try fixing the Apache status thing again
Seems like the config needs to be in the VirtualHost definition.
2017-03-14 12:53:38 -07:00
Adam Williamson
acf096e829 openqa/server: Mostly revert previous commit
Actually openQA playbook already includes the apache role, which
sets up the config file. The 404s are for some other reason. But
keep the comment change.
2017-03-14 12:16:12 -07:00
Adam Williamson
3fcfa93fc4 Enable mod_status on openQA server boxes
This should stop collectd generating tons of 404 requests.
2017-03-14 12:06:07 -07:00
Adam Williamson
4d4cca26a6 require resultsdb_conventions-fedora
These roles need the -fedora subpackage, not just the main lib.
2017-03-08 22:42:19 -08:00
Adam Williamson
f2a8760d1a openqa/server: check stdout not stderr for database creation 2017-03-07 23:23:08 -08:00
Adam Williamson
0e20a588bf openqa/server: allow createhdds to fail
It does, sometimes, and that probably shouldn't stop the play.
We likely already have some older images, and even if this is
the *first* creation, we can go ahead with the rest of the
deployment safely enough, and debug the image creation problem
later.
2017-03-07 11:32:32 -08:00
Adam Williamson
a52111ec54 openqa/server: remove a no-longer-needed workaround 2017-03-07 11:31:40 -08:00
Adam Williamson
db39853b51 Use packaged resultsdb_conventions, not git installed
I'll wipe the from-source installs manually, seems easiest.
2017-03-07 11:29:41 -08:00
Adam Williamson
851e93ef6d Drop 'remove old manual install' steps that served their purpose 2017-03-06 16:42:36 -08:00
Adam Williamson
c32e278190 Switch from git checkout to packaged install of openqa_client
In check-compose and openqa/dispatcher roles, now it's packaged.
2017-03-06 16:35:18 -08:00
Adam Williamson
518ff32b8d openqa/server: enable update test restart plugin on prod
Seems to be working fine in staging, so let's do it.
2017-03-04 15:36:13 -08:00
Adam Williamson
167376f451 openqa/server: fix one of the git checkout conditions 2017-03-04 15:35:02 -08:00
Adam Williamson
a412d4f47c openqa: install the 'update restarter' plugin, enable on stg
For now, just enable this on staging to check it works okay.
2017-03-01 13:36:06 -08:00
Adam Williamson
5f15217f0a openqa/server: load the update test templates
Forgot these were in a separate file...
2017-02-28 09:41:32 -08:00
Adam Williamson
f78d015cf4 openqa/dispatcher: update respin cronjob for new scheduler name
The scheduler binary name changed from 'fedora-openqa-schedule'
to 'fedora-openqa', but I forgot to update the call in this
cronjob. Oops.
2017-02-22 11:56:53 -08:00
Adam Williamson
a3d10b591d openQA roles: use python2-fedfind not fedfind
I split the package, we don't need the CLI, only the lib.
2017-02-18 16:59:52 -08:00
Adam Williamson
2b041d9cfd openqa/dispatcher: more config fixing
goddamnit, adam, why'd you make so many options.
2017-02-15 08:20:28 -08:00
Adam Williamson
7dd87e5a12 openqa/dispatcher: fix schedule.conf again
gah, section names.
2017-02-14 23:30:09 -08:00
Adam Williamson
369c00eb80 openqa/dispatcher: use 'localhost' as oqa hostname in infra 2017-02-14 23:05:55 -08:00
Adam Williamson
fff2dddf8f openqa/dispatcher: tweak template logic a bit 2017-02-14 17:08:09 -08:00
Adam Williamson
cc95c6482b openqa: update roles for openqa_fedora_tools repo split
We split fedora_openqa and createhdds out into their own repos,
this should adapt to the change (I hope).
2017-02-14 16:57:23 -08:00
Adam Williamson
8f32e86245 openqa/dispatcher: correct config for resultsdb reports
This is a bit sloppy and infra-specific ATM, but does the job.
I have a PR in for openqa_fedora_tools which changes the report
behaviour a bit, once that lands I'll clean this up somewhat
using variables.
2017-02-10 23:48:00 -08:00
Adam Williamson
9d7f1465ef openqa/dispatcher: correct openQA URL for resultsdb links 2017-02-06 15:45:56 -08:00
Adam Williamson
704d214b43 openqa/dispatcher: enable ResultsDB reporter 2017-02-02 17:18:53 +01:00
Adam Williamson
ff4da55373 openQA: install from stable for now
flippy flippy...u-t packages are untested, don't want them
getting to stable.
2017-01-31 17:27:44 +01:00
Adam Williamson
3cee6ccf5f openQA: update name of default git branch for tests
Now it's master, not develop.
2017-01-12 15:05:30 -08:00
Adam Williamson
f3cc273790 Update some QA git repo locations
We're moving stuff. Look out!
2017-01-12 14:36:13 -08:00
Adam Williamson
bb3d1c1fe7 openqa: handle 4.4-32 and 4.4-33 behaving differently 2016-12-20 18:52:52 -08:00
Adam Williamson
ea4ed40076 openqa/scheduler: add a cron job to schedule live-respins
There are no fedmsg notifications for the live respin composes,
so we just try scheduling them every hour; when we've already
tested the current compose this will not create any new jobs,
and when a new compose shows up, this will test it.
2016-12-14 12:32:48 -08:00
Adam Williamson
12c7b64aa0 Add a relvalconsumer role, run it on openQA servers for now
relvalconsumer is the fedmsg consumer bot that creates Wikitcms
release validation test events. Up till now it's just been
running on one of my personal boxes; we should really move it
to infra. Run it on the openQA servers for now, as there's
nowhere more obviously correct, and I have root access there to
fix problems.

We add new inventory groups because it's *really important*
that there be exactly one (no more, no less) production consumer
at any given time. I don't want to just use the 'openqa' group
for this because it's vaguely possible it could contain more
than one host in future, and we really wouldn't want that to
result in there being two production relvalconsumers running.
2016-11-30 13:24:05 -08:00
Kevin Fenzi
b1a2d105c9 In ansible 2.2 always_run is depreciated. Switch to check_mode. 2016-11-01 16:29:49 +00:00
Adam Williamson
04914d545f openqa/worker: use distro edk2 package 2016-10-26 14:15:50 -07:00
Adam Williamson
f65b0d0b03 openqa: drop prod/stg variance for fixed asset location 2016-10-24 17:15:20 -07:00
Adam Williamson
33fae65883 openqa: adjust to new 'fixed' asset stuff on staging
The capability to handle a variance between prod and staging
here is just temporary while I'm testing the new fixed asset
handling stuff by deploying it on staging. Once it's tested
and merged we'll just have prod and staging do the same thing.
But for now we need to cleanly handle them having the static
disk images in different places.
2016-10-19 11:17:58 -07:00
Adam Williamson
ddfa764ebf openqa: drop the workaround for ARM kernel/initrd collisions
We fixed the issue which meant ARM kernel / initrd file names
were colliding, so we don't need this workaround any more.
2016-10-18 15:20:59 -07:00
Adam Williamson
a5894c93be openqa/server: only do createhdds when images are missing
I've enhanced `createhdds check` to exit 1 if all images are
present but some are old, and 2 if any images are missing. We
use this to only create images if any are missing here in the
play; we rely on the daily cron job to rebuild old images.

This is kind of a band-aid for a weird issue on openqa01 where
virt-install runs just don't seem to work properly after the
box has been running for a while, so createhdds doesn't actually
work and any playbook run gets hung up on it for a long time.
This doesn't fix that, but does at least mean we can run the
playbook without being bothered by it. To get createhdds to run
properly and actually regenerate the outdated images, we have
to reboot the system and run it right away, it seems to work
fine right after the system boots up.
2016-10-17 11:39:14 -07:00
Adam Williamson
29d9e648ed couple of fixes to that script 2016-10-03 12:04:12 -07:00
Adam Williamson
f96b283dec openqa/dispatcher: add an ugly workaround for openQA #673
We currently can't tell openQA to download the ARM kernel and
initramfs with a filename unique to the build being tested, so
they just get downloaded as `vmlinuz` and `initrd.img`, which
means that when the next compose is tested, we won't download
them again, we'll just use the existing copies (which are no
longer the right ones). Because of this our current 'F25' and
'Rawhide' ARM tests are actually still using some F24 kernel
image. Until the openQA bug which prevents us giving the files
unique names is resolved, here's a hacky workaround: a script
which wipes the files every hour if no openQA jobs are pending.
2016-10-03 11:54:24 -07:00
Adam Williamson
8ef24ecd61 openqa/server: don't check out tests when on non-standard branch 2016-09-06 12:30:53 -07:00
Adam Williamson
900e8bba48 openqa/server: drop templates patching
no longer needed since recent tweak to repository config in
tests.
2016-09-01 10:49:55 -07:00
Adam Williamson
af9785c05f openqa/dispatcher: scheduler config write should restart fedmsg 2016-08-12 08:50:28 -07:00
Adam Williamson
887d4efe7b openqa/dispatcher: scheduler config file in the right damn place
...d'oh, one day i'll get this right
2016-08-11 23:43:33 -07:00
Adam Williamson
a3f6faa9f5 drop no-longer-needed git workaround from openqa plays 2016-08-10 12:06:41 -07:00
Adam Williamson
70df2395d2 openqa/dispatcher: update schedule.conf for scheduler changes
since resultsdb submission was added to the scheduler, we must
disable it here for now (as we don't want to use it yet), and
also update the name of the config directive that controls wiki
result submission.
2016-08-09 08:11:42 -07:00
Adam Williamson
60714971fd openqa/dispatcher: now needs python-resultsdb_api 2016-08-08 11:32:25 -07:00
Adam Williamson
84e52adf10 openqa: need openqa/os-autoinst from updates-testing ATM 2016-07-05 12:09:01 -07:00
Kevin Fenzi
2b4fac3ee1 Add workaround for git module all around. 2016-07-05 17:07:52 +00:00