Commit Graph

44 Commits

Author SHA1 Message Date
Adam Williamson
efddd0d5b1 check-compose: convert to fedora-messaging
Following the patterns from openQA and relvalconsumer. Just one
to go after this!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:45:20 -07:00
Adam Williamson
db1a847517 openqa/dispatcher: use more role vars for messaging config
Now I've built the whole thing and it works, I feel like this
is a cleaner design: we use a lot more role variables in the
messaging config files, set defaults for them that are
appropriate for non-infra use, and set the correct values for
the infra servers in the group vars. Let's just hope I got it
all right...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 15:05:23 -07:00
Adam Williamson
054bdeaf6a openqa: consolidate some server settings to a common group
There are several variables we set to the same value for openQA
prod and staging servers. Instead of duplicating these between
the openqa and openqa_stg groups, let's invent an openqa_common
and put them in there, and add both servers to it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 12:43:22 -07:00
Adam Williamson
080701af48 Try to clean up openqa/rabbit var usage a bit now it works
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 12:12:00 -07:00
Adam Williamson
29100697e8 openqa: fix rabbitmq_server for staging
damn "not really staging"...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:54:43 -07:00
Adam Williamson
848f81fa36 openqa: use openqa_env instead of env, just like env_suffix...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:24:35 -07:00
Adam Williamson
440e0fd91e openqa: rejig env_suffix handling
env_suffix isn't actually set to .stg on openQA staging because
it's not a normal staging host. Let's not set it in case it
breaks other plays, but use a custom var instead.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:19:41 -07:00
Adam Williamson
348145dbfa openqa/dispatcher: first cut at supporting fedora-messaging
This is a big change to support fedora-messaging based consumers
instead of fedmsg ones in the openqa/dispatcher role. This needs
the fedora-messaging branch of fedora_openqa, until that is
merged to stable. For now this is all conditionalized so prod
will continue to use fedmsg. This also improves some variable
usage and documentation in the fedmsg path too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 17:44:42 -07:00
Adam Williamson
4f202be131 openqa: drop all use of wikitcms_user and wikitcms_password
It's all wikitcms_token now, this was all just outdated cruft.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-07 16:56:11 -07:00
Adam Williamson
ed6fb9c465 Update check-compose role for Greenwave integration
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-05 19:33:06 -08:00
Adam Williamson
8459241233 openQA: try bumping asset size limits a bit
This is a slightly inexact science, but I think we have solid
free space on both servers and it does seem like assets are
getting thrown away pretty aggressively, so let's see how this
does.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-01 08:40:09 -08:00
Adam Williamson
b87474ad30 Move openQA prod over to Fedora (postgres 10) db host
Just as we did for stg last week.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 14:18:22 -08:00
Adam Williamson
189aa8bbb8 Update list of recipients of openQA error mails
Tim's away ATM and Lukas replaced Petr on this beat.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-08-27 15:47:43 -07:00
Adam Williamson
6af8e01720 Also allow openQA prod to send out 'ci' fedmsgs
Since this message format spec is public now:
https://pagure.io/fedora-ci/messages

