adfinis / openshift-mariadb-galera

Kubernetes / OpenShift Images for a MariaDB Galera Cluster
GNU General Public License v3.0
37 stars 42 forks source link

Failed to open file '/var/lib/mysql//galera.cache': 1 (Operation not permitted) #21

Closed ghatdev closed 5 years ago

ghatdev commented 6 years ago

I added priviliged scc to default service account.

Full log file is :

How can I fix it?

tongpu commented 6 years ago

You shouldn't need to configure the privileged SCC, because the image is built to as an unprivileged use. Are you using a PVC for persistent storage or what kind of storage are you using?

ghatdev commented 6 years ago

@tongpu I'm using NFS now.

tongpu commented 6 years ago

What NFS version are you using? galera.cache is a memory mapped file and according to https://stackoverflow.com/a/10375296 you would need at least NFSv4 for that.

ghatdev commented 6 years ago

@tongpu Flags: rw,relatime,vers=4.1,rsize=1048576 ... I think my nfs version is >4

tongpu commented 6 years ago

Then I'm out of ideas. As it doesn't seem to be a permission issue and the container works without issues with GlusterFS and other network storage I would recommend asking on the galera mailinglist: codership-team@googlegroups.com

ghatdev commented 6 years ago

Maybe I should try one more time. So appreciate for your help!