8000 rkt fetch doesn't ever fetch updated image if download locally · Issue #2937 · rkt/rkt · GitHub
  • [go: up one dir, main page]
    More Web Proxy on the site http://driver.im/
    Skip to content
    This repository was archived by the owner on Feb 24, 2020. It is now read-only.
    This repository was archived by the owner on Feb 24, 2020. It is now read-only.
    rkt fetch doesn't ever fetch updated image if download locally #2937
    Closed
    @mtanski

    Description

    @mtanski

    Environment

    root@flim-a31d7933:/opt/adfin/conf# rkt version
    rkt Version: 1.10.0
    appc Version: 0.8.5
    Go Version: go1.6.2
    Go OS/Arch: linux/amd64
    Features: -TPM
    

    Ubuntu 14.04

    What did you do?

    Trying to download an updated image using rkt fetch for a quay.io repo with a docker image. We label our images with stuff like a format like ${image}:${env} where env can be like prod, integration, dev. That way when somebody promotes an image (using the quay.io UI) and a period update task is run, the nodes update to the latest version of that environment's image.

    We've come to expect that behavior previous when we were using docker.

    I can get it to work by specifying --no-store, but i refetches all images including shared base images. (like the base JVM image we created)

    What did you expect?

    That default rkt fetch would see if there's an updated image and fetch the changed layers only. At the very least there should be a flag to do that.

    Also rkt should return a status code that can be tested in the shell using $? to see if there has been change... so our further scripts can notice if they should bounce the container.

    What did you see instead?

    root@flim-a31d7933:/opt/adfin/conf# rkt --insecure-options=image fetch docker://quay.io/adfin/mr_jobs:dev
    image: using image from local store for url docker://quay.io/adfin/mr_jobs:dev
    root@flim-a31d7933:/opt/adfin/conf# rkt --insecure-options=image fetch --no-store docker://quay.io/adfin/mr_jobs:dev
    image: remote fetching from URL "docker://quay.io/adfin/mr_jobs:dev"
    Downloading sha256:203137e8afd [=============================] 65.7 MB / 65.7 MB
    Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
    Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
    Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
    Downloading sha256:f5fa265265c [=============================]   111 MB / 111 MB
    Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
    Downloading sha256:933ae248612 [=============================]     681 B / 681 B
    Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
    Downloading sha256:2ff1bbbe931 [=============================] 71.5 KB / 71.5 KB
    Downloading sha256:02e725f9bcf [=============================]     115 B / 115 B
    Downloading sha256:6b6fd37a445 [=============================]   110 MB / 110 MB
    Downloading sha256:7db9cc08faf [=============================] 2.35 MB / 2.35 MB
    Downloading sha256:b8602bd434c [=============================] 82.8 MB / 82.8 MB
    root@flim-a31d7933:/opt/adfin/conf# rkt image list
    ID          NAME                    IMPORT TIME LAST USED   SIZE    LATEST
    sha512-7f3d5c757980 quay.io/adfin/flink:latest      3 hours ago 27 minutes ago  741MiB  true
    sha512-24abc47982ec coreos.com/rkt/stage1-coreos:1.10.0 3 hours ago 3 hours ago 178MiB  false
    sha512-7939cef320fd quay.io/adfin/mr_jobs:dev       16 minutes ago  16 minutes ago  814MiB  false
    sha512-c76e02e48be0 quay.io/adfin/mr_jobs:dev       9 minutes ago   9 minutes ago   599MiB  false
    

    Metadata

    Metadata

    Assignees

    No one assigned

      Type

      No type

      Projects

      No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        0