-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 play kube: duplicate volume names lead to stalled process #5654
Comments
My initial inclination would be that passing volumes with duplicate names sounds like a mistake on the user's part, so we should trap it early and inform the user that they need to fix their YAML. Or is this something that Kubernetes allows, so we'll have to handle? |
@mheon Although this is a slightly indirect answer, I do currently believe that mounting a single named-volume at multiple volume mounts is supported by Kubernetes. This is my initial understanding after having discovered current Kubernetes documentation that explains the Less strongly, but also in support of this theory, there is an absence of any documented restrictions on uniqueness of the These lead me to believe that it's valid for a single volume |
This isn't a volume, though, but a Hmmm... @haircommander Looking at the full description, Name in a volume mount only points to volumes, which we don't implement at present. Should we be restricting its use for now? |
@mheon to answer your thought, in kubernetes, I don't see any reason why we couldn't mount a hostPath to multiple spots in the container, but I'm not convinced k8s does this. subPath seems to provide uniqueness, and seems like a different use case than mounting one hostPath to multiple container points. |
While I'd like to revisit the |
/kind bug
Description
While working from a
git checkout
of https://github.com/jayaddison/grocy-docker/tree/b78b1810ff159e583a8770694305e2e5472ddb76, thepodman play kube grocy.yaml
results in a blocked-process condition.Steps to reproduce the issue:
Describe the results you received:
The
podman
process stalls without producing any output to stdout.Describe the results you expected:
The
podman
process should complete after the successful creation of a pod (namedgrocy
) with two containers (namedgrocy-app
andgrocy-nginx
).Additional information you deem important (e.g. issue happens only occasionally):
The stall-point doesn't seem consistent between playthroughs; this can be observed by running the repro steps multiple times and comparing the system call information output produced by
strace
during each run.A workaround is available: by providing unique distinguishing name values for the three mounts (example), the problem is avoided and the kubectl play kube step succeeds.
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: