ansible / awx-operator

An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. 🤖
https://www.github.com/ansible/awx
Apache License 2.0
1.17k stars 587 forks source link

mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied #1813

Closed 11philip22 closed 1 month ago

11philip22 commented 1 month ago

Please confirm the following

Bug Summary

Hi, I am trying to install the awx operator on digital ocean kubernetes.
When I run helm install -n awx --create-namespace my-awx-operator awx-operator/awx-operator my postgres container fails to start with the error mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied.
When I describe the postgres container I see that PGDATA is set to /var/lib/pgsql/data/pgdata and not /var/lib/pgsql/data/userdata image How do i get this to work?

AWX Operator version

ansible-operator: v1.34.0

AWX version

How can I see?

Kubernetes platform

kubernetes

Kubernetes/Platform version

1.29.1-do.0

Modifications

no

Steps to reproduce

helm repo add awx-operator https://ansible.github.io/awx-operator/
helm install -n awx --create-namespace my-awx-operator awx-operator/awx-operator

Expected results

I expect my awx postgres container to be created.

Actual results

My database container throws this error mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied

Additional information

No response

Operator Logs

No response

TheRealHaoLiu commented 1 month ago

dupe of https://github.com/ansible/awx-operator/issues/1770 see https://github.com/ansible/awx-operator/issues/1770#issuecomment-2031118430 for workaround

in next release you can use the postgres init container to initialize the PGDATA directory see https://github.com/ansible/awx-operator/pull/1805

11philip22 commented 1 month ago

ah thank you