podman play kube fails to launch initContainers without a PATH in the environment #18384
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
It appears that
podman play kube
is not able to handle ainitContainers
in a deployment where the image has noPATH
defined inConfig.Env
.E.g. the following deployment fails to launch:
You get the following error:
However, if you swap out
"registry.suse.com/bci/bci-micro:15.3"
for e.g."docker.io/busybox"
, then everything works.The difference is that
registry.suse.com/bci/bci-micro:15.3
has not been built via docker, but with kiwi and has noPATH
entry inConfig.Env
:Also, the missing PATH entry is not the actual problem, because if I try to emulate what
podman play kube
does internally withinitContainers
(seepodman/pkg/specgen/generate/kube/kube.go
Line 337 in 19152fa
CMD
to nil andENTRYPOINT
toCMD
as follows, everything still works:Steps to reproduce the issue
Steps to reproduce the issue
podman play kube /path/to/yaml
Describe the results you received
Error: encountered while bringing up pod rmt-front-pod: crun: executable file
sh
not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not foundDescribe the results you expected
The first
initContainers
should have been created.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
I have tried this with 4.5.0 and with the current HEAD (19152fa)
Additional information
No response
The text was updated successfully, but these errors were encountered: