Skip to content
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

Can't execute podman commands in a workspace with UDI9 #23356

Open
svor opened this issue Feb 20, 2025 · 1 comment
Open

Can't execute podman commands in a workspace with UDI9 #23356

svor opened this issue Feb 20, 2025 · 1 comment
Assignees
Labels
area/dogfooding Using Eclispe Che to code, test and build Eclipse Che area/udi Issues and PRs related to the universal developer image https://github.com/devfile/developer-images kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@svor
Copy link
Contributor

svor commented Feb 20, 2025

Describe the bug

It's not possible to execute any podman command in a workspace that was created from devfile with quay.io/devfile/universal-developer-image:ubi9-latest tools container image.

The error is: ERRO[0000] path "/home/user/.config" exists and it is not owned by the current user

Che version

7.99@latest

Steps to reproduce

  1. Create a workspace from https://gist.githubusercontent.com/svor/25885549b0de03be4fa3ca00a2e871e7/raw/b5aa1f771821689e4800849736b8818f6017ad95/udi9-devfile.yaml on the dogfooding cluster
  2. Open terminal and try to run podman info command

Expected behavior

podman commands should be executed without errors

Runtime

OpenShift

Screenshots

Image

@svor svor added area/dogfooding Using Eclispe Che to code, test and build Eclipse Che area/udi Issues and PRs related to the universal developer image https://github.com/devfile/developer-images kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. labels Feb 20, 2025
@isuftin
Copy link

isuftin commented Feb 20, 2025

We had the same issue and for us it was because the entrypoint script in the UDI9 image as writing overlayfs content into /home/user/.config and setting the permissions to root either at the user or group level, I forget which.

Possibly around here https://github.com/devfile/developer-images/blob/main/base/ubi9/entrypoint.sh#L8-L16

While that was a nagging issue for me, it also seemed to have gone away on its own after I deleted the workspace I had (we have per-user perm volumes) and created a new one. For some reason then the directory and contents were owned by user.

@svor svor added the team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. label Feb 20, 2025
@ibuziuk ibuziuk moved this to Unplanned in Eclipse Che Team B Backlog Feb 25, 2025
@dkwon17 dkwon17 moved this from Unplanned to 📅 Planned for this Sprint in Eclipse Che Team B Backlog Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dogfooding Using Eclispe Che to code, test and build Eclipse Che area/udi Issues and PRs related to the universal developer image https://github.com/devfile/developer-images kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
Status: 📅 Planned for this Sprint
Development

No branches or pull requests

3 participants