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

Zalando Registry gives seemingly erroneous 404's #153

Closed
The-Loeki opened this issue Mar 2, 2018 · 1 comment
Closed

Zalando Registry gives seemingly erroneous 404's #153

The-Loeki opened this issue Mar 2, 2018 · 1 comment
Assignees

Comments

@The-Loeki
Copy link
Contributor

The-Loeki commented Mar 2, 2018

Putting a poller on the External DNS from Zalando:

time="2018-03-02T16:00:26Z" level=info msg="registry client: getting digest" registry="https://registry.opensource.zalan.do" repository=teapot/external-dns tag=v0.4.8
time="2018-03-02T16:00:26Z" level=debug msg="registry.manifest.head url=https://registry.opensource.zalan.do/v2/teapot/external-dns/manifests/v0.4.8 repository=teapot/external-dns reference=v0.4.8"
time="2018-03-02T16:00:26Z" level=error msg="trigger.poll.RepositoryWatcher.addJob: failed to get image digest" error="Head https://registry.opensource.zalan.do/v2/teapot/external-dns/manifests/v0.4.8: http: non-successful response (status=404 body=\"\")" image="registry.opensource.zalan.do/teapot/external-dns:v0.4.8"
time="2018-03-02T16:00:26Z" level=error msg="trigger.poll.RepositoryWatcher.Watch: failed to add image watch job" error="Head https://registry.opensource.zalan.do/v2/teapot/external-dns/manifests/v0.4.8: http: non-successful response (status=404 body=\"\")" image_name="registry.opensource.zalan.do/teapot/external-dns:v0.4.8" registry_username=

However:

[theloeki@murphy kubernetes]$  curl -m 5 -Lv -H "Content-Type: application/json" https://registry.opensource.zalan.do/v2/teapot/external-dns/manifests/v0.4.8
*   Trying 52.49.153.166...
* TCP_NODELAY set
* Connected to registry.opensource.zalan.do (52.49.153.166) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: PROFILE=SYSTEM
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: C=DE; postalCode=10243; ST=Berlin; L=Berlin; street=Tamara-Danz-Strasse 1; O=Zalando SE; OU=Technology; OU=Hosted by Zalando SE; OU=Multi-Domain SSL
*  start date: Jun  6 00:00:00 2016 GMT
*  expire date: Sep  8 23:59:59 2018 GMT
*  subjectAltName: host "registry.opensource.zalan.do" matched cert's "registry.opensource.zalan.do"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Organization Validation Secure Server CA
*  SSL certificate verify ok.
> GET /v2/teapot/external-dns/manifests/v0.4.8 HTTP/1.1
> Host: registry.opensource.zalan.do
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> 
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: 
< Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS
< Access-Control-Allow-Origin: *
< Access-Control-Max-Age: 3600
< Content-Type: application/vnd.docker.distribution.manifest.v2+json; charset=ISO-8859-1
< Date: Fri, 02 Mar 2018 16:08:49 GMT
< Docker-Content-Digest: sha256:7aa5175f39a7e8a4172972524302c9a8196f681e40d6ee5d2f6bf0ab7d600fee
< Server: Jetty(9.2.z-SNAPSHOT)
< Strict-Transport-Security: max-age=10886400
< Content-Length: 1783
< Connection: keep-alive
< 
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   "config": {
      "mediaType": "application/vnd.docker.container.image.v1+json",
      "size": 4699,
      "digest": "sha256:d3e06df3437ee661a6923335e7c11fbf8581b0cb474592de21151cc9433d782b"
   },
   "layers": [
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 1905219,
         "digest": "sha256:d5d0715331fc4067b61ca623a2afc1cdb28320dddcf934bb7e68d5353f424ff7"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 352757,
         "digest": "sha256:a11c6302aab6ac2e23c856f5d4f557035d40eaae025ca2b7a49e69a3b167164e"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 4274,
         "digest": "sha256:9637a3af7b6a18b83d761bf94b55ae4b56237acb4b2439c2441eb372baa9152c"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 4349,
         "digest": "sha256:6d5225acfc23e18b6f622923b907b1e85c232a152388ef0a45c333b0506247bb"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 9790,
         "digest": "sha256:1d5f6d9cdecebbd551e24c467fcc83def6611ddf20564759405392c00b275a93"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 181602,
         "digest": "sha256:08a3bfc4a41b164579ae7b9d24941f25cbb07f7a0f93a3dc0ffa46d70c70a04e"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 8666899,
         "digest": "sha256:0a1073fc4ca67cbc59d36f93d477b17c2070747717074eb7c766e662e2e64591"
      }
   ]
@rusenask
Copy link
Collaborator

fixed and released, available from 0.7.x.

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

No branches or pull requests

2 participants