-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
permission denied while creating volume path #16556
Comments
I guess it's from wsmater area. It looks like a P1. |
This is an OpenShift issue -- any container that has a VOLUME directive in its dockerfile has to have a corresponding volumeMount. The solution is to add a volume to the devfile: apiVersion: 1.0.0
metadata:
name: fbenoit-test1
projects:
- name: python-hello-world
source:
type: git
location: 'https://github.com/datawire/hello-world-python.git'
components:
- id: ms-python/python/latest
type: chePlugin
- type: dockerimage
image: docker.io/florentbenoit/test3
memoryLimit: 512Mi
volumes:
- name: foo
containerPath: /foo There's not a whole lot we can do on the Che side automatically here. Without a volumeMount, there's no good way to determine where to allocate the storage for the container, and without the dockerfile there's no way to know which volumes we need to add. |
@amisevsk are you sure about that? |
We've been hit by this ourselves when the volume mounts for jwt-proxy container strayed away from the |
@l0rd It's probably a configuration setting in the cluster itself (not that I can find documentation about it), but without a volumemount, 3.x clusters will try to create a volume in Edit: found some docs for 3.11 at least: https://docs.openshift.com/container-platform/3.11/install/host_preparation.html#blocking-local-volume-usage Edit2: Additional info: bugzilla, KB article. Looks like CRI-O can handle this gracefully, but it's still a cluster/host config issue, not a Che issue. |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Describe the bug
Workspace is not starting and report "timeout"
In workspace pod events we can see
Here is the dockerfile of the container image used:
The main error is coming with the VOLUME instruction
Che version
Steps to reproduce
https://che.openshift.io/dashboard/#/load-factory?url=https://gist.githubusercontent.com/benoitf/b1ef68e9c9daece33e341a0cd0b1b046/raw/badf0b47da7dd448e80ed5ab8000bd909dc6f6b8/gistfile1.txt
Expected behavior
Workspace is able to start
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
The text was updated successfully, but these errors were encountered: