pulp-operator icon indicating copy to clipboard operation
pulp-operator copied to clipboard

Trying to Bind ipv6 in an environment where ipv6 is disabled

Open tkyggit opened this issue 10 months ago • 1 comments

Version pulp-operator: 1.0.0-beta.4 pulp images:

  spec:
  deployment_type: galaxy
  image: [quay.io/pulp/galaxy-minimal](http://quay.io/pulp/galaxy-minimal)
  image_version: 4.6.3
  image_web: [quay.io/pulp/galaxy-web](http://quay.io/pulp/galaxy-web)
  image_web_version: 4.6.3

Describe the bug Failure to start in environment with ipv6 disabled

To Reproduce

  • disable ipv6
  • install k3s
  • install galaxy
helm install -n galaxy --create-namespace pulp pulp-operator/pulp-operator --set namespace=galaxy

cat << EOT > "galaxy.yaml"
---
apiVersion: repo-manager.pulpproject.org/v1beta2
kind: Pulp
metadata:
  name: galaxy
  namespace: galaxy
spec:
  deployment_type: galaxy
  image: quay.io/pulp/galaxy-minimal
  image_version: 4.6.3
  image_web: quay.io/pulp/galaxy-web
  image_web_version: 4.6.3
  api:
    replicas: 1
    env_vars:
    - name: PULP_GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_ACCESS
      value: "true"
    - name: PULP_GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_DOWNLOAD
      value: "true"
  content:
    replicas: 1
  worker:
    replicas: 1
  web:
    replicas: 1
EOT

kubectl apply -f galaxy.yaml

The next three are CrashLoopBackOff due to ipv6 issues.

  • content
  • web
  • api
2024/04/15 01:13:06 [emerg] 1#0: socket() [::]:8080 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:8080 failed (97: Address family not supported by protocol)

Expected behavior Option to disable ipv6 to be provided.

Additional context Can i disable ipv6 ? like below

https://github.com/ansible/awx-operator/issues/1017

tkyggit avatar Apr 15 '24 01:04 tkyggit

Hi @tkyggit ,

Although we have yet to update our docs, you should switch to using the galaxy-operator. It is the recommended approach. This includes using images published by their team.

https://ansible.readthedocs.io/projects/galaxy-operator

2nd of all, this is a bug in both galaxy-operator and in pulp-operator. We will keep this issue here so that we can fix it, but you can file an almost identical issue under galaxy-operator (they'll probably recognize the same example code & output because their operator is derived from ours):

https://github.com/ansible/galaxy-operator/issues

-Mike

mikedep333 avatar Apr 16 '24 15:04 mikedep333