Commit Graph

135 Commits

Author SHA1 Message Date
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
Adam Williamson
0a9e60db32 openqa/server: adapt to virt-install createhdds
we need to install some additional packages for the revised
createhdds (but we no longer need pexpect), and ensure libvirtd
is running before running createhdds.
2016-07-04 09:37:05 -07:00
Kevin Fenzi
bb28b9213d Work around dnf bug 2016-06-27 15:04:15 +00:00
Adam Williamson
efc9eb4ccf openqa/server: ignore_errors in createhdds
it's not really fatal when it fails (except on first deployment)
and nothing else later depends on it, so we can go ahead and
continue the run even if it fails
2016-06-07 12:59:08 -07:00
Adam Williamson
ac35a48d8c openqa/server: set up a cron job to do createhdds daily
instead of just relying on it getting run when we do an
ansible run, since that's intermittent and it's annoying
when you want to do an ansible run and it sits there for
hours creating disk images. This way we'll know they'll
get updated regularly and ansible runs should never get
blocked on image creation, though we still do it in the
ansible plays just in case (and for initial deployment).
This should now be safe, with the recent changes to make it
time out gracefully and run atomically. We also use withlock
to make sure we don't stack jobs.
2016-05-24 11:38:46 -07:00
Adam Williamson
a0a335ed4d openqa/server: hide asset download links
this will only work with the new openqa package builds I just
did, but won't break anything with older ones. With a new enough
openQA package, it'll prevent the web UI from showing download
links for ISOs and HDD files.
2016-05-24 11:08:35 -07:00
Adam Williamson
a4dc1e0068 openqa/server: create 'other' asset dir
without this, ARM tests do not run (phab T801)
2016-05-24 10:14:02 -07:00
Adam Williamson
de64bbf198 openqa/worker: tap workers have default classes too
we don't want these workers to *only* run tap tests, so put the
default classes into their WORKER_CLASS too.
2016-05-05 14:47:56 -07:00
Adam Williamson
6c3f5bbfc6 openqa/worker: move tap-specific packages to tap-setup 2016-05-05 14:15:13 -07:00
Adam Williamson
b0b7dc9b47 openqa/worker: give up on GRE, single tap host instead
OK, this GRE crap ain't working. Let's give up! Instead let's
have one tap-capable host per openQA deployment, so all the
tap jobs will go to it. This...should achieve that. Let's see
what blows up.
2016-05-05 14:10:46 -07:00
Adam Williamson
5503e325e1 move qa06 to stg workers
we have a big mismatch between prod and stg atm (stg has 4
workers, prod has 18). let's make it 14 vs. 8 and also give
stg two worker hosts so we can test multi-worker-host scenarios
2016-05-05 13:32:43 -07:00
Adam Williamson
fa7d2529fa openqa/worker: enable STP on bridge
I think we'll need this to avoid routing loops with the tunnels.
2016-05-05 13:17:47 -07:00
Adam Williamson
5ddbf54811 openqa/worker: oh ok, probably this
duh quotes are hard
2016-05-05 11:22:42 -07:00
Adam Williamson
4ec8d3f50a openqa/worker - okay maybe this? WHO KNOWS LET'S SEE
watch the pretty pretty fireworks
2016-05-05 11:18:21 -07:00
Adam Williamson
d3ec93d503 openqa/worker: try and fix the group loop... 2016-05-05 10:38:31 -07:00
Adam Williamson
7a37862fbc openqa/worker: try setting up GRE tunnels between worker hosts
everyone stand back, this one's gonna go boom.
2016-05-05 10:32:57 -07:00
Adam Williamson
5e2f2cc32f openqa/worker: change a couple of task names a bit 2016-04-27 21:19:21 -07:00
Adam Williamson
1ed4fa2e31 openqa/worker: drop (I think) unnecessary bridge status check
I think the notify restart of network.service should deal with
this on first deployment, so get rid of it.
2016-04-27 21:17:16 -07:00
Adam Williamson
5e296b4b4a openqa/worker: deal with eth1 as well 2016-04-27 19:34:24 -07:00