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

Should be defaulting to pull not pull-always #2492

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Feb 28, 2019

Signed-off-by: Daniel J Walsh [email protected]

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS labels Feb 28, 2019
@rhatdan
Copy link
Member Author

rhatdan commented Feb 28, 2019

@mheon
Copy link
Member

mheon commented Feb 28, 2019

We need to verify that this will pull an updated image if the image is present locally but a newer version of the tag is on the registry

@TomSweeneyRedHat
Copy link
Member

Addresses: #2469

@TomSweeneyRedHat
Copy link
Member

LGTM assuming happy tests. This fixes the reported issue, I'm just spending a little time seeing if we should get the local image if all of the registries fail. I think we should, but need to poke further.

@TomSweeneyRedHat
Copy link
Member

@mheon I pulled an image, updated it by touching /mynewtest.txt, verified the file was present, repulled and then saw the file was no longer there. A little opposite of what you were asking for, bu I think we're covered.

# podman pull docker://quay.io/tomsweeneyredhat/myalpine:latest 
Trying to pull docker://quay.io/tomsweeneyredhat/myalpine:latest...Getting image source signatures
Copying blob 8e3ba11ec2a2 [======================================] 1.4GiB / 1.4GiB
Copying blob a3ed95caeb02 [======================================] 1.4GiB / 1.4GiB
Writing manifest to image destination
Storing signatures
11cd0b38bc3ceb958ffb2f9bd70be3fb317ce7d255c8a4c3f4af30e298aa1aab

# podman images
REPOSITORY                          TAG      IMAGE ID       CREATED        SIZE
quay.io/tomsweeneyredhat/myalpine   latest   11cd0b38bc3c   7 months ago   4.68 MB

# podman run --net=host 11cd0b38bc3c touch /mynewtest.txt
# podman ps -a
CONTAINER ID  IMAGE                                     COMMAND               CREATED         STATUS                     PORTS  NAMES
b7b8dcf0fc5c  quay.io/tomsweeneyredhat/myalpine:latest  touch /mynewtest....  10 seconds ago  Exited (0) 10 seconds ago         condescending_curie

# podman commit b7b8dcf0fc5c quay.io/tomsweeneyredhat/myalpine
Getting image source signatures
Copying blob 73046094a9b8 [======================================] 4.5MiB / 4.5MiB
Copying blob 11f58c859b3a [======================================] 4.0KiB / 4.0KiB
Copying config 75be1a8b36 [======================================] 795b / 795b
Writing manifest to image destination
Storing signatures
75be1a8b36117fdaabc81279966019eba5bf7e19f358b32169551ca75838c474

# podman run quay.io/tomsweeneyredhat/myalpine ls /
bin
dev
etc
home
lib
media
mnt
mynewtest.txt
proc
root
run
sbin
srv
sys
tmp
usr
var

# podman pull docker://quay.io/tomsweeneyredhat/myalpine:latest 
Trying to pull docker://quay.io/tomsweeneyredhat/myalpine:latest...Getting image source signatures
Copying blob 8e3ba11ec2a2 [======================================] 1.4GiB / 1.4GiB
Copying blob a3ed95caeb02 [======================================] 1.4GiB / 1.4GiB
Writing manifest to image destination
Storing signatures
11cd0b38bc3ceb958ffb2f9bd70be3fb317ce7d255c8a4c3f4af30e298aa1aab

# podman images
REPOSITORY                          TAG      IMAGE ID       CREATED          SIZE
<none>                              <none>   75be1a8b3611   33 seconds ago   4.68 MB
quay.io/tomsweeneyredhat/myalpine   latest   11cd0b38bc3c   7 months ago     4.68 MB

# podman run quay.io/tomsweeneyredhat/myalpine ls /
bin
dev
etc
home
lib
media
mnt
proc
root
run
sbin
srv
sys
tmp
usr
var

@TomSweeneyRedHat
Copy link
Member

@rhatdan unhappy tests

@mheon
Copy link
Member

mheon commented Mar 1, 2019

@TomSweeneyRedHat if it passes your build baseline I'm plenty satisfied

@TomSweeneyRedHat
Copy link
Member

@mheon it does indeed pass the baseline with this fix in place.

@mheon
Copy link
Member

mheon commented Mar 1, 2019

LGTM then!

@vrothberg
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2019
@openshift-merge-robot openshift-merge-robot merged commit c80416f into containers:master Mar 1, 2019
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants