Commit Graph

27 Commits

Author SHA1 Message Date
Adam Williamson
a3bae57b0e relvalconsumer: fix email error message subject
boy, Lukas is sure gonna have a nasty surprise in his inbox in
the morning.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 17:45:20 -07:00
Adam Williamson
0793e2d049 relvalconsumer: fix stupid python vs. toml boolean syntax...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 17:26:15 -07:00
Adam Williamson
0ab1d6a8b5 relvalconsumer: fix handler text
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 16:48:01 -07:00
Adam Williamson
a6158e229a relvalconsumer: Whoops, forgot the restart handler
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 16:46:32 -07:00
Adam Williamson
aba005a548 Convert relvalconsumer to fedora-messaging
Following the basic scheme I set up for fedora_openqa, hope it's
all right...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 16:40:42 -07:00
Paul W. Frields
4172dc0306 relvalconsumer: change dnf -> package 2019-06-11 15:43:19 +01: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
87a9604f05 relvalconsumer: explain why 'relval' package is installed
...because I'd totally forgotten and was thinking it maybe could
be removed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 11:09:28 -08:00
Adam Williamson
b30732e722 openqa etc.: drop Python 2 -> 3 migration bits
Both stg and prod are migrated now, so let's clean up the plays
to be pure Python 3.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 10:13:56 -08:00
Adam Williamson
2426ab6e5c Use new --nodeps for Python 3 setup.py installs (oqa etc)
This should hopefully avoid an awkward problem I noticed with
'python3 setup.py install' dumping replacements in /usr/local
for packaged scripts (e.g. fedmsg-logger)...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 14:13:30 -08:00
Adam Williamson
11fdb6b643 oqa/fedmsg3: trim python2 package removals, still need fedmsg
openQA fedmsg plugin still needs python2-fedmsg for now...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 14:10:14 -08:00
Adam Williamson
56d689d31a Fix Py2 install detection and trim py2 package removals
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:57:10 -08:00
Adam Williamson
bf2ace3d6a Sigh, fix rvc pip command ordering
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:43:02 -08:00
Adam Williamson
43db2ee9fc Fix Python 2 removal for oqa, rvc and acr as well
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:35:25 -08:00
Adam Williamson
0233052858 Some fixups for oqa fedmsg 3 (prev commit)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 11:09:31 -08:00
Adam Williamson
6c390c669b First cut at migrating openqa-stg to fedmsg-3
This includes some tweaks to the core fedmsg roles to allow a
'generic' way of indicating that a box should use fedmsg-hub-3
not fedmsg-hub, and make the restart notification work for that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 10:53:16 -08:00
Adam Williamson
c69c2fd485 openqa/relvalconsumer: fix all other dnf loop cases to use lists
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-10-09 13:50:39 -07:00
Kevin Fenzi
ca306d59d9 Do not write these token files for now. 2018-10-09 16:47:40 +00:00
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
342bab110b relvalconsumer: allow fedmsg-hub to write the token cache
Been getting access denied errors lately, and from a look at
the python-openidc-client code, seems that clients may need to
write as well as read the token cache sometimes.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-04-25 09:01:48 -07:00
Adam Williamson
c3a7acd301 Update relvalconsumer package installs
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-29 22:51:40 -07: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
02434566f0 relvalconsumer: handle wikitcms being disabled 2016-11-30 13:33:31 -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