Commit graph

48 commits

Author SHA1 Message Date
Adam Williamson
2b6c8be5aa openqa etc: reinstall local Python libs when Python ver changes
In openqa/dispatcher, relvalconsumer and check-compose roles, we
install Python libraries from git checkouts (these are things we
don't really want to package as they change too much). This
enhances those roles so that we check whether pip considers the
libraries to be installed, and install them if it doesn't. The
purpose is to catch when the Python version rolls over on system
upgrade, and reinstall the libraries in that case - I got bitten
by this when upgrading to F32, I forgot to reinstall these libs
for Python 3.8, and it broke things for a couple of days before
I noticed and fixed it manually...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-13 09:58:50 -07:00
Adam Williamson
22422c3050 check-compose: fix issues flagged by ansible-lint
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-29 17:56:36 -07:00
Adam Williamson
52d7450a9c openqa, check-compose, relvalconsumer: drop remaining fedmsg bits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
cc5a23960a openqa roles: fix fedora-messaging key permissions
geekotest needs to be able to read the key files or else openQA
cannot publish messages.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:09 +02:00
Adam Williamson
455af49b80 check-compose: try to rejig email recipients for new system
I changed how check-compose upstream does email recipient config
to try and fix the 'get Atomic-related emails to Atomic people'
problem again after Fedora-Atomic composes went away. This is
an attempt to adjust the play to populate the config file for
that change. Let's see what blows up!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:03:40 -07:00
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
Paul W. Frields
bd7c65717d check-compose: change dnf -> package 2019-06-11 14:51:19 +00: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
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
f7dcf020fb check-compose: Try and fix 'py2 is installed' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:47:25 -08:00
Adam Williamson
b73122ab2a cc fedmsg-3: make pip non-interactive
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:27:20 -08:00
Adam Williamson
f4778d2019 cc fedmsg 3: try and fix the 'remove old py2' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:25:21 -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
4d884a0e3c Fix more dnf loop deprecations in various roles
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-10-09 14:09:00 -07: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
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
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
a4366ff9f5 check-compose: use appropriate fedmsg consumer
Don't use prod consumer on staging...
2017-02-14 17:12:37 -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
125f2fb8ea check-compose: don't need this now 2016-10-28 12:35:30 -07:00
Adam Williamson
88f5773810 check-compose: update git repo location
I moved it to Pagure.
2016-10-28 12:32:32 -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
6df4aee7f7 check-compose: restart fedmsg-hub on check-compose changes 2016-03-07 12:10:14 -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
c085d11112 check-compose: we don't have a service any more 2016-03-04 14:45:38 -08:00
Adam Williamson
0a678a294f trim check-compose package requirements 2016-03-04 14:38:46 -08:00
Adam Williamson
25e6469e4d check-compose: switch to fedmsg-hub based fedmsg consumer
I'm switching the misc. QA fedmsg consumers over to using fedmsg-
hub, due to https://github.com/fedora-infra/fedmsg/issues/365 .
So we need to adjust how we install check-compose, install a
config file to enable the consumer, and also set up the fedmsg
base and hub roles on the openqa server boxes (which do the
check-compose job ATM).
2016-03-04 14:29:54 -08:00
Adam Williamson
b0a87fe03a check-compose: 'make clean' before 'make'
or else it doesn't do the make step, even if it would change
something. irritating.
2016-03-03 18:14:20 -08:00
Adam Williamson
7c30dbe0ff drop some old cleanup bits now they've run 2016-03-03 18:09:00 -08:00
Adam Williamson
0712971425 check-compose: requires python-m2ext for message signature check 2016-03-03 18:02:58 -08:00
Adam Williamson
911ef78182 this goddamn time 2016-03-03 16:05:54 -08:00
Adam Williamson
98a13eec38 check-compose: python2-fedmsg not python-fedmsg
godfuckingdamnit
2016-03-03 16:01:49 -08:00
Adam Williamson
95a286e23b openqa_dispatcher and check-compose: package dep fixes 2016-03-03 15:59:05 -08:00
Adam Williamson
dbd73b9bde check-compose: update to new fedmsg daemon-y check-compose 2016-03-03 15:42:54 -08:00
Adam Williamson
5f7f976bfb check-compose: enable the postrelease timer 2016-01-19 14:22:24 -08:00
Adam Williamson
d0f44d928f check-compose: drop always_run from git steps
as per the similar recent commit to openqa roles, this is not
needed and breaks stuff (as the checkout is run during 'check'
but the install step isn't, the updated code is never installed)
2016-01-13 21:42:52 -08:00
Kevin Fenzi
a26c89b2a9 Add some more always_run magic pixie dust 2015-12-15 19:06:19 +00:00
Adam Williamson
b24574c8c1 check-compose: set base URL for compose check reports 2015-12-05 13:14:16 -08:00
Adam Williamson
3c617216f9 check-compose: do a systemd daemon reload after installing units 2015-12-04 19:13:42 -08:00
Adam Williamson
57601d915e check-compose: apparently no dashes in variable names? WHATEVS 2015-12-04 19:01:53 -08:00
Adam Williamson
6babdc1883 check-compose: build before install and set prefix 2015-12-04 18:53:24 -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