You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed when using microk8s 1.27/stable and 1.28/stable, that microk8s can fail to configure coredns to use /etc/exports as expected on systems that use ipv6.
The issue comes about because the microk8s snap is using python 3.8.
On the systems that fail, the system's resolv.conf contains ipv6 addresses with scope ids, like so:
The microk8s script, scripts/find-resolv-conf.py, tries to check that none of these addresses are loopbacks (they aren't), but fails because feeding an ipv6 address with a scope id (the trailing '%2') into ipaddress.ip_address(address) explodes with an address validation error, despite it being a perfectly valid ipv6 address. This causes the script to determine that there is no valid resolv.conf on the system, which results in coredns falling back to use 8.8.8.8 etc.
The snap need to use at least python 3.9 to prevent ipaddress.ip_address(address) of a scoped ipv6 address from failing.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've noticed when using microk8s 1.27/stable and 1.28/stable, that microk8s can fail to configure coredns to use /etc/exports as expected on systems that use ipv6.
The issue comes about because the microk8s snap is using python 3.8.
On the systems that fail, the system's resolv.conf contains ipv6 addresses with scope ids, like so:
The microk8s script, scripts/find-resolv-conf.py, tries to check that none of these addresses are loopbacks (they aren't), but fails because feeding an ipv6 address with a scope id (the trailing '%2') into
ipaddress.ip_address(address)
explodes with an address validation error, despite it being a perfectly valid ipv6 address. This causes the script to determine that there is no valid resolv.conf on the system, which results in coredns falling back to use 8.8.8.8 etc.The snap need to use at least python 3.9 to prevent
ipaddress.ip_address(address)
of a scoped ipv6 address from failing.The text was updated successfully, but these errors were encountered: