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

podman-remote untag image is broken #7716

Closed
wants to merge 1 commit into from
Closed

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Sep 21, 2020

There seems to be some questionable code in NamesHistory which is not
returning the true value of the history. Basically this ends up truncating
the last item on the list which causes the test to fail.

Not sure if this code is still necessary or what it breaks.

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 21, 2020
@rhatdan
Copy link
Member Author

rhatdan commented Sep 21, 2020

@mheon PTAL,

@mheon
Copy link
Member

mheon commented Sep 21, 2020

I think we need @vrothberg or @baude or someone else more familiar with the image code to comment here... I don't really know why this was added. Tests are red without it, though.

@vrothberg
Copy link
Member

@saschagrunert added that code. It sounds reasonable to not display a name twice.

I am currently trying to reproduce the untag issue as I fail to see a relation at the moment.

@vrothberg
Copy link
Member

It looks like a symptomatic fix. Local and remote untag should execute the same code. If there's a hiccup in remote, I suspect there's something else going on.

@vrothberg
Copy link
Member

vrothberg commented Sep 22, 2020

Looking closer at the untag endpoint, there are a couple of issues:

  • It always requires a repo which the local client does not. podman untag $ID will remove all tags. That's currently not working and maybe something we need to add to the tests.
  • There are parsing errors:
podman (master) $ ./bin/podman-remote images
REPOSITORY                TAG     IMAGE ID      CREATED       SIZE
docker.io/library/alpine  latest  a24bb4013296  3 months ago  5.85 MB
docker.io/library/alpine  2       a24bb4013296  3 months ago  5.85 MB
podman (master) $ ./bin/podman-remote untag docker.io/library/alpine:latest
Error: Failed to find image docker.io/library/alpine:latest: unable to find 'docker.io/library/alpine:latest' in local storage: no such image
podman (master) $ ./bin/podman-remote untag docker.io/library/alpine:latest
Error: Failed to find image docker.io/library/alpine:latest: unable to find 'docker.io/library/alpine:latest' in local storage: no such image

... and probably more

@rhatdan rhatdan force-pushed the names branch 2 times, most recently from c562850 to 23c77a9 Compare September 25, 2020 14:04
@rhatdan rhatdan force-pushed the names branch 2 times, most recently from cd9d2f4 to 25a5e79 Compare September 29, 2020 20:49
@vrothberg
Copy link
Member

Untagging all is still broken as the endpoint forces a repo to be specified. I'll wrap up something for that and link it here.

@vrothberg
Copy link
Member

It bit me in the tests in #7823

@vrothberg
Copy link
Member

#7840

@rhatdan rhatdan force-pushed the names branch 2 times, most recently from 2da9800 to 5b1ef38 Compare September 30, 2020 10:23
There seems to be some questionable code in NamesHistory which is not
returning the true value of the history.  Basically this ends up truncating
the last item on the list which causes the test to fail.

Not sure if this code is still necessary or what it breaks.

Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan
Copy link
Member Author

rhatdan commented Sep 30, 2020

Replaced with #7840

@rhatdan rhatdan closed this Sep 30, 2020
@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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 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. 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.

4 participants