Ipv6 required?

Problem:
pulp in single container not completing startup. it seems pulpcore-api keeps restarting but i get errors saying address family not supported. The address looks like a ipv6 local address… if i try starting the container on my personal mac that has ipv6 then it works fine. But i disable all ipv6 on my servers since i never use them. is ipv6 a hardcore requirement? is there someway that i can configure it to use ipv4 instead?

Expected outcome:
successful startup

Pulpcore version:
3.63.0

Pulp plugins installed and their versions:

Operating system - distribution and version:
docker pulp/pulp:latest

Other relevant data:
[2024-10-11 14:46:06 +0000] [1494] [ERROR] connection to (’::’, 24817) failed: [Errno 97] Address family not supported by protocol
[2024-10-11 14:46:06 +0000] [1483] [ERROR] connection to (’::’, 24816) failed: [Errno 97] Address family not supported by protocol
[2024-10-11 14:46:07 +0000] [1494] [ERROR] connection to (’::’, 24817) failed: [Errno 97] Address family not supported by protocol
[2024-10-11 14:46:07 +0000] [1483] [ERROR] Can’t connect to (’::’, 24816)
[2024-10-11 14:46:08 +0000] [1494] [ERROR] Can’t connect to (’::’, 24817)
Already migrated!
Calling /etc/init/pulpcore-content
/usr/local/bin/pulpcore-content
Already migrated!
Calling /etc/init/pulpcore-api
/usr/local/bin/pulpcore-api
[2024-10-11 14:46:09 +0000] [1508] [INFO] Starting gunicorn 23.0.0
[2024-10-11 14:46:09 +0000] [1508] [ERROR] connection to (’::’, 24817) failed: [Errno 97] Address family not supported by protocol

Hi, @nicokruger!

is ipv6 a hardcore requirement?

We have some configurations (gunicorn/nginx bindings and container probes) built in our images that are expecting an inet6 interface. There are 2 open issues to address this limitation:

is there someway that i can configure it to use ipv4 instead?

In addition to the local installation with single/multiple containers, we also provide an installation in k8s environments through pulp-operator. If you have a k8s/ocp cluster, it is possible to disable the ipv6 requirement with an operator CR config: Add a field to disable ipv6 in pulpcore/web pods by git-hyagi · Pull Request #1353 · pulp/pulp-operator · GitHub

1 Like