Skip to content

system df --verbose don't crash #26225

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

Merged
merged 1 commit into from
May 30, 2025
Merged

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented May 28, 2025

When a container has no image, i.e. using rootfs like our new infra containers then the Image function crashed trying to show the first 12 image ID chars. If there is no image simply show nothing there.

Fixes: #26224

Does this PR introduce a user-facing change?

podman system df --verbose no longer crashes when there is a container based on a rootfs instead of image.

Copy link
Contributor

openshift-ci bot commented May 28, 2025

[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 May 28, 2025
@mheon
Copy link
Member

mheon commented May 28, 2025

Your test is broken. But code LGTM

@baude
Copy link
Member

baude commented May 28, 2025

nice catch and LGTM ...

When a container has no image, i.e. using rootfs like our new infra
containers then the Image function crashed trying to show the first 12
image ID chars. If there is no image simply show nothing there.

Fixes: containers#26224

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

Luap99 commented May 30, 2025

good to merge

@mheon
Copy link
Member

mheon commented May 30, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 30, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 27593b9 into containers:main May 30, 2025
77 checks passed
@Luap99 Luap99 deleted the df-panic branch May 31, 2025 14:06
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. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman system df --verbose crashes
3 participants