Commit graph

50 commits

Author SHA1 Message Date
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
Adam Williamson
c1f4d29dd8 openqa: drop some more always_runs
we really shouldn't always_run these, as they actually *do*
stuff. That does mean that in check mode we won't check if
database init and admin user creation are necessary, but these
are only ever necessary exactly one time at initial deployment
which is likely to be kicked off manually anyway, so it should
not be a problem. We adjust the 'when' condition for the 'wait
for services to start up' action, so it will work in check mode
with the 'services' variable undefined (because the step that
defines it now won't be run).
2016-01-04 17:01:12 -08:00
Adam Williamson
87ba685b13 openqa: drop always_run from git actions
it causes problems (prevents updated code being installed) and
is not necessary (git module supports check).
2016-01-04 16:51:22 -08:00
Adam Williamson
3a114ab7ca openqa: no, seriously, fuck dnf 2015-12-18 19:52:34 -08:00
Adam Williamson
227cdf23b9 openqa: fucking dnf 2015-12-18 19:51:17 -08:00
Adam Williamson
3bd08a441f openqa: run createhdds.py with py2 for now
and install the additional deps.
2015-12-18 19:49:39 -08:00
Adam Williamson
ee8ab4e662 enable openqa disk image generation
the servers have nested virt enabled now, so this should be OK
2015-12-18 19:43:47 -08:00
Adam Williamson
3373f9938d openqa_server: switch to createhdds.py, disable creation for now
This puts in place the bits needed to use the new createhdds.py
for image generation, which works much nicer with ansible than
the old createhdds.sh. For now, the disk creation step is
disabled, because creating some images (including the ones that
get refreshed regularly) requires running VMs, and the openqa
server hosts are VMs themselves and do not currently have nested
virt enabled, so the creation would run extremely slow. Once we
get nested virt enabled, I'll change the condition for the image
creation step to what it should be. Until then I'll carry on
handling image creation manually (both hosts have all the images
at present anyhow).
2015-12-17 13:29:16 -08:00
Adam Williamson
d8ef7c0ad6 openqa_server: try a new approach for checking test changes
basically, dump the config from the server before loading the
templates file, dump it after, and use json_diff to compare.

I wanted to make the actual template loading script from openQA
do some kind of check in '--clean' mode, but given how it's
designed that's not really terribly practical without doing
some major re-architecting, and this seems like a relatively
simple alternative. With this change, the actual "Load tests"
step will never show 'changed', but the subsequent 'Check if
the tests changed in previous step' step will show as changed
when appropriate.
2015-12-15 14:18:14 -08:00
Adam Williamson
402bfe6215 openqa_server: use guestfs direct backend for creating disks
this avoids the need to start and stop libvirtd.
2015-12-15 11:30:13 -08:00
Kevin Fenzi
e6e5470746 Add always_run to tasks where we register things we use later. 2015-12-15 18:59:01 +00:00
Kevin Fenzi
8eebcf0b66 Try just checking out this git content as the right user and drop the non idempotent chown after it. 2015-12-15 18:52:22 +00:00
Adam Williamson
e43cf5940b openqa: create N-2 hard disk images too 2015-12-07 15:12:04 -08:00
Adam Williamson
7e2b87f99a openqa: always fully re-load the test templates
I didn't do this originally because I was trying to make it
only show changed when something had really changed, but it was
too conservative - it wouldn't update when a test definition
changed, only when one was added. Doing it manually is a bit
annoying (you have to do the sed step and the ownership change)
so it's better to let you just re-run the play to update the
tests, even if it does mean getting the occasional spurious
changed state.
2015-12-07 15:05:58 -08:00
Adam Williamson
d45c56decb openqa-server: need libguestfs-xfs
Turns out this was the reason why desktop HDD image generation
wasn't working: we need the XFS support bits for libguestfs or
else it can't resize the partitions.
2015-12-05 11:43:05 -08:00
Adam Williamson
a169937853 openqa-server: make openqa.ini world-readable
there's really no reason for this to be restricted, it doesn't
contain anything sensitive.
2015-12-05 11:30:10 -08:00
Adam Williamson
9d271749fb patch dl.fedoraproject.org in openQA test templates
So apparently hosts within infra can't reach dl.fp.o. This is a
problem as we have that host written in as a reliable repository
URL for a couple of openQA tests. infra hosts can reach dl.fp.o
by the name 'dl.phx2.fedoraproject.org', but nothing outside
infra can reach that hostname. So we don't just want to change
it in the openQA test git repo because we want that to work for
external deployments. So, let's just sed it on the fly for
the infra deployment...
2015-12-03 16:13:40 -08:00
Adam Williamson
8f44bd34b7 openqa: set base_url in openqa.ini
this is needed for openID auth to work properly - otherwise
ipsilon thinks the request is coming from 'https://localhost'
and redirect after auth fails. openQA uses this config setting
for the openID base URL if it's set.
2015-12-01 14:53:46 -08:00
Adam Williamson
c60d19b0ee openqa: restart httpd on apache config change 2015-11-17 19:24:16 -08:00
Adam Williamson
edd06bae79 openqa: hdd image creation fixups
image creation needs expect, and libvirtd.service to be running,
and the filename it creates was wrong.
2015-11-17 14:17:40 -08:00
Adam Williamson
2b098b34bd set up for openQA deployment
This adds openQA server, worker and dispatcher roles, and
applies them to the appropriate hosts. A few secret vars are
required. See trac #4958 for discussion.
2015-11-13 09:49:00 -08:00