Commit Graph

93 Commits

Author SHA1 Message Date
Kevin Fenzi
ddc195b56c tasks: drop 2 missed old motd tasks
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-27 17:44:53 -08:00
iamyaash
b3d6a90b9a motd generic template added
migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
2025-01-28 01:10:14 +00:00
Ryan Lerch
dbdb0d9824 Fix the final 50ish casing linting errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-22 07:30:55 +10:00
Aurélien Bompard
b4462755f0 Prefix variables in rabbit/queue
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2024-12-03 11:58:18 +01:00
Aurélien Bompard
d23b6f2d9b s/user_username/user_name/g
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2024-12-03 11:12:47 +01:00
Ryan Lerch
4a4e7e07cb [ansible-lint] prefix variable names for rabbit/user role
ansible-lint requires that variables for roles are prefixed with the
name of the role. This commit prefixes the variables for the
rabbit/user role with user_ as required by ansible-lint

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-12-03 10:48:45 +01:00
Ryan Lerch
2cf38c1f17 [yaml-lint] fix yamllint errors and warnings on plabooks
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-25 19:04:25 +10: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
5a7591a618 openqa AMQP: mark the users as not publish-only
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 13:33:54 +02:00
Adam Williamson
b50fa6a477 openqa amqp: fix stg-on-prod queue names
so, this was working before somehow, but it was pretty clearly
wrong. We were using queues owned by openqa.stg on the prod
rabbitmq instance for the cases where the openQA "stg" consumers
need to listen to prod queues. This can only have been working
with an openqa.stg user on prod, which seems wrong. Instead,
these three consumers should do it the way the relval and
relvalami consumers do - use a queue owned by the "openqa" user,
but with a suffix so they have a different queue from the actual
prod queue. The upshot of this is that in the configs, we should
go from:

amqp_url = "amqps://openqa:@rabbitmq.fedoraproject.org/%2Fpubsub"
...
queue = "openqa.stg_scheduler"

- which is weird and I have no idea how it ever worked - to:

amqp_url = "amqps://openqa:@rabbitmq.fedoraproject.org/%2Fpubsub"
...
queue = "openqa_scheduler_stg"

- which seems much more sensible.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 13:15:38 +02:00
Adam Williamson
e3a4908ae0 ...so close...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 12:27:03 +02:00
Adam Williamson
31f4668476 openqa: tweak rabbit user creation stuff...
ugh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 12:25:21 +02:00
Adam Williamson
085e6e0828 unquote sent_topics
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 12:07:15 +02:00
Adam Williamson
9953afa06e openqa etc: fix up and improve AMQP messaging configuration
This is triggered by
https://pagure.io/fedora-infrastructure/issue/11375 , but the
changes are rather extensive. Unfortunately, some of the
relevant files got messed up by the alphabetical sort thing that
got run on several group variable files a while ago, so that
confuses the diff a bit - I had to unwind those changes to make
the files readable again in order to make these changes.

Ultimately the goal here is to make the config more consistent
and more functional - the variables used and their names should
be more consistently related to what they're actually *for*,
which I didn't entirely understand when setting this up. So
we have variables for the username being used in each case and
we use that variable where we're referring to the username, for
instance. This should also make the whole thing about the cases
where listeners on the openQA stg/lab instance need to listen
to prod messages clearer, too. It also makes the user creation
clearer by doing it explicitly, just once per user, instead of
haphazardly doing it implicitly through the queue definitions.

