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 run: ignore image rm error #23767

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Aug 27, 2024

Since commit 458ba5a the cleanup process now removes the image as well, thus the removal is racy and it will cause an error here.

The code tried to ignore the error with errors.Is() but this never works across the remote API. However the API already has a ignore option so juts use that and fix the error message so that we can easily find the root cause and I do not have to guess where the log was written.

Fixes #23719

Does this PR introduce a user-facing change?

None

Since commit 458ba5a the cleanup process now removes the image as
well, thus the removal is racy and it will cause an error here.

The code tried to ignore the error with errors.Is() but this never works
across the remote API. However the API already has a ignore option so
juts use that and fix the error message so that we can easily find the
root cause and I do not have to guess where the log was written.

Fixes containers#23719

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
When we use passthrough logging and the --rmi option should not try to
delete the image right away. Simply speak passthough only means do not
print the cotnainer id but we should never try to delete the image here
as this will be done in the cleanup process.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Copy link
Contributor

openshift-ci bot commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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 Aug 27, 2024
@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Aug 27, 2024
@Luap99
Copy link
Member Author

Luap99 commented Aug 27, 2024

@mheon @edsantiago PTAL

@mheon
Copy link
Member

mheon commented Aug 27, 2024

LGTM

@baude
Copy link
Member

baude commented Aug 27, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit f0f148e into containers:main Aug 27, 2024
86 checks passed
@Luap99 Luap99 deleted the image-rm branch August 27, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run --rmi : image not known
3 participants