podman play kube truncates env parameters #11891
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
An image run with "podman run" has correct env value:
JAVA_TOOL_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal'
But when running this image using "podman play kube" the same env has value:
JAVA_TOOL_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name'
Steps to reproduce the issue:
$ podman run --rm quay.io/ibm/kar-sdk-java-runtime-11:latest /bin/bash -c set | grep name
create podman-bug.yaml with content:
apiVersion: v1
kind: Pod
metadata:
labels:
app: testbug
name: testbug
spec:
containers:
env:
image: quay.io/ibm/kar-sdk-java-runtime-11:latest
name: bugpod
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
seLinuxOptions: {}
workingDir: /
restartPolicy: Never
$ podman play kube podman-play-bug.yaml
$ podman exec $(podman ps | grep quay | awk '{print $1}') /bin/bash -c set | grep name
Describe the results you received:
result from step 1:
JAVA_TOOL_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal'
OPENJ9_JAVA_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal -Dosgi.checkConfiguration=false'
result from step 4:
$ podman exec b6c94714b410 /bin/bash -c set | grep name
JAVA_TOOL_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name'
OPENJ9_JAVA_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name'
Describe the results you expected:
I expected the env parameter values from "podman play kube" to be the same as from "podman run"
Additional information you deem important (e.g. issue happens only occasionally):
**Output of
podman version
Output of
podman info --debug
: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/master/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)
The text was updated successfully, but these errors were encountered: