Registry 2.7 fails to upload windows images
Summary
After upgrading to v11.6.0-ee, customer found that their builds were failing to upload windows images to the registry. Linux images still worked fine.
The error from the registry:
2019-01-02_11:27:07.73694 time="2019-01-02T12:27:07.736908606+01:00" level=error msg="response completed with error" auth.user.name=<user> environment=production err.code="manifest blob unknown" err.detail=sha256:c0f6863f3dd498ab56cdd308637630f888fe646de403284f2c5392ba885bdd8e err.message="blob unknown to registry" go.version=go1.10.3 http.request.contenttype="application/vnd.docker.distribution.manifest.v2+json" http.request.host=<registry.host> http.request.id=4dd2aa33-0ec3-45c6-bd9d-8efbce989df4 http.request.method=PUT http.request.remoteaddr=<ip.addr> http.request.uri="/v2/r/documentocr/backend/staticfiles/manifests/windowsservercore-ltsc2016" http.request.useragent="docker/17.06.2-ee-16 go/go1.8.7 git-commit/9ef4f0a os/windows arch/amd64 UpstreamClient(Docker-Client/17.06.2-ee-16 \\(windows\\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=1.380405ms http.response.status=500 http.response.written=523 instance.id=6bbf4294-5165-42c8-97e6-87ba6bd912ab service=registry vars.name="r/documentocr/backend/staticfiles" vars.reference=windowsservercore-ltsc2016 version=v2.6.0-rc.1-158-gb22c6b7a
Since the problem started after upgrading to GitLab 11.6.0, we noticed that in !2888 (merged) the registry was upgraded from 2.6.2 to 2.7.0 for GitLab 11.6.0. We downloaded the 11.5.6 package and extracted the registry binary from it to replace in their 11.6.0 install. Running GitLab 11.6.0 with the older registry binary their build was able to push the windows package to the registry without an issue.
Customer ticket in zendesk: https://gitlab.zendesk.com/agent/tickets/110939
Edited by Diana Stanley