Commit graph

59 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
5e8167416d check-compose: fix dict unpacking syntax
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:13:59 -07:00
Adam Williamson
1aa79a63a6 check-compose: need a conditional too...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:08:34 -07:00
Adam Williamson
d20635ed36 check-compose: add missing endfor's
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:05:52 -07: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
5bad190a65 check-compose: gah fix config file key name
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 16:12:03 -07:00
Adam Williamson
d004d57576 check-compose: REALLY fix the Python module name...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:57:17 -07:00
Adam Williamson
ff2115653b check-compose: correct python module name in messaging config
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:53:21 -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
75df9afa06 check-compose: handle new two-week Atomic composes
Update the check-compose config file to use the variant config
for the 'Atomic' milestone as well as the 'Postrelease'
milestone - this should DTRT for the new Pungi 4 two-week
Atomic composes, which have 'Atomic' as their milestone, sending
the report to the correct addresses.
2016-06-28 10:11:11 -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
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
5f7f976bfb check-compose: enable the postrelease timer 2016-01-19 14:22:24 -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