k8ssandra-operator
k8ssandra-operator copied to clipboard
Medusa on Openshift
When i enable medusa, medusa cluster STS wont start.
Init:CreateContainerError
level=error msg="runc create failed: unable to start container process: error during container init: exec: "/home/cassandra/docker-entrypoint.sh": stat /home/cassandra/docker-entrypoint.sh: permission denied"``
- K8ssandra Operator version:
1.26
-
Kubernetes cluster kind:
OKD 4.19
-
Manifests:
-
K8ssandra Operator Logs:
insert K8ssandra Operator logs relevant to the issue here
Anything else we need to know?:
Found this ...
https://github.com/thelastpickle/cassandra-medusa/issues/832
This is standard behavior of Openshift. You need to enforce the UID/GID to match what Medusa needs in this case (and potentially give it nonroot-v2 rights).
This is standard behavior of Openshift. You need to enforce the UID/GID to match what Medusa needs in this case (and potentially give it nonroot-v2 rights).
I know this, but i need to run without that right. Now trying build medusa container to work with any uid, but not much progress ...
So my colleague found how to make it work. Dockerfile
FROM k8ssandra/medusa:0.25.0
USER root
RUN chgrp -R 0 /home/cassandra && \
chmod -R g=u /home/cassandra
ENV PYTHONUSERBASE=/home/cassandra/.local/
USER cassandra