apt switches to ipv6 and fails to download packages
Bug #1451899 reported by
Andrew Woodward
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Pawel Stefanski |
Bug Description
in parent https:/
This bug is to research and identify the root cause as this is likely a symptom of a larger issue.
https:/
I can back this assumption up with my own experience, where I deployed a cluster with bad public network settings, but the compute nodes where un-able to download packages and the same error occurred.
To post a comment you must log in.
I find the root cause for that in how getaddrinfo(3) function works. By default this function is using default preferences according to RFC3484, and prefers Ipv6 over Ipv4 when both ways are resolved.
We can change this behaviour by modifying /etc/gai.conf file adding precedence line for ipv4 scope with some high value.
ex.
precedence ::ffff:0:0/96 100