Open Svenum opened 6 months ago
/var/lib/pulp/media
is created in PV by init container for api pod: https://github.com/ansible/galaxy-operator/blob/10fbb425a4877d9a0e3b0c91f03b0dabf622a64b/roles/galaxy-api/templates/galaxy-api.deployment.yaml.j2#L254
Ensure your PVC galaxyt-file-storage
(created by Operator) is writable by UID: 1000
.
The pvc has the user 0:700. (root:gid700) but the directory tmp and artifact are created by the api pod.
tmp
and assets
are backed by emptyDir
:
So only media
is on your PVC and has to be able to be written by 1000
.
@rooftopcellist
F.Y.I., perhaps mkdir
for /var/lib/pulp/tmp
in init container is not required.
@Svenum @rooftopcellist Uh-oh sorry ignore my comment above 😞
@Svenum I can't dive deeper this right away, but anyway, I had the same problem in the past, and I fixed it by making PVC writable by UID: 1000. In Pulp Operator, I had a user with UID 700, but in Galaxy Operator, I have UID 1000.
Yes in the pod I have the user wirh the und 1000. But the problem is not solved if I make an chown on the folder. The pvc should have the right rights automatically
The problem is, that I try to automate the installation of the Operator with ansible, and I dont want to do extra steps for the galaxy-operator.
Same issue here with default install by the operator, i had to manually create the folder /var/lib/pulp/media.
Version quay.io/ansible/galaxy-operator:2024.02.29
Describe the bug Every Pod is up and running but the api Pod has this error:
To Reproduce Create an galaxy instance with the operator.
Expected behavior The API Pod should run and work.
Additional context My config: