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

mkdir: can't create directory because of permission denied #7

Closed
jobcespedes opened this issue Dec 4, 2019 · 3 comments
Closed

mkdir: can't create directory because of permission denied #7

jobcespedes opened this issue Dec 4, 2019 · 3 comments

Comments

@jobcespedes
Copy link
Contributor

Issue

No storage is created when using openebs-hostpath StorageClass.

Actual result

The container init-pvc-<uuid> fails with:

mkdir: can't create directory '/data/pvc-3f7500d7-16ae-11ea-971b-fa163e796691': Permission denied

Expected result

Storage created

Workaround:

  1. Permissive selinux in nodes
  2. Modify init-pvc-<uuid> and edit: securityContext: {}:
spec:
  securityContext: 
    privileged: true

Environment

Openshift: 4.2
openebsoperator: v1.3.0

Other

I think the issue here is that init-pvc-<uuid> is not running as privileged. Running it as privileged is a better option that a permissive selinux. I just don't know yet which component is to be modified for that to happen.

@ksatchit
Copy link

cc: @kmova @ChandanSagar

@jobcespedes , thank you for reporting this issue & apologies for the delay in response. While we shall look into this, would be great if you can add the workarounds into the description of the CSV here: https://github.com/openebs/helm-operator/tree/master/olm/1.3.0 & 1.4.0

jobcespedes added a commit to jobcespedes/helm-operator that referenced this issue Dec 28, 2019
Workarounds for no storage created when using openebs-hostpath StorageClass in Openshift 4.2.
openebs-archive#7
jobcespedes added a commit to jobcespedes/helm-operator that referenced this issue Dec 28, 2019
Workarounds for no storage created when using openebs-hostpath StorageClass in Openshift 4.2.
openebs-archive#7
@ksatchit
Copy link

This has been fixed in the 1.5 release with this PR: openebs-archive/maya#1542

With this, this step would be sufficient to successfully create the PV with openebs-hostpath storage class:

image

Keeping this issue open until the OpenEBS 1.5 CSV is pushed to the OperatorHub. cc: @ChandanSagar

ksatchit pushed a commit that referenced this issue Jan 2, 2020
Workarounds for no storage created when using openebs-hostpath StorageClass in Openshift 4.2.
#7
@ksatchit
Copy link

The OpenEBS 1.5 community operator is now out! @jobcespedes can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants