Commit Graph

70 Commits

Author SHA1 Message Date
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
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
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
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
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
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
a3f6faa9f5 drop no-longer-needed git workaround from openqa plays 2016-08-10 12:06:41 -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
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
ca0e747c8d openqa: drop some stray enablerepos for the old COPR
the COPR stuff is long gone so these weren't doing anything,
they just got left around by accident.
2016-04-13 08:35:00 -07:00
Adam Williamson
55d6ada0f9 openqa/server - restore a quote that went mysteriously missing
srsly, what the hell.
2016-04-08 16:38:54 -07:00
Adam Williamson
1e71112e09 openqa/server: fix template load for non-infra
I tweaked the playbook to not patch the templates for non-infra
deployments, but then forgot to make test loading work using
non-patched templates for non-infra...
2016-04-08 08:02:02 -07:00
Adam Williamson
f010264974 openqa/server: try enabling disk image generation, redux
rwmj has refreshed the i686 base image now, so let's try this
again.
2016-03-31 05:56:15 -07:00
Adam Williamson
1ef512244d openqa: u-t not needed, more generic compatibility
necessary updates for openqa roles have gone stable for now, so
disable updates-testing usage (keep the plays around commented,
though, since we'll likely need them again in future). Also, a
bit more attempted support for non-infra use: make the monkey
patching of the repo URLs in the test templates only happen if
deployment_type is defined, actually respect the openqa_consumer
var (don't enable the job scheduling consumer unless it's truey)
and only enable any wiki reporting consumer if deployment_type
is defined.
2016-03-30 17:13:57 -07:00
Adam Williamson
8384d1a7a2 Revert "openqa/server: try turning disk image generation back on"
This reverts commit 9872fe3fc8.
Looks like the i686 base image hasn't been refreshed yet, so
i686 image generation still fails. Curses!
2016-03-30 17:02:55 -07:00
Adam Williamson
9872fe3fc8 openqa/server: try turning disk image generation back on
rwmjones says the guestfs / rpm bug has been fixed (a new base
fedora-23 image has been uploaded which should avoid it, anyway)
so let's try turning disk image generation back on and see how
it flies.
2016-03-30 15:55:43 -07:00
Adam Williamson
e265e90c0d openqa/server: disable hard disk image generation temporarily
https://bugzilla.redhat.com/show_bug.cgi?id=1320754 is messing
it up. Disable for now so I can get other changes through.
2016-03-23 17:13:36 -07:00
Adam Williamson
f4133798f6 openqa/server: make geekotest static UID/GID optional
I'm still kinda trying to make the openqa roles usable outside
of infra, so now I have a minute, let's do this: it makes the
static UID/GID for geekotest optional and configurable, instead
of hard coding it. For infra we set the value to 601, as we
are already using, in the openqa and openqa-stg group config.
2016-03-19 16:28:09 -07:00
Adam Williamson
461aac031c openqa_server: tweak the asset size changed_when a bit
just in case we wind up with multiple job groups, this should
be more correct.
2016-03-19 16:14:03 -07:00
Adam Williamson
2bbac61464 whoops, add a missing quote 2016-03-19 16:10:14 -07:00
Adam Williamson
cb7bfcb614 openqa: allow specifying asset size limit
this is a database value and there's no openQA API function to
set it, so we have to do it directly in the database...this
*should* work. I think. I should add equivalent functionality
for sqlite use as well, really...
2016-03-19 16:09:20 -07:00
Adam Williamson
eb44a82979 openqa/server: run createhdds with python3
there seems to be a bug in python2-guestfs which causes the
disk image with an updates.img file to be broken (the updates
image is only 4096 bytes long and incomplete). When built with
Python 3 the image seems to be fine. So, run the script with
python3 (as its hashbang says) and ensure necessary packages
are installed.
2016-03-18 15:37:21 -07:00
Adam Williamson
c588b55419 openqa/server: whoops, gotta clean this too 2016-03-10 20:20:31 -08:00
Adam Williamson
39c72cc3e4 clean up openqa/server a bit more
I'd like to revise this a bit to be usable outside infra again,
but tomorrow...or later...
2016-03-10 20:19:39 -08:00
Adam Williamson
1a33048416 openqa: install openqa-plugin-fedmsg 2016-03-10 17:07:13 -08:00
Adam Williamson
5de040a201 openqa/server: enable fedmsg plugin 2016-03-10 16:56:47 -08:00
Adam Williamson
2feaf0e2ef openqa/server: allow apache to read from NFS 2016-03-08 14:26:46 -08:00
Adam Williamson
a8eba01a56 openqa/check-compose: tweak package installs and sources
we need some from updates-testing for now. also, we need
openqa-httpd for the server.
2016-03-08 14:09:28 -08:00
Adam Williamson
fc588796e5 openqa/server: actually set geekotest user group to geekotest 2016-03-08 13:59:03 -08:00
Adam Williamson
59cbb73597 actually python2-fedfind as we explicitly run it under python2 2016-03-08 12:47:43 -08:00
Adam Williamson
a167d37411 openqa/server: createhdds.py needs python3-fedfind 2016-03-08 12:45:14 -08:00
Adam Williamson
b718b8fbd4 openqa: test sourcing server data from NFS on stg
Well hey, let's hope this works!
2016-03-08 12:16:24 -08:00
Adam Williamson
73da02a655 openqa: make openQA and FAS credentials root.fedmsg 0640
with openQA jobs being scheduled and wiki results reported
(well, when we get that working again) by fedmsg-hub consumers,
we have to let the fedmsg user read these files.
2016-03-07 11:26:16 -08:00
Adam Williamson
016f04c30d openqa: enable asset downloading from fedoraproject.org 2016-02-18 12:06:46 -08:00
Adam Williamson
7eacf03ebc drop use of COPR for openQA
all required packages except openqa itself are now in main repo,
openqa is in infra repo.
2016-02-15 16:16:19 -08:00
Kevin Fenzi
9006a36832 Update all calls to sudo to use 'become' and sudo_user to 'become_user' 2016-02-02 21:24:45 +00:00
Adam Williamson
78755e7a36 openqa: enable openQA-stg COPR on staging hosts 2016-01-15 17:33:30 -08:00
Adam Williamson
b3851786fa openqa-server: never register 'changed' for this (check) step 2016-01-12 17:21:36 -08:00
Kevin Fenzi
f0c80375b5 Remove action: in all roles. 2016-01-06 21:58:31 +00:00
Adam Williamson
cc8d3896a7 openqa: use 'shell' not 'command' for a step that needs it
this step uses && and >, needs a shell.
2016-01-04 17:10:19 -08:00