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

image lookup: do not match *any* tags #12010

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

vrothberg
Copy link
Member

For reasons buried in the history of Podman, looking up an untagged
image would match any tag of matching image. For instance,
looking up centos would match a local image centos:foobar.
Docker only looks for centos:latest.

Fix: #11964
Signed-off-by: Valentin Rothberg rothberg@redhat.com

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 18, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 18, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 18, 2021
@vrothberg
Copy link
Member Author

WIP for now: want to throw it at CI to see which tests break (and need adjustment).

@vrothberg vrothberg force-pushed the fix-11964 branch 5 times, most recently from 7b245c2 to 3e20581 Compare October 20, 2021 11:46
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 22, 2021
@vrothberg
Copy link
Member Author

@rhatdan, @giuseppe , I'm seeing some c/storage changes causing failures:

[+0026s] # #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
[+0026s] # #|     FAIL: filter: after
[+0026s] # #| expected: 'sha256:time="2021-11-22T08:59:32-06:00" level=warning msg="Adding metacopy option, configured globally"
[+0026s] # b15eda79d7b4fe94c1b4863ccfbadff0f0ed9b1f84deb8df08b1880e0a51be55--localhost/mynewimage:latest'
[+0026s] # #|   actual: 'sha256:b15eda79d7b4fe94c1b4863ccfbadff0f0ed9b1f84deb8df08b1880e0a51be55--localhost/mynewimage:latest'

@vrothberg
Copy link
Member Author

containers/storage#1071

@vrothberg vrothberg changed the title WIP - image lookup: do not match *any* tags image lookup: do not match *any* tags Nov 23, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2021
@vrothberg
Copy link
Member Author

@containers/podman-maintainers PTAL

@Luap99
Copy link
Member

Luap99 commented Nov 23, 2021

I think you have to rebase to remove the broken static build test.

For reasons buried in the history of Podman, looking up an untagged
image would match any tag of matching image. For instance, looking up
centos would match a local image centos:foobar.  Change that behavior
to only match the latest tag.

Fix: containers#11964
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
@vrothberg
Copy link
Member Author

Green and happy, @containers/podman-maintainers PTAL

@rhatdan
Copy link
Member

rhatdan commented Nov 23, 2021

LGTM
@giuseppe @flouthoc @Luap99 PTAL

@Luap99
Copy link
Member

Luap99 commented Nov 23, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2021
@openshift-merge-robot openshift-merge-robot merged commit 3a19cdc into containers:main Nov 23, 2021
@vrothberg vrothberg deleted the fix-11964 branch November 23, 2021 12:25
@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 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.

Bad image used by podman run with an image with a tag then without an explicit tag
4 participants