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
StorageDriver gcs not registered when updating 2.8.1 -> 2.8.2 #3919
Comments
Very strange because it should be registering itself. None of this code was touched in the last release. Here's the relevant code:
Can you paste the config you are using? It's really hard to make any assumptions without it. |
@milosgajdos GCS is behind a build flag
maybe the build didn't include that? |
Ah yeah, that may be the case though they're exported via env vars, but I can't see where this env var is used: distribution/.github/workflows/ci.yml Line 12 in 7c354a4
Go build tags make me sad 🫠 That being said, I struggle to see how that worked in the previous release 🤔 distribution/.github/workflows/ci.yml Line 12 in b5ca020
@Gerrit91 can you confirm GCS driver worked in the previous release? |
Hey. Thanks for participating. Here is the configuration including some Kubernetes commands, which hopefully illustrates the problem in more detail:
|
Adding the build tags to the diff --git a/Dockerfile b/Dockerfile
index fb54b681..f46e905a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,7 +27,7 @@ RUN --mount=type=bind,target=/go/src/github.com/docker/distribution,rw \
--mount=type=cache,target=/root/.cache/go-build \
--mount=target=/go/pkg/mod,type=cache \
--mount=type=bind,source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \
- set -x ; xx-go build -trimpath -ldflags "$(cat /tmp/.ldflags) ${LDFLAGS}" -o /usr/bin/registry ./cmd/registry \
+ set -x ; xx-go build -tags "${BUILDTAGS}" -trimpath -ldflags "$(cat /tmp/.ldflags) ${LDFLAGS}" -o /usr/bin/registry ./cmd/registry \
&& xx-verify --static /usr/bin/registry
FROM scratch AS binary It looks like this might have happened by mistake in #3903. The Dockerfile used to build the v2.8.1 tag clearly passes the edit: @milosgajdos kindly let me know that the failing GCS driver code is only failing on main, so I've updated my comment to reflect this. |
@marcusirgens you're mentioning a PR on |
Thanks, I was not aware that |
Can confirm this is still an issue. Why was the PR referencing this dropped? |
@valkmit The PR was accidentally closed and has been re-opened so we can cut a new patch release once it's merged. |
I tried to update a registry running in Kubernetes from version
2.8.1
to2.8.2
. The new release image does not come up and instead fails with the following stack trace:The text was updated successfully, but these errors were encountered: