jmeter-operator icon indicating copy to clipboard operation
jmeter-operator copied to clipboard

InfluxDB not starting on OpenShift due to permission error

Open Crazy-Duck opened this issue 5 years ago • 1 comments

I'm following the README trying to get everything set up on Openshift, however when creating the deployment based on the jmeter-deploy.yaml, the InfluxDB container goes into a crashloop due to a permissions error

ts=2019-06-21T05:50:01.973379Z lvl=info msg="InfluxDB starting" log_id=0GA9CAyG000 version=1.7.6 branch=1.7 commit=01c8dd416270f424ab0c40f9291e269ac6921964
ts=2019-06-21T05:50:01.973459Z lvl=info msg="Go runtime" log_id=0GA9CAyG000 version=go1.11 maxprocs=8
run: create server: mkdir all: mkdir /var/lib/influxdb/meta: permission denied

I presume that this is because OpenShift runs all containers as a non root user by default. Does anyone have experience setting this up on OpenShift and have a hint on what would be the most elegant way to solve this?

Crazy-Duck avatar Jun 21 '19 06:06 Crazy-Duck

There is a special version for OpenShift here (without the operator), which worked for me on OpenShift 3.5 and 3.9: https://github.com/kubernauts/jmeter-kubernetes/tree/master/openshift

arashkaffamanesh avatar Jun 21 '19 09:06 arashkaffamanesh