-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redis-server does not start on Canonical Kubernetes #90
Comments
Hi @faebd7 thank you for reporting the issue. I have adjusted the user and directory setup in the rock that is used by this charm (see canonical/charmed-redis-rock#7), so hopefully this should work now. Revision 33 of the Please let us know if other issues arise. |
The problem is still present in revision 33. The error below from
The Juju-created storage volume is mounted on top of the image's own |
Reopening the issue, per the above comment. |
Hi @faebd7 thank you for the feedback. I've now changed the charm itself to make sure the required directories are there, so hopefully this time it works. The new revision nr. 34 has been published to charmhub. Please let me know if it works. |
@reneradoi Looks good in my testing, thank you! |
Hi,
I noticed that redis-k8s does not work on Canonical Kubernetes (channel
1.30/beta
, revision 64).Digging into the deployment, I found this:
When the Juju storage is provisioned on a Canonical Kubernetes cluster, the permissions of
/var/lib/redis
are as follows:This does not work, because the pebble plan runs
redis-server
as theredis
user.When deploying on microk8s, the permissions of the provisioned storage are as follows:
and so
redis-server
is able create the files and directories it needs:This difference most likely arises because microk8s uses
microk8s.io/hostpath-provisioner
, whereas Canonical Kubernetes usesrawfile.csi.openebs.io
.The latter's defaults are more sensible, and probably closer to what e.g. the OpenStack Cinder provisioner does.
I think it would make sense for the charm to ensure that
/var/lib/redis
is owned by the correct user and group beforeredis-server
becomes startable.The text was updated successfully, but these errors were encountered: