Page MenuHomePhabricator

toolforge docker registry: unable to pull docker-registry.tools.wmflabs.org/toolforge-distroless-base:latest
Closed, ResolvedPublic

Description

Getting:

$ docker pull docker-registry.tools.wmflabs.org/toolforge-distroless-base:latest
latest: Pulling from toolforge-distroless-base
dd5ad9c9c29f: Retrying in 1 second 
960043b8858c: Retrying in 1 second 
b4ca4c215f48: Downloading  599.6kB/599.6kB
eebb06941f3e: Waiting 
02cd68c0cbf6: Waiting 
d3c894b5b2b0: Waiting 
b40161cd83fc: Waiting 
46ba3f23f1d3: Waiting 
4fa131a1b726: Waiting 
01f38fc88b34: Waiting 
6e24d515f042: Waiting 
0460cb7a0f85: Waiting 
4a2d7bc46f58: Waiting 
unexpected EOF
$ docker pull docker-registry.tools.wmflabs.org/toolforge-distroless-base:latest
latest: Pulling from toolforge-distroless-base
dd5ad9c9c29f: Pulling fs layer 
960043b8858c: Pulling fs layer 
b4ca4c215f48: Downloading 
eebb06941f3e: Waiting 
02cd68c0cbf6: Waiting 
d3c894b5b2b0: Waiting 
b40161cd83fc: Waiting 
46ba3f23f1d3: Waiting 
4fa131a1b726: Waiting 
01f38fc88b34: Waiting 
6e24d515f042: Waiting 
0460cb7a0f85: Waiting 
4a2d7bc46f58: Waiting 
unknown blob

Event Timeline

Change 940175 had a related patch set uploaded (by Arturo Borrero Gonzalez; author: Arturo Borrero Gonzalez):

[cloud/wmcs-cookbooks@main] toolforge: buildservice: upload_images_to_repo: add -debug suffix to distroless

https://gerrit.wikimedia.org/r/940175

Change 940175 merged by Arturo Borrero Gonzalez:

[cloud/wmcs-cookbooks@main] toolforge: buildservice: upload_images_to_repo: add -debug suffix to distroless

https://gerrit.wikimedia.org/r/940175

I pushed a new image with a -debug suffix which apparently fixed the broken one.

The theory by @taavi is that the several operations to bring back the old image caused some intermediary layer to get lost.
Pushing a new image (even with different name) resulted in the intermediary layers getting right again.

Note to self: we should treat the docker registry as an append-only DB and not do rollbacks or data rewrites/rescues as it really leaves the registry in inconsistent state.