Skip to content

Error: image cache/mysql:pullthrough not found #8399

Closed

Description

@mfojtik

Potential flake. Can be seen here: https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5534/console

Error: image cache/mysql:pullthrough not found
!!! Error in hack/../hack/../test/end-to-end/core.sh:129
    'docker pull ${DOCKER_REGISTRY}/cache/mysql:pullthrough' exited with status 1
Call stack:
    1: hack/../hack/../test/end-to-end/core.sh:129 main(...)
Exiting with status 1

Activity

  1. added
    kind/bug
    on Apr 7, 2016
  2. soltysh commented on Apr 7, 2016

    @soltysh
    Contributor

    @miminar any idea why docker registry is falling to v1 registry, this is what I see in the logs:

    time="2016-04-07T13:33:03.823468206Z" level=info msg="response completed" go.version=go1.6 http.request.host="172.30.16.220:5000" http.request.id=942210a3-4315-4106-9471-1bf66e4cc6af http.request.method=GET http.request.remoteaddr="172.18.6.120:60242" http.request.uri="/v2/cache/mysql/blobs/sha256:efd26ecc95486998b41b3fe167236e3fb3e109c66dd1a51ab5161e40b06cf486" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/octet-stream" http.response.duration=1.921677219s http.response.status=200 http.response.written=51342828 instance.id=f79ccee9-263a-4bae-aeb8-77e72c26188f 
    172.18.6.120 - - [07/Apr/2016:13:33:01 +0000] "GET /v2/cache/mysql/blobs/sha256:efd26ecc95486998b41b3fe167236e3fb3e109c66dd1a51ab5161e40b06cf486 HTTP/1.1" 200 51342828 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64"
    time="2016-04-07T13:33:03.925080703Z" level=info msg="response completed" go.version=go1.6 http.request.host="172.30.16.220:5000" http.request.id=2fecfaf9-1878-4588-9710-f3ec32ee52ba http.request.method=GET http.request.remoteaddr="172.18.6.120:60243" http.request.uri="/v2/cache/mysql/blobs/sha256:87c7daf4abfabeef18ae19cd661840282d149989c039cdd2f426535e60e0e703" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/octet-stream" http.response.duration=1.976474849s http.response.status=200 http.response.written=63951640 instance.id=f79ccee9-263a-4bae-aeb8-77e72c26188f 
    172.18.6.120 - - [07/Apr/2016:13:33:01 +0000] "GET /v2/cache/mysql/blobs/sha256:87c7daf4abfabeef18ae19cd661840282d149989c039cdd2f426535e60e0e703 HTTP/1.1" 200 63951640 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64"
    172.17.0.1 - - [07/Apr/2016:13:33:05 +0000] "GET /healthz HTTP/1.1" 200 0 "" "Go-http-client/1.1"
    172.17.0.1 - - [07/Apr/2016:13:33:05 +0000] "GET /healthz HTTP/1.1" 200 0 "" "Go-http-client/1.1"
    172.18.6.120 - - [07/Apr/2016:13:33:13 +0000] "GET /v1/repositories/cache/mysql/images HTTP/1.1" 404 19 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64"
    

    It's downloading the image just fine, but suddenly it reaches for v1 registry, any ideas?

  3. soltysh commented on Apr 7, 2016

    @soltysh
    Contributor

    I have the full docker registry log, if needed.

  4. smarterclayton commented on Apr 7, 2016

    @smarterclayton
    Contributor

    If this is a flake that will affect users in production it's p0 (until we prove otherwise).

  5. soltysh commented on Apr 12, 2016

    @soltysh
    Contributor

    After several investigations the problem I've managed to identify is this error:

    Error getting ImageStreamTag "pullthrough": imagestreamtags "mysql:pullthrough" not found
    

    The #8461 wrapped image-import and docker pull commands into os::cmd::expect_success, which should either fix the problem or give us some more info. I'm especially hoping to get stdout and stderr from the image-import command which might fail for some unknown reason leading to failing docker pull.
    For now I'm advising to lower the priority of the bug, since it's not a permanent issue but rather a interminent problem.

  6. soltysh commented on Apr 13, 2016

    @soltysh
    Contributor

    This looks like a different error:

    time="2016-04-13T04:42:29.034858911Z" level=error msg="response completed with error" err.code="BLOB_UNKNOWN" err.detail=sha256:d347a60f2547ec23a95f6a82a7d86bfc3175111f4f730daf0b09e4d3adc875f3 err.message="blob unknown to registry" go.version=go1.6 http.request.host="172.30.25.55:5000" http.request.id=f5b9eb63-a4c3-4c22-af71-1f74d953f831 http.request.method=HEAD http.request.remoteaddr="172.18.15.86:42491" http.request.uri="/v2/cache/mysql/blobs/sha256:d347a60f2547ec23a95f6a82a7d86bfc3175111f4f730daf0b09e4d3adc875f3" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=595.411786ms http.response.status=404 http.response.written=157 instance.id=be1a0e30-a5ce-41bd-8e98-682ed6469885 vars.digest="sha256:d347a60f2547ec23a95f6a82a7d86bfc3175111f4f730daf0b09e4d3adc875f3" vars.name="cache/mysql" 
    

    Looking into it.

  7. soltysh commented on Apr 18, 2016

    @soltysh
    Contributor

    @miminar good catch, now that we have the import output this is what we got:
    import failed: you may not have access to the Docker image "mysql:latest
    We're currently being hit by this problem in two places:

    1. at import time
    2. at pull time

    To nail the problem we'd have to log entire traffic between us and docker registry. It looks like docker registry is sometimes blocking us, requiring auth (?), because I can't seem to find any other reasonable explanation. Especially that the image we're trying to get is public, even more docker-provided. @smarterclayton @pweil- @miminar thoughts?

  8. 7 remaining items

  9. smarterclayton commented on Apr 19, 2016

    @smarterclayton
    Contributor

    I think this is fixed in #8558, the docker hub occasionally returns 401 on import. Need to clean the fix up and make it even more targeted (discuss whether to preserve this for DTR, which I bet has this problem as well).

  10. soltysh commented on Apr 27, 2016

    @soltysh
    Contributor

    @smarterclayton after careful investigation the only two operations we do not retry are store.Open and io.CopyN from pullthroughBlobStore. The logs evidently shows the io.CopyN is the culprit in the output you've pointed me to, see:

    time="2016-04-25T15:36:57.066474262Z" level=info msg="Copying 217 bytes of type \"application/octet-stream\" for \"sha256:7e224052b3b1fc91443295519f43edf302997496c13dd970c122f189485e0178\"" 
    time="2016-04-25T15:36:57.090276777Z" level=error msg="Failed copying content from remote store \"sha256:7e224052b3b1fc91443295519f43edf302997496c13dd970c122f189485e0178\": unauthorized: authentication required"
    

    The question is, should we retry, since apparently this is hitting the issue the great @liggitt identified, about hitting a clock-skewed server.

  11. smarterclayton commented on Apr 27, 2016

    @smarterclayton
    Contributor

    What backs the input stream that is returned by open?

    On Apr 27, 2016, at 6:14 AM, Maciej Szulik [email protected] wrote:

    @smarterclayton https://github.com/smarterclayton after careful
    investigation the only two operations we do not retry are store.Open

    remoteReader, err := store.Open(ctx, dgst)

    and io.CopyN
    if _, err := io.CopyN(w, remoteReader, desc.Size); err != nil {

    from pullthroughBlobStore. The logs evidently shows the io.CopyN is the
    culprit in the output you've pointed me to, see:

    time="2016-04-25T15:36:57.066474262Z" level=info msg="Copying 217
    bytes of type "application/octet-stream" for
    "sha256:7e224052b3b1fc91443295519f43edf302997496c13dd970c122f189485e0178""
    time="2016-04-25T15:36:57.090276777Z" level=error msg="Failed copying
    content from remote store
    "sha256:7e224052b3b1fc91443295519f43edf302997496c13dd970c122f189485e0178":
    unauthorized: authentication required"

    The question is, should we retry, since apparently this is hitting the
    issue the great @liggitt https://github.com/liggitt identified, about
    hitting a clock-skewed server.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #8399 (comment)

  12. soltysh commented on Apr 27, 2016

    @soltysh
    Contributor

    Per this comment I'm proposing to wait a bit and see what happens and how fast their fix will be actually live. Additionally talking to @smarterclayton on IRC he's not too much comfortable with us retrying reading bytes.

  13. soltysh commented on Apr 28, 2016

    @soltysh
    Contributor

    The same problem

    time="2016-04-28T08:01:16.159905939Z" level=error msg="Failed copying content from remote store \"sha256:b216856605521bf39a8784690d432d80d9a6ee20323d6c6d9972715f825676f7\": unauthorized: authentication required"
    

    appeared in https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_integration/450/ (the linked PR).

  14. smarterclayton commented on Jun 1, 2016

    @smarterclayton
    Contributor

    I think this is resolved.

  15. soltysh commented on Jun 1, 2016

    @soltysh
    Contributor

    I wouldn't be that sure, esp. that the issue is silent for past month... I'd love to be that way...

  16. smarterclayton commented on Jun 1, 2016

    @smarterclayton
    Contributor

    I added retries to a few other places - I think this is fixed upstream, because I haven't seen retries in the logs when I've been looking at other issues.

  17. added a commit that references this issue on Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/testscomponent/imagekind/bugkind/test-flakepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions