Closed dystewart closed 1 year ago
@larsks
OpenShift generally runs pods with a random UID. We can't assume write access anywhere in volumes that we've mounted on the pod. Mounting emptyDir
volume for the config and pointing mc
at it resolved this problem.
Here is the repo housing all the applicable yaml: https://github.com/OCP-on-NERC/fio-openshift-storage-performance
Essentially what the job files are intended to do is:
Here is an example of the inconsistency I'm running into Take a look at pod.yaml specifically:
Deploying this pod, (with the associated obc.yaml and target-pvc.yaml) results in the output:
Added
storesuccessfully.
Take a look at benchmark-pv.yaml, specifically:
Here is mc-results-to-bucket.sh:
When this job runs however the output is:
mc: <ERROR> Unable to save new mc config. mkdir /.mc: permission denied.
I'm using the same base image: docker.io/minio/mc so I'm not sure why the behavior would be different. Is there something I'm missing about deploying a pod via a job vs deploying a pod directly?
Any ideas?