-
Bug
-
Resolution: Done
-
Blocker
-
3.9.0.GA
-
None
-
False
-
None
-
False
-
-
Description of problem:
After task Allow running podman from within a workspace was resolved podman commands should allow to manege containers, but permission denied.
Steps to Reproduce
- Clone https://github.com/l0rd/dockerfile-hello-world using factory
- Open terminal
- Run script:
export KUBEDOCK_ENABLED=true echo $KUBEDOCK_ENABLED /entrypoint.sh cd $PROJECT_SOURCE export USER=$(oc whoami) export TKN=$(oc whoami -t) export REG="image-registry.openshift-image-registry.svc:5000" export PROJECT=$(oc project -q) export IMG="${REG}/${PROJECT}/hello" podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG} podman build -t ${IMG} . podman push --tls-verify=false ${IMG} podman run --rm ${IMG}
Actual results:
Permission denied:
KUBEDOCK_ENABLED Java environment set to /usr/lib/jvm/java-11-openjdk Kubedock is enabled (env variable KUBEDOCK_ENABLED is set to true). Kubeconfig found. Starting kubedock with params "--reverse-proxy"... Done. Replacing podman with podman-wrapper.sh... Done. sh: line 10: /home/user/.local/bin/podman: Permission denied sh: line 11: /home/user/.local/bin/podman: Permission denied sh: line 12: /home/user/.local/bin/podman: Permission denied sh: line 13: /home/user/.local/bin/podman: Permission denied command terminated with exit code 126
Expected results:
Output "Hello from Kubedock!"
Reproducibility (Always/Intermittent/Only Once):
Acceptance criteria:
Definition of Done:
Build Details:
DS 3.9