Bug 720001

Summary: Interface ID not included when writing link-local IPv6 name server addresses to resolv.conf
Product: [Fedora] Fedora Reporter: Tore Anderson <tore>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dcbw, jklimes
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-0.8.9997-6.git20110721.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-03 02:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tore Anderson 2011-07-08 16:30:59 UTC
Description of problem:

If NetworkManager learns an name server with a link-local IPv6 address via DHCPv6 (the bug probably applies to RDNSS too, but I have not verified), it will write the address to /etc/resolv.conf without appending the interface ID. Since this address is ambiguous to glibc, it cannot be used.


Version-Release number of selected component (if applicable):

NetworkManager-0.8.9997-5.git20110702.fc15.x86_64


How reproducible:

100%


Steps to Reproduce:
1. Connect to a network that announces a link-local IPv6 nameserver using DHCPv6. In my case, this is done by the default behaviour of a ZyXEL P-2812HNU-F3 VDSL router, and is logged thusly by NetworkManager:

[...]
<info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started...
<info>   address 2001:840:3033:10::d001
<info>   prefix 64
<info>   nameserver 'fe80::ca6c:87ff:feab:d027'
<info>   nameserver '2001:840:100::'
<info>   nameserver '2001:840:200::'
<info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
[...]


Actual results:

I end up with a resolv.conf containing the following:

> # Generated by NetworkManager
> search fud.no
> nameserver fe80::ca6c:87ff:feab:d027
> nameserver 2001:840:100::
> nameserver 2001:840:200::


Expected results:

Ending up with a resolv.conf that specified the interface ID for the link-local address, in my case like so:

> # Generated by NetworkManager
> search fud.no
> nameserver fe80::ca6c:87ff:feab:d027%eth0
> nameserver 2001:840:100::
> nameserver 2001:840:200::


Additional info:

In my case with the ZyXEL P-2812HNU-F3, this isn't a major problem as it also announces its upstream resolvers as the scondary and tertiary server. glibc will seamlessly and without delay fail over to those. However, the link-local address (which belongs to the ZyXEL itself) had been the only address that was being announced, any attempt to resolve anything would likely have failed.

Comment 1 Jirka Klimes 2011-07-12 14:16:40 UTC
Fixed upstream:
c3893b5325ca61261be1749490352f26b41bd479 (master)
31e0c67aab27b467348e533026d66cba85241b37 (NM_0_8)

Comment 2 Tore Anderson 2011-07-16 11:28:14 UTC
Thanks Jirka, I can confirm that the fix works well for me.

Tore

Comment 3 Fedora Update System 2011-07-21 21:21:28 UTC
NetworkManager-0.8.9997-6.git20110721.fc15,NetworkManager-openswan-0.8.999-2.git20110721.fc15,NetworkManager-openvpn-0.8.9997-2.git20110721.fc15,NetworkManager-vpnc-0.8.999-3.git20110721.fc15,NetworkManager-pptp-0.8.999-2.git20110721.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/NetworkManager-0.8.9997-6.git20110721.fc15,NetworkManager-openswan-0.8.999-2.git20110721.fc15,NetworkManager-openvpn-0.8.9997-2.git20110721.fc15,NetworkManager-vpnc-0.8.999-3.git20110721.fc15,NetworkManager-pptp-0.8.999-2.git20110721.fc15

Comment 4 Fedora Update System 2011-07-23 02:03:26 UTC
Package NetworkManager-0.8.9997-6.git20110721.fc15, NetworkManager-openswan-0.8.999-2.git20110721.fc15, NetworkManager-openvpn-0.8.9997-2.git20110721.fc15, NetworkManager-vpnc-0.8.999-3.git20110721.fc15, NetworkManager-pptp-0.8.999-2.git20110721.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-0.8.9997-6.git20110721.fc15 NetworkManager-openswan-0.8.999-2.git20110721.fc15 NetworkManager-openvpn-0.8.9997-2.git20110721.fc15 NetworkManager-vpnc-0.8.999-3.git20110721.fc15 NetworkManager-pptp-0.8.999-2.git20110721.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/NetworkManager-0.8.9997-6.git20110721.fc15,NetworkManager-openswan-0.8.999-2.git20110721.fc15,NetworkManager-openvpn-0.8.9997-2.git20110721.fc15,NetworkManager-vpnc-0.8.999-3.git20110721.fc15,NetworkManager-pptp-0.8.999-2.git20110721.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-08-03 02:29:38 UTC
NetworkManager-0.8.9997-6.git20110721.fc15, NetworkManager-openswan-0.8.999-2.git20110721.fc15, NetworkManager-openvpn-0.8.9997-2.git20110721.fc15, NetworkManager-vpnc-0.8.999-3.git20110721.fc15, NetworkManager-pptp-0.8.999-2.git20110721.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.