ansible / galaxy-operator

Galaxy-Operator
GNU General Public License v2.0
9 stars 15 forks source link

CI is failing when using Azure blob storage #40

Closed rooftopcellist closed 8 months ago

rooftopcellist commented 8 months ago

Is your feature request related to a problem? Please describe. Figure out why CI is failing when using Azure blob storage.

It appears to fail when pushing the test image to the galaxy registery.

podman pull registry.access.redhat.com/ubi9/ubi-micro:latest
podman login --tls-verify=false -u admin -p password localhost:24880
podman tag registry.access.redhat.com/ubi9/ubi-micro:latest localhost:24880/ubi9-micro:latest 
podman push --tls-verify=false localhost:24880/ubi9-micro:latest

https://github.com/ansible/galaxy-operator/actions/runs/7910509660/job/21593217754

Error: writing blob: uploading layer chunked: received unexpected HTTP status: 500 Internal Server Error

Describe the solution you'd like CI passes with azurite storage mocking service enabled.

Enable this for ci.yml and pr.yml

dsavineau commented 8 months ago

I would say this is coming from the recent refact with galaxy images.

The current galaxy ui images doesn't have the pulp ansible and container nginx snippets that should be included [3].

We don't have the same issue with galaxy_ng plugin because that snippet was hardcoded in the operator nginx configmap [4][5]

[1] https://github.com/pulp/pulp_ansible/blob/main/pulp_ansible/app/webserver_snippets/nginx.conf [2] https://github.com/pulp/pulp_container/blob/main/pulp_container/app/webserver_snippets/nginx.conf [3] https://github.com/ansible/galaxy-operator/blob/main/roles/pulp-web/templates/pulp-web.configmap.yaml.j2#L127 [4] https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/webserver_snippets/nginx.conf [5] https://github.com/ansible/galaxy-operator/blob/main/roles/pulp-web/templates/pulp-web.configmap.yaml.j2#L140-L160