Commit graph

45 commits

Author SHA1 Message Date
Kevin Fenzi
a8714caab3 first cut at changing all the old |changed to is changed per ansible deprecations 2018-05-07 23:51:48 +00:00
Adam Williamson
aa6a0c7071 wikitcms: ensure openidc-client is available for token auth
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-11-16 13:36:17 -08:00
Adam Williamson
d3356663d8 wikitcms token: create directory, install for fedmsg and root
Previous commit didn't work as the directory doesn't exist.
Also, I think we need the file in two places, one for root
(for if an admin runs something wikitcms-ish manually while
logged in as root) and one for fedmsg (for the usual case
when the wiki is updated by fedmsg consumers). So do that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-11-16 13:24:05 -08:00
Adam Williamson
c5450c9cfe openqa, relvalconsumer: write wikitcms token file for new auth
Unattended wiki interaction with the new openidc auth method
requires a special token file which @puiterwijk created and
put in the private store for us. Have the appropriate roles
install it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-11-16 12:59:30 -08:00
Adam Williamson
4a6d33d863 openqa, relvalconsumer: need fedfind/wikitcms from u-t for now 2017-11-10 18:34:10 -08:00
Adam Williamson
873c55d3fc openqa/dispatcher: Install a variant images.json for stg
To get ppc64 tasks run on stg but not prod.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-09-07 09:42:37 -07:00
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
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
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
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
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
9d7f1465ef openqa/dispatcher: correct openQA URL for resultsdb links 2017-02-06 15:45:56 -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
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
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
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
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
60714971fd openqa/dispatcher: now needs python-resultsdb_api 2016-08-08 11:32:25 -07:00
Kevin Fenzi
2b4fac3ee1 Add workaround for git module all around. 2016-07-05 17:07:52 +00:00
Kevin Fenzi
bb28b9213d Work around dnf bug 2016-06-27 15:04:15 +00: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
605fc80786 openqa_dispatcher: enable fedmsg-based result wiki reporting
...by extending the fedmsg consumer config file. Requires the
latest openqa_fedora_tools to work.
2016-03-21 09:10:47 -07: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
61355acddf openqa/dispatcher: drop the old service cleanup stuff
we only needed it once.
2016-03-07 16:51:34 -08:00
Adam Williamson
cb951141c5 openqa_dispatcher: correct a paste-o in fedmsg consumer copy 2016-03-07 12:13:15 -08:00
Adam Williamson
9d4634759b openqa_dispatcher: update a comment 2016-03-07 12:09:00 -08:00
Adam Williamson
651061ea10 openqa_dispatcher: revise for fedmsg hub consumer
ditch the old systemd consumer service, install the fedmsg
consumer config file, add some fedmsg-hub reload notifications.
2016-03-07 12:06:41 -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
f7ea6b51c0 also trim openqa-dispatcher fedmsg reqs 2016-03-04 14:39:43 -08:00
Adam Williamson
7c30dbe0ff drop some old cleanup bits now they've run 2016-03-03 18:09:00 -08:00
Adam Williamson
95a286e23b openqa_dispatcher and check-compose: package dep fixes 2016-03-03 15:59:05 -08:00
Adam Williamson
35824c1ad4 openqa-consumer: restart service on git changes
...otherwise you end up scheduling jobs with stale code and
they fail, NOT THAT THAT'S EVER HAPPENED TO ME
2016-03-02 08:07:57 -08:00
Adam Williamson
389adc835a openqa-dispatcher: damnit, package name 2016-02-24 11:06:51 -08:00
Adam Williamson
0b4e759d01 openqa-dispatcher: requires python-fedmsg now 2016-02-24 11:02:57 -08:00
Adam Williamson
514f9ecba6 openqa: d'oh, type (service not server) 2016-02-24 10:51:55 -08:00
Adam Williamson
24435918ea openqa: adjust for changes to scheduler design
mainly systemd unit changes, clean up the old ones, enable the
new.
2016-02-24 10:49:05 -08:00
Adam Williamson
330d58375d openqa_dispatcher: adjust for changed path in tools
we moved the openqa scheduler within the git checkout.
2016-01-22 13:43:39 -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
Kevin Fenzi
1ba59acc08 Add some more always_run to tasks that register variables. 2015-12-15 19:03:37 +00:00
Adam Williamson
1e0ef2bc88 openqa: check out tools to a different place in dispatcher
Both 'server' and 'dispatcher' roles need to check out openqa_
fedora_tools, but only 'dispatcher' needs to install it. To
avoid having to register a variable in 'server' too and have
the install task check if either variable |changed, just have
two separate checkouts, so the dispatcher checkout will always
have 'changed' when appropriate.
2015-11-24 09:27: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