And finally it should also actually fix 11375, by giving the
appropriate write permissions to each user.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-21 12:04:55 +02:00
Andrew Heath
a961a5ed7d updating playbooks to work with ansible 2.14 2023-05-18 15:28:34 -04:00
Aurélien Bompard
4d36f9ed50 Set the sent_topics for openqa
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-15 15:10:24 +02:00
Adam Williamson
38621e4091 Remove duplicate definitions of openQA-ish AMQP routing keys
We defined all these in an inventory variables, but also listed
the same keys explicitly in the queue configs in the group
playbook. Let's not do that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2021-11-19 09:58:26 -08:00
Nils Philippsen
6fcbc946ee ipa/client: enable for openqa in prod
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-24 13:44:33 +01:00
Adam Williamson
efd03ed810 Grr, need to teach openQA playbook to include the vars
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-21 19:01:44 -08:00
Adam Williamson
c678f1caf6 Add testcase_stats role to publish testcase_stats HTML on openQA
As with fedora_nightlies, I'm offloading this from my personal
domain. Happily this one doesn't need a consumer, it just runs
hourly. Again we just dump the output in openQA's public dir.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-21 18:58:08 -08:00
Adam Williamson
9e4e8a5a71 Set up fedora_nightlies queue
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-21 18:18:32 -08:00
Adam Williamson
cf49ccbbdc Add new fedora_nightlies role on openQA prod server
This is to get it off my personal domain (finally). Having it on
the openQA server is still a bit of a hack, but at least it's
under fedoraproject.org now and off my hands. This is a consumer
that runs a static site generator which produces a page full of
links to the most recent nightly compose images, basically.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-11-21 17:31:03 -08:00
Kevin Fenzi
6f35dc95cf openqa: fix stg to lab group naming.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-21 14:56:20 -07:00
Kevin Fenzi
a92253601d openqa: drop openvpn role
In phx2 we used a vpn to openqa01 and all the proxies reached it on
that. In IAD2 that network is more isolated and cannot connect to the
vpn, so we just access it from the IAD2 proxies. If this turns out to be
a problem later we can adjust the RHIT firewall, re-enable vpn and
re-add it to all the proxies.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-20 12:25:30 -07:00
Kevin Fenzi
7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
Adam Williamson
8c8cf27c2c openqa: conditionally skip relvalconsumer and check-compose
We don't really want/need these roles in IAD yet at all, but the
way the plays are right now we're sort of required to do them.
This skips the queues and roles if a key variable isn't defined,
which should let us skip these cleanly for the IAD deployment.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-01 15:30:11 -07:00
Kevin Fenzi
3685b720b7 iad2: do not use vpn yet on openqa in iad2
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-30 11:26:31 -07:00
Kevin Fenzi
558efd26d8 iad2: just drop openqa_iad2 group until we need it
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-30 11:22:40 -07:00
Stephen Smoogen
e2a8626eee start standing up openqa for iad2 2020-05-29 11:42:14 -04:00
Adam Williamson
209773755d Drop fedmsg roles from openQA servers
These should not be needed any more. They use fedora-messaging
for everything.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
0dd848d945 Drop all autocloudreporter stuff
autocloud is dead. We don't need this any more. I'll decommission
the bits from the hosts manually.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:19 +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
af9875010f Revert "Try overriding rabbitmq_server when creating queues"
This reverts commit 5b14e632af6be7328d361bd14953ed33664f4454. It
didn't help, so let's kill it.
2020-04-24 21:34:09 +02:00
Adam Williamson
64a736625f Try overriding rabbitmq_server when creating queues
The default was changed from 01 to 03, and I'm not sure why, and
this playbook fails where it used to succeed. So see if changing
this helps.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:08 +02:00
Adam Williamson
009179fec6 openqa: add necessary rabbitmq queue privileges (I hope)
Using the mechanism I just invented...we need to be able to
publish to queues prefixed with 'openqa' and 'ci', on both prod
and stg.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:07 +02:00
Adam Williamson
1e0274e20a autocloudreporter: convert to fedora-messaging
OK, now this is the *fourth* time I've done this, maybe I'll
screw it up a bit less this time? Maybe?

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 20:14:31 -07:00
Adam Williamson
d18aa2af4a check-compose: gah fix more settings
why is copy/paste so hard I am terrible at software someone fire
me

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 16:24:07 -07:00
Adam Williamson
6f7de513e8 check_compose: fix queue name
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:49:46 -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
Adam Williamson
a0a6facdb2 openqa playbook: fix relvalconsumer queue name
d'oh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 17:32:18 -07:00
Adam Williamson
31e2e85d8c openqa playbook: rearrange, drop queue 'when' conditionals
This was kinda...a mess. I had just dumped the queue creation
in the staging NFS client play for some reason, and it still
had 'when' conditionals from when I only wanted the messaging
stuff to happen on staging. This cleans all that up and creates
separate plays for the queue creation and NFS client stuff.
The plays should also be in the right *order* now, so we get
the NFS mounts created and the AMQP queues set up *before* we
run the roles.
2019-06-18 17:22:10 -07:00
Adam Williamson
8c41cdf9ac relvalconsumer: fudge queue name to work with openqa auth
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-18 16:48: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
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
d55a265b1e openqa: more messing about with queues...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 08:44:55 -07:00
Adam Williamson
dc387dad55 openqa: partially revert @jcline's broker config change d76e5206
The way this was set up was intentional. For staging rabbitmq_
server is already set as the staging broker in openqa_stg group
vars; the setting here was an intentional override for it to use
the prod broker just for the scheduler queue. It has to do that
because it schedules jobs in response to composes and updates;
composes and updates almost never happen in the staging env, so
if we had the openQA staging scheduler listening to the staging
broker it'd almost never schedule any jobs. It has to listen
to the production broker and schedule jobs when real composes
and updates happen.

Still, perhaps the group var setting isn't working here, so
let's keep the explicit setting of the staging server here for
the other two queues and see if that helps that case.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-14 08:33:48 -07:00
Jeremy Cline
d76e5206d7 openqa: use the staging broker URL for making queues
Perhaps this will fix Adam's AMQP troubles

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
2019-06-14 14:04:55 +00:00
Adam Williamson
5be3d907a7 openqa: try dropping rabbit/user role use
rabbit/queue creates the user anyway, and gives it the right
perms, so this seems redundant...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 15:39:29 -07:00
Adam Williamson
1cb6edadd5 openqa: try and fix rabbitmq server for staging scheduler queue
Gah this all sucks.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 15:01:39 -07:00
Adam Williamson
6ff690cb18 openqa: fix the playbook for openqa_env_suffix too
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-13 14:21:13 -07:00