Let's have production send out messages in that format as well
as staging (well, more or less that format...actually a sort of
'pre-production' version of an addition to that format).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-08-23 10:16:54 -07:00
Kevin Fenzi
da8324764f Drop special remote_tmp casing for targets with become, instead just switch everything to use /tmp for remote tmp.
ansible picks a pretty random dir and this works with the case of users who cannot write to their homedir.
2018-07-11 21:29:29 +00:00
Kevin Fenzi
137182088d fix in prod also and add comment about tmp and become_user 2018-06-28 18:15:30 +00:00
Adam Williamson
c01bdeee92 check-compose: update template to fix Atomic compose mails
The special configuration for check-compose mails for two-week
Atomic nightly composes was broken due to fedfind changes. We
need to tweak this template a bit as part of fixing it up.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-04-25 14:10:58 -07:00
Adam Williamson
25d1c79a4b Tweak openQA asset size settings again
Staging is running out of space...let's kick it back down to
300, and also create a separate setting for update group asset
size. We test lots of updates, and for each update we only need
to upload one disk image, so we really don't need 300GB of
asset space for update job groups, that just means we'll keep
like 300 update disk images lying around. If PPC starts getting
incompletions again I'll have to, uh, do something? Yeahhh.
Something.
2017-11-30 11:48:22 -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
f7a9424a42 Send openqa fedmsg errors to pschindl instead of jsedlak
jsedlak is moving on, pschindl is replacing him.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-09-08 10:52:43 -07:00
Adam Williamson
fe367168b3 check-compose: send Atomic mails to atomic@ not cloud@
As requested by dustymabe.
2017-07-28 22:39:52 -07:00
Adam Williamson
a83df14f98 update permitted fedmsg topics for openQA (add comment msgs) 2016-12-09 11:35:04 -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
Adam Williamson
7c938bc830 reconcile cosmetic differences between openqa and openqa-stg 2016-05-04 08:54:59 -07:00
Ralph Bean
790ba6f9fd Add some sysadmin-qa members to the error emails from openqa. 2016-04-06 13:40:23 +00:00
Adam Williamson
69f592abbf using the right goddamn syntax usually helps, adam 2016-03-19 16:32:15 -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
37d3559893 openqa: set asset size for prod too, since it seems to work 2016-03-19 16:18:21 -07:00
Adam Williamson
7e914a1d7b openqa: set fedmsg_active True 2016-03-10 16:35:09 -08:00
Adam Williamson
f3adb758c8 install fedmsg certs for openqa server hosts 2016-03-10 14:10:04 -08:00
Adam Williamson
7f5bfecaa7 openqa: freeze status in group vars not host vars
seems more common.
2016-03-10 14:04:57 -08:00
Adam Williamson
96fb35d6b8 (hopefully) enabled nested virt for openqa servers
at deployment time, automatically (it was done manually before)
2016-03-08 14:52:35 -08:00
Adam Williamson
197d76d873 check-compose: mail to mmcgrath's fp.o address
bastion.phx2 does not relay, only does fp.o local delivery, so
since we're sending the compose check emails via bastion, we
have to send to fp.o addresses.
2016-01-20 11:06:35 -08:00
Adam Williamson
9a1f476909 check-compose: only send Postrelease report on error
Cloud folks want this email sent only if there's some kind of
problem (missing image or openQA failure), I've just added an
option to check-compose to allow for that, enable it here.
2016-01-19 14:46:29 -08:00
Adam Williamson
7371d28610 check-compose: send Postrelease emails to appropriate folks
This is for https://phab.qadevel.cloud.fedoraproject.org/T690 ,
it goes along with some changes to check-compose itself to
allow reports for different milestones to have different config
settings, which (if I didn't mess anything up) should result in
those reports going to Mike McGrath and the cloud@ list, as
requested, while Rawhide and Branched reports continue to go to
test@ and devel@.
2016-01-19 14:14:00 -08:00
Adam Williamson
0c4d3070b2 check-compose: re-use external_hostname for checkcompose_url 2015-12-05 13:32:49 -08:00
Adam Williamson
b24574c8c1 check-compose: set base URL for compose check reports 2015-12-05 13:14:16 -08:00
Adam Williamson
57601d915e check-compose: apparently no dashes in variable names? WHATEVS 2015-12-04 19:01:53 -08:00
Adam Williamson
09afa5ce5f add a check-compose role and activate it on openqa servers
I just killed the old BOS openqa deployment, which sends out
those 'compose check' emails, so I'm gonna go ahead and have
this new openqa deployment start sending out those emails a
little earlier than planned. This should result in both prod
and staging openqa running a compose check each day, but only
prod should actually send out an email report.
2015-12-04 18:48:44 -08:00
Adam Williamson
24cbd634b2 openqa-stg: allow port 80 through firewall too 2015-11-30 12:09:42 -08:00
Kevin Fenzi
7abc80283d Fix tcp var 2015-11-28 23:17:45 +00:00
Tim Flink
0186046d3b adding openvpn to openqa production 2015-11-18 03:33:39 +00: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
Tim Flink
6bce843a11 initial ansible config for openqa, openqa-stg, openqa workers 2015-11-06 23:11:50 +00:00