Commit Graph

55 Commits

Author SHA1 Message Date
Adam Williamson
021c63e9df Update some Forgejo-migrated repo URLs
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-01-09 18:51:10 -08:00
Aurélien Bompard
8248acbe1e RabbitMQ: Drop the zmq.topic exchange, fedmsg has been retired
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-26 10:58:07 +02:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Adam Williamson
1325a7ab15 adamverse: add --no-deps to pip install commands
In various roles I maintain I use `python3 -m pip install` to
directly install a Python project (usually a fedora-messaging
consumer), to avoid the pointless bureaucracy of packaging them.
The roles install all the deps of these projects as packages
first, so pip doesn't have to install any deps, it only installs
the project itself. Well...that's the idea. It's possible for
this to go wrong (say I forget to update the roles when adding
a dep to the project), and in that case I think we'd rather have
things blow up (so I know something's wrong) than have pip
silently install some random upstream wheel system-wide to make
it work. The intent is that all the deps still come from proper
Fedora packages, only these projects themselves get installed
directly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-20 11:10:09 -07:00
Adam Williamson
c60a3afe99 relvalconsumer: update AMI consumer routing keys
This should cover both before and after
https://pagure.io/cloud-image-uploader/pull-request/28 if it
gets merged.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-12 16:58:36 -07:00
Adam Williamson
504b8217d3 openqa etc.: use pip for local installs, not setuptools
On Fedora 39, we ran into an issue with setuptools that isn't
immediately resolvable:
https://github.com/pypa/setuptools/issues/3797#issuecomment-1783613895
using pip like this seems to avoid it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-27 17:23:53 -07:00
Adam Williamson
a5c322b4ee More cleanup on the openQA AMQP stuff
nirik and I went around and around a bit today and ended up back
where we started, but with a clearer understanding of where that
this. This explains it a bit better, and makes what's actually
going on in various places clearer with the use of appropriate
shared variables. This should not actually *change* anything at
all when deployed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-22 23:21:28 +02:00
Adam Williamson
bfcecfa553 relvalconsumer: no --nodeps in setup.py install any more
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-29 09:57:46 -08:00
Adam Williamson
d20c281574 relvalconsumer: drop a stray git version pin
This should've been removed ages ago. Whoops.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-07-02 17:19:34 -07:00
Adam Williamson
bb3146d753 relvalconsumer: pin git checkout to pre-'dist' code for now
I cut a new release for some exciting wikitcms changes, but I
don't want to deploy those on a Friday evening. So pin to the
previous commit for now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-15 19:05:06 -07:00
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
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
b9c5100b7e relvalconsumer: fix AMI consumer logging config
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
bf15583222 relvalconsumer: fix AMI consumer routing keys
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
66d764612b relvalconsumer: add mechanism for disabling services
This is because authing to the wiki on staging is broken right
now, so I want a clean mechanism for turning off all services
that write to the wiki. See
https://pagure.io/fedora-infrastructure/issue/8381

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
5df29f5cd0 relvalconsumer: add missing template file
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
43de361092 relvalconsumer: also enable the new AMI page updater
I just wrote an additional consumer class in relvalconsumer that
should update the new AMI info pages for composes whenever a new
AMI is published; this should enable that new consumer.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:15 +02:00
Adam Williamson
6d0949ba61 relvalconsumer: correct a conditional
This led to Bugzilla submission being disabled on prod, it's
meant to be enabled.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:11 +02:00
Adam Williamson
f9fc5f21eb relvalconsumer: create directory for config file to go in
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:10 +02:00
Adam Williamson
bf2b50d32c relvalconsumer: add template file I forgot in previous commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:10 +02:00
Adam Williamson
10eb5d20f2 relvalconsumer: handle reporting image size bugs to Bugzilla
This relies on changes in relvalconsumer itself and relval.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:10 +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
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