Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks: Delay webhook startup; metrics: Adjust config to Prometheus 3 #634

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

martinpitt
Copy link
Member

Some fallout from my CI wrestling today (for OpenSSL 3 certs, this was unrelated Yak shaving).

Starting the AMQP and webhook container in parallel very often runs into
webhook not yet being able to connect to the AMPQ server, and thus
getting trapped in a crash loop until it wins the race.

Delay the webhook startup by 10 seconds. This isn't scientific, but good
enough for the two times a year that we restart this pod.
The "alertmanagers:" schema changed.
@martinpitt martinpitt requested a review from jelly December 16, 2024 14:31
Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sleep 10 feels a bit hacky, couldn't the webhook just retry a few times. Anyway, lgtm.

@martinpitt
Copy link
Member Author

couldn't the webhook just retry a few times

Yes, absolutely -- this was a quick hack to unbreak the setup. I'll look into updating the webhook script itself. It already has a retry loop, which apparently doesn't work. Dang, I should have captured the precise backtrace..

@martinpitt martinpitt merged commit b5ca828 into main Dec 16, 2024
3 checks passed
@martinpitt martinpitt deleted the ci branch December 16, 2024 15:08
@martinpitt
Copy link
Member Author

See commit 06c2717. I put it on my TODO list to fix this properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants