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

[registry-facade] Split off port for readiness probe #9727

Merged
merged 1 commit into from
May 4, 2022

Conversation

csweichel
Copy link
Contributor

Description

This PR removes the port from the domain when checking if a registry host is available.

How to test

Run on a self-hosted installation where the artifact registry (not the one we push images to) is configured using a port, e.g. my-registry.location.com:8080

Release Notes

Fix readiness probe issue in registry-facace when configured registry address contains a port

@corneliusludmann
Copy link
Contributor

I created a setting where I get the same error with the current release. ✔️

Then, I tried these changes. I don't know how other registries behave, however, at least with the Docker registry

curl https://registry-1.testing.gitpod-self-hosted.com:5000/gitpod/supervisor:commit-9b105e094e06575e87a19d57f1381a0dd3746d6b

returns 404 while

docker pull registry-1.testing.gitpod-self-hosted.com:5000/gitpod/supervisor:commit-9b105e094e06575e87a19d57f1381a0dd3746d6b

(after a docker login) succeeds.

Therefore, registry-facade fails now with:

{"error":null,"level":"error","message":"NetworkIsReachableProbe: unexpected status code checking URL","serviceContext":{"service":"registry-facade","version":"commit-9b105e094e06575e87a19d57f1381a0dd3746d6b"},"severity":"ERROR","statusCode":404,"time":"2022-05-03T20:08:05Z","url":"https://registry-1.testing.gitpod-self-hosted.com:5000/gitpod/supervisor:commit-9b105e094e06575e87a19d57f1381a0dd3746d6b"}

Any ideas?

@csweichel csweichel force-pushed the cw/improve-regfac-probe branch from 9b105e0 to b695110 Compare May 4, 2022 13:51
@csweichel
Copy link
Contributor Author

csweichel commented May 4, 2022

I've relaxed the status code requirement to accept anything below 500, i.e. 404 no longer makes the probe fail. Thanks @aledbf for the suggestion.

Supporting proper "is the image present" probes is more complicated.

@csweichel
Copy link
Contributor Author

csweichel commented May 4, 2022

/werft run

👍 started the job as gitpod-build-cw-improve-regfac-probe.4
(with .werft/ from main)

@csweichel csweichel marked this pull request as ready for review May 4, 2022 17:01
@csweichel csweichel requested review from a team May 4, 2022 17:01
@github-actions github-actions bot added team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team labels May 4, 2022
@corneliusludmann
Copy link
Contributor

Tested this with my self-hosted setup and it works like a charm! 🚀

@roboquat roboquat merged commit c483177 into main May 4, 2022
@roboquat roboquat deleted the cw/improve-regfac-probe branch May 4, 2022 18:42
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed: webapp Meta team change is running in production deployed Change is completely running in production labels May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note size/S team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants