Closed zephyros-dev closed 12 months ago
@zephyros-dev thanks for bringing this up.
I've reproduced the issue and found that the root cause is a log print here: https://github.com/containers/common/blob/main/libimage/copier.go#L364.
This print occurs only when running under systemd and for this reason the issue does not occur when running this in the command line.
Furthermore, I was able to workaround this issue by providing the fully qualified image name: docker.io/library/busybox:latest
instead of just busybox
in the ContainerFile.
@ygalblum Thanks for the fix. Regarding the workaround though, I couldn't managed to make it work with fully qualified image name with or without tag and sha256 signature as they still report the same error (I deleted the image then try to run the service again).
@zephyros-dev You are right. I'm sorry. I guess I did not clean my images before trying it
@ygalblum is this an issue in buildah?
@rhatdan no and yes. The issue is in containers-common which is also imported into buildah. However, the issue itself happens only when building under systemd (actually during pull). The fix was already merged to containers-common.
A friendly reminder that this issue had no activity for 30 days.
This issue was addressed in another repo so it was not closed automatically.
I have updated podman to 4.8.0 with Fedora update-testing repo and I can report that the issue remains. Which version will the fix be rolled out to?
@zephyros-dev you are right, this issue is not resolved. I guess I was doing something wrong when validating my fix. The issue is at the same place, and I think there is an issue with the reportWriter
. But, it seems like there's a very long calling stack to figure out where this variable is actually set. I think @rhatdan was correct and it might be at buildah
, but I'm not sure yet.
I'll update on my findings. For now, I'm reopening this issue
@zephyros-dev FYI the fix was added to v4.8.2
Issue Description
Podman kube play support building the image with Dockerfile/Containerfile inside directory. When the image is missing, the command run without issue manually, but it fails upon being ran from quadlet systemd kube service.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
The kube quadlet service failed with the following logs, indicating failure at the image build step: output.log
Describe the results you expected
The service build the missing image and started normally
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information