-
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 assigns wrong environment vars. #5140
Comments
@haircommander Could you take a look at this one? |
A friendly reminder that this issue had no activity for 30 days. |
@sujil02 PTAL |
@sujil02 Did you ever get a chance to look at this, If yes could you hand it over to @ryanchpowell |
Yes, I did look into this a couple of times. But could not get a significant breakthrough @ryanchpowell we can connect and then probably knock this one out together? |
@haircommander Any chance you could look at this? |
I will try to cleanup these play/generate kube issues |
You da man. |
it turns out, when we do the initial |
I don't understand exactly where this problem is. . . |
if the image has environment variables, play kube takes them and adds them to the container's env structure. However, generate kube does not take the image env into account. So first generate does not have image env, first play does have image env, second generate does have image env. does that clear it up @zhangguanzhang |
so need to get all env from ctr first, and remove all the env from the img? |
Sure, except you need to be careful, they match exactly, IE Name and Value. Otherwise there is a chance the user specified an environment that overroad the default. There is also the corner case where the user created the pod/container with an exact match, but I think we can live with this, as a big corner case. |
You might want to remove "container=", since Podman adds this itself. And we don't want openshift setting container=podman when a user runs the container on CRI-O. |
A friendly reminder that this issue had no activity for 30 days. |
@zhangguanzhang Interested in taking this on? |
I am busy these days, if the problem is not solved later, I will try |
I think this problem maybe fixed by #8654, so could you try with the latest version? |
Reopen if it does not. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman play assigns environment vars to the wrong containers.
Steps to reproduce the issue:
Describe the results you received:
There is an unexpected difference between the two yaml files
Differences are regarding the env variables.
Describe the results you expected:
I expected both files to be identical or with minor differences
Additional information you deem important (e.g. issue happens only occasionally):
always
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
see attached files
gitea.yml.txt
gitea_played.yml.txt
The text was updated successfully, but these errors were encountered: