Commit Graph

303 Commits

Author SHA1 Message Date
Kevin Fenzi
6ad86be1fe Revert "haproxy: switch kojipkgs to use apache backend on 8080"
This reverts commit 19cf971bde.

We want to switch this back now that the tcp_timeout issue is solved.
2025-11-13 10:42:56 -08:00
Kevin Fenzi
7925576c33 haproxy: Also retry oci-registry connections
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-08 15:04:18 -08:00
Kevin Fenzi
b66f5a7bf5 haproxy: more cleanups. Drop old pdc fragment, fix geoip-city check to use http/1.1
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-03 10:20:27 -08:00
Kevin Fenzi
748c10d41c haproxy: more cleanups and syntax fixes.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-03 09:36:19 -08:00
Kevin Fenzi
19cf971bde haproxy: switch kojipkgs to use apache backend on 8080
This avoids the tcp timeout problem totally from what I can tell.

Just switch it for now as we continue to work on the underlying problem.

This does mean that we don't use varnish, but apache is able to
keep up ok so far.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-03 08:26:37 -08:00
Kevin Fenzi
7f3289963e haproxy: clean up warnings, drop openqa01
openqa uses apache load balancer now, and doesn't use haproxy at all.
Clean up some things that current haproxy warns about on start.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-03 08:26:37 -08:00
Michal Konecny
ba209ee7df Fixes for OpenID only ipsilon instance in staging
After some troubleshooting I was finally able to fix the OpenID
authentication on staging. These are the changes I ended up deploying to fix
the remaining issues.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-11-03 09:33:32 +00:00
Kevin Fenzi
87d350504a haproxy: retry failed connections to pkgs01/src
This seems to be a similar case to the kojipkgs one, where we see from
time to time timeouts from proxies to pkgs01.

If it's a health check, haproxy will mark the backend down.
If it's a user request they will get a timeout and a 503 back.

This will help mitigate the second problem and retry those.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-11 01:20:49 +00:00
Kevin Fenzi
46fd68d504 proxies / haproxy: setup some retry for kojipkgs
We are having problems with connections sometimes hanging from proxies
to kojipkgs. Lets try and mitigate that at the haproxy level and
hopefully improve things while we try and figure out what the underlying
cause is.

This should retry connections that failed for any 'retryable' output
(including timeout) and also it should try a _different_ backend than
the one that returned the error. This will not eliminate errors, but
should reduce them.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-08 13:39:38 -07:00
Kevin Fenzi
fd53786d35 f43 final freeze
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-07 17:55:46 -07:00
Greg Sutcliffe
69645f5da5 HAProxy/Rsyslog: fix logging to the rsyslog UDP port that haproxy expects
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-10-07 21:21:02 +00:00
Michal Konecny
3b238ac133 [haproxy] Set permanent cookie for openid
We originally set header value instead of cookie. This will set it up
and do redirect correctly.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-02 11:28:38 +02:00
Michal Konecny
724cb330d7 [haproxy] Don't check the /openid endpoint
The ipsilon is returning redirect when hitting /openid endpoint. Let's
us just check /.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 14:59:11 +02:00
Michal Konecny
94cf028ed7 [haproxy] Set cookie value for ipsilon openid
To be redirected to openid server during the authentication let's set a
cookie for it and match against that.

This was tested and it's working, but ipsilon is doing something with
the requests and the cookie is gone after redirect.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 12:54:41 +02:00
Michal Konecny
3db583cdfb [haproxy] Use the correct method
req.body_payload is unknown, let's use req.body instead.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 10:18:40 +02:00
Michal Konecny
3df75c98bb [haproxy] Redirect openid based on payload
When checking if the server has openid capabilities we are checking for
openid_identifier, let's redirect that to openid backend as well.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 10:02:12 +02:00
Michal Konecny
aa5e1674c0 [haproxy] Fix the variable name
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 09:05:03 +02:00
Michal Konecny
b24e4e976f [haproxy] Add rule for openidc endpoint
The paths are too similar and /openidc ended up being routed to wrong
ipsilon server, let's add specific rule for OIDC as well.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 08:58:22 +02:00
Michal Konecny
abe254334e [haproxy] Add redirect for openid only ipsilon
Adding redirect to openid ipsilon instance for staging.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-01 08:30:46 +02:00
Adam Williamson
64ffac4caf haproxy: only proxy rabbitmq on rdu3 proxies
Prior to 38d138e this condition existed with 'iad2' instead of
'rdu3'. @abompard took it out entirely, but that was wrong, it
makes the external proxies include this block. We need to put the
condition back with the correct data center name.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-03 12:05:00 -07:00
Nils Philippsen
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
Kevin Fenzi
b53014c3a4 haproxy / switch pkgs to rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-01 10:59:26 -07:00
James Antill
ea5ca95c57 Change iad2 things to rdu3 for zabbix. Namely haproxy/agent.
Signed-off-by: James Antill <james@and.org>
2025-07-01 13:29:08 -04:00
Aurélien Bompard
38d138e9e0 Relay RabbitMQ on the proxies in RDU3
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-27 14:32:48 +02:00
Kevin Fenzi
9ef0759ca2 haproxy: enable src and kojipkgs in rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-26 15:26:10 -07:00
Kevin Fenzi
41dcbe734f haproxy: correct bootstrap hostname
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 14:40:16 -07:00
Kevin Fenzi
a5e3b32175 haproxy: add stg rdu3 openshift apis
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-24 14:36:30 -07:00
Kevin Fenzi
07d410c5d7 haproxy: drop bootstrap node for prod rdu3 openshift
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-19 11:16:55 -07:00
Kevin Fenzi
eb3178f55d openshift in prod rdu3: initial cut at setting up control plane
Added host vars for all the control plane vm's and bootstrap node.
Set latest version for downloading and setting things up.
Setup haproxy in rdu3 prod to load balance the ocp api and internal api.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-12 14:33:37 -07:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
Kevin Fenzi
55056c677e haproxy: remove a bunch of services that moved to openshift or went away
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-12-08 12:36:13 -08:00
Kevin Fenzi
e3e2cb1d93 odcs: retire service ( infra 12192 )
Time to retire ODCS. ELN is moved off and that was the last thing using
it. Thanks for all the service ODCS!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-24 18:21:51 +00:00
Kevin Fenzi
c4024c4aa4 pdc: fare thee well!
This commit retires pdc from ansible.
The website should get redirected to a wiki page about the retirement.
If for some reason we need to bring things back, the vm's will still
have their disks and xml saved off so we can bring it back.
Would need to revert this, run proxy playbooks and do a little cleanup
on the redirect, then bring the vm's back up.
Hopefully we don't have to.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-08-02 13:39:15 -07:00
Kevin Fenzi
d11f9c5ced epel7 retirement
Drop epel7 all the places in ansible where it is and makes sense.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-03 20:00:59 +00:00
Kevin Fenzi
d366194a22 module-build-service (mbs): retire service
With the EOL of Fedora 38 yesterday, we are no longer building any
modules and can retire our module build service.

