-
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
share-nothing pod does not start the infra container #15048
Comments
Thanks for reaching out, @muayyad-alsadi! |
If there are no shared namespaces we should not create an infra container. |
Yeah I was thinking something similar to this. I'll make a patch today to not create infra in certain scenarios. @mheon does that make sense? |
Sure, works for me. Even if the user manually specifies an infra container but no shared namespaces, the current behavior is still sensible. |
for podman pod create, when we are not sharing any namespaces there is no point for the infra container. This is especially true since resources have also been decoupled from the container recently. handle this on the cmd level so that we can still create infra if set explicitly resolves containers#15048 Signed-off-by: Charlie Doern <[email protected]>
in
IMHO this should not be done by podman by default.
IMHO, it's!
the behaviour should be consistent with
as you can see here I did not need to start the pod and it's up and running same sequence of commands one was typically I hate side-effects, I hate to deal with cases because they might break things in many ways in podman 3.x I remember if there is no infra you can't generate systemd units
My suggestion is to have consistent behavior, unconditionally create the infra pod, and always start it. |
it does not make sense to me to keep infra around if it is not doing anything. That is opening up the door for unexpected behavior not to mention a waste of resources and usage/building of the pause image. |
@vrothberg what happens if I attempted to put one of these pods within a systemd unit file? Doesn't it rely on the creation of the infra container? Would it make sense to just change the default for --infra=false. case namespaces == Nil { Now if user wants to use an infra with namespaces == nil they need to specify --infra=true. |
From my side I explicitly pass infra=false My issue is the inconsistent behaviour of Let's assume that the user explicitly asked for a specifically named infra, why it's not started? What is it waiting for? What is the dependency that is pending? Something that has no dependency is something that is auto started not something that never start. |
podman run ... will only start the one create container and all containers that it depends on (namespace sharing or --requires), if the pod has no shared namesapce it is not necessary to start the infra. |
Concur with that statement. |
for podman pod create, when we are not sharing any namespaces there is no point for the infra container. This is especially true since resources have also been decoupled from the container recently. handle this on the cmd level so that we can still create infra if set explicitly resolves containers#15048 Signed-off-by: Charlie Doern <[email protected]>
Got it. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
when creating a share-nothing pod using
podman pod create
with--share=""
infra containers is not started and status is reported as
Degraded
Steps to reproduce the issue:
Describe the results you received:
status is reported as
Degraded
and infra is created but not startedDescribe the results you expected:
status should be up and running and infra should be up
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:it applies to both 3.x and 4.x I'm using 4.1.0
Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
this feature is needed by podman-compose when placing multiple containers in a single pod, two containers might have different hostnames
The text was updated successfully, but these errors were encountered: