openshift-evangelists / oc-cluster-wrapper

oc cluster up bash wrapper
Apache License 2.0
144 stars 72 forks source link

hostPath volumes needs write (777) permission for random userid #50

Closed rafaeltuelho closed 7 years ago

rafaeltuelho commented 7 years ago

Trying to install nexus plugin fails during Nexus' POD startup. When nexus tries to write on /nexus-data PV it receives a Pemission Denied error. It only works if you give a 777 on ~/.oc/volumes/nexus-data.

I had to enable hostPath Volume Plug-in on global scc as described in [1]

[1] https://docs.openshift.com/enterprise/3.0/admin_guide/manage_scc.html#use-the-hostpath-volume-plugin

rafaeltuelho commented 7 years ago

same for gitlab...

Permission Denied for postgres, redis and gitlab PODs' hostPath mounted PVs....

jorgemoralespou commented 7 years ago

I introduced a bug not too long ago. Fixed as I reverted permissions to 777 instead of 770.

@rafaeltuelho Sorry for that.