Note that toddlers needs to be adjusted still, that will happen after
this.

Thanks for all the modules!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-22 13:38:53 -07:00
Kevin Fenzi
194213a6bf Revert "haproxy: set keepalive mode for kojipkgs"
This reverts commit fa729a6210.

See https://pagure.io/releng/issue/11439

Lets revert this to check on the rpm-ostree retry fix.
2024-05-07 11:21:47 -07:00
Kevin Fenzi
c84b99223c osbs: raise a glass for it's service
This removes osbs and allmost all it's associated playbooks and files.

It served long and well, but we no longer need it.
flatpaks are building with a koji-flatpak plugin.
base/minimal/toolbox containers are building with kiwi.
We aren't building any other containers right now, and we did they could
be added to kiwi.

This is the end of an era... I look with nostolga on
ansible-ansible-openshift-ansible (a role to setup ansible on a control
host and run it from our ansible).

Good bye osbs!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-28 12:52:07 -07:00
Kevin Fenzi
fa729a6210 haproxy: set keepalive mode for kojipkgs
We are hitting a sporadic and anoying 502 error with ostree pulls.
see https://pagure.io/releng/issue/11439

The problem seems to be between haproxy and varnish on kojipkgs01.

We set the httpclose option in haproxy globally, which closes
connections as soon as it thinks they are done.
Setting this option 'httpkeepalive' will keep connections alive
and handle the case of lots of fast connections downloading small
objects much better.

Sadly, we don't have a way to test this in staging, so we would need to
test in prod and roll back if there's problems.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-15 11:57:46 -07:00
Nick Bebout
b5d0a51ae9 Revert "Reapply "Change ipa01-backend to actually point to ipa02""
This reverts commit d28ebf8cb5.
2024-01-25 11:23:03 -06:00
Nick Bebout
d28ebf8cb5 Reapply "Change ipa01-backend to actually point to ipa02"
This reverts commit 7b71471851.
2024-01-25 08:50:46 -06:00
Nick Bebout
7b71471851 Revert "Change ipa01-backend to actually point to ipa02"
This reverts commit b64524ec9a.
2024-01-24 16:17:57 -06:00
Nick Bebout
b64524ec9a Change ipa01-backend to actually point to ipa02 2024-01-23 16:06:05 -06:00
Kevin Fenzi
20dc948173 notifs (old fmn): retire
We are retiring this in favor of the new service.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-15 12:28:28 -08:00
Kevin Fenzi
af8f9531a9 haproxy: fix issue with non iad2 proxies
Turns out zabbix is only in iad2, so we need to not set it up on non
iad2 proxies.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-15 11:14:27 -08:00
Kevin Fenzi
a60ca7159f nuancier: retire and remove from ansible
See https://pagure.io/fedora-infrastructure/issue/11371
This service is retired.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-15 10:44:00 -08:00
David Kirwan
6461430ae3 zabbix: remove conditions on zabbix configration
Rename host zabbix/zabbix.stg to zabbix01

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2023-11-15 08:10:44 +00:00
Kevin Fenzi
9b42cd8cbf haproxy: fix template typo
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-13 13:53:56 -08:00
David Kirwan
8b0581bcad zabbix: haproxy config reworking
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2023-11-09 14:52:30 +00:00
David Kirwan
ee3bac3470 zabbix: haproxy config zabbix production
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2023-11-09 14:04:13 +00:00
Kevin Fenzi
50c61979f0 Revert "zabbix: Add configuration for zabbix prod to haproxy"
This reverts commit d7b20fa114.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-07 06:16:29 -08:00