-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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-rootless 2.2 eats ENV variables from the packaging process #8608
Comments
@nalind @TomSweeneyRedHat PTAL |
I don't believe this is a Build issue, I just built an image based on the Containerfile and I see the environment variables. |
Could you do a |
Ahhh, this could be the |
HI ... please excuse if I created extra work, I could have included that information explicitly. It happens only when creating the containers with |
Having been pointed in the general direction what to look for, $ ./bin/podman version
Version: 2.2.0-dev
API Version: 2.0.0
Go Version: go1.13.8
Git Commit: 9e71fc4552b156dc027004a808d1b74552af4700
Built: Sat Dec 5 03:30:51 2020
OS/Arch: linux/amd64 does not eat the $ ./bin/podman play kube try.yaml
a container exists with the same name ("try") as the pod in your YAML file; changing pod name to try_pod
Pod:
bd14f2e8c6b2bc3002526c6a9a8fc9e7b7d902014ec53dbe000ad25937099f25
Container:
fa664d023b6ae162c42ad0b940ec801afc78e1de533276d8cbd40b8874bfec94
$ podman exec -ti try_pod-try env | sort
HOME=/root
HOSTNAME=try_pod
ISTHERE=ANYBODYOUTTHERE
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TERM=xterm while $ ./bin/podman version
Version: 2.2.0-dev
API Version: 2.0.0
Go Version: go1.13.8
Git Commit: bb07b8c9f1d6b8f24fef91d96cc9c3a3ea381d20
Built: Sat Dec 5 03:34:11 2020
OS/Arch: linux/amd64 does: $ ./bin/podman play kube try.yaml
a container exists with the same name ("try") as the pod in your YAML file; changing pod name to try_pod
Pod:
17458b4d4ba2140f60cdf3b8f5f4920aa0a920a9d57df363c8b83efd97d4bbcc
Container:
ddd2f9364775f24b407e581239221d3b265d60a9bbd8f2a4a900ca8241b904e8
$ podman exec -ti try_pod-try env | sort
container=podman
HOME=/root
HOSTNAME=try_pod
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TERM=xterm Just trying to be intelligent, please take no offence if I should be far off. Does podman/pkg/specgen/generate/kube/kube.go Lines 149 to 163 in 8e83799
|
seemed related to #5140 |
I'd be very grateful if you could release the fix for the (probably unintended) breaking change. We are using the |
fixes containers#8608. Signed-off-by: Christopher J. Ruwe <cjr@cruwe.de>
I've just started using podman and wanted to use podman play as an alternative to docket-compose and I faced this issue :) |
is this fix going to be released anytime soon? |
yes |
podman 3.0 RC1 should happen at the end of this week. |
/kind bug
Description
On Ubuntu 20.04, after upgrading to 2.2.0 (or freshly installing, it is a version issue), inside containers in pods created with
podman kube play
, environment variables from the packaging process (ENV
) are missing / invsibile.Steps to reproduce the issue:
and
podman build -t try --format=docker -f Containerfile .
and
podman play kube try.yaml
.Describe the results you received:
With 2.1.1 (is podman-rootless=2.1.1~2)
With 2.2.0 (is podman-rootless=2.2.0~2)
Describe the results you expected:
I'd rather like to have environment variables from the packaging process left intact.
Output of
podman version
:Working
Broken
Output of
podman info --debug
:(Freshly upgraded vbox)
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?
Yes, regrettably for several hours, initially thought I broke sth, until I understood what's happening here.
Additional environment details (AWS, VirtualBox, physical, etc.):
Same behaviour on physical as well as on VirtualBox. 2.1 works, 2.2 doesn't.
The text was updated successfully, but these errors were encountered: