[Bug 684534] New: getaddrinfo-ipv6-sanity.diff no longer works
https://bugzilla.novell.com/show_bug.cgi?id=684534 https://bugzilla.novell.com/show_bug.cgi?id=684534#c0 Summary: getaddrinfo-ipv6-sanity.diff no longer works Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: pbaudis@novell.com ReportedBy: mls@novell.com QAContact: qa@suse.de Found By: Customer Blocker: --- The getaddrinfo-ipv6-sanity.diff makes glibc not do IPv6 AAAA requests if ipv6 is disabled (i.e. there's no ipv6 interface config). The current glibc code calls gethostbyname4() if AF_UNSPEC is used, it ignores the usable_ipv6 parameter introduced with the getaddrinfo-ipv6-sanity.diff. I propose to only use gethostbyname4() if usable_ipv6 is true, i.e. change if (fct4 != NULL) to if (fct4 != NULL && usable_ipv6) in sysdeps/posix/getaddrinfo.c Side note: The debian version of getaddrinfo-ipv6-sanity.diff contains a slightly different getaddrinfo-ipv6-sanity.diff, it skips interfaces where there is only a link=local ipv6 address defined when doing the ipv6 usability check. That's good for people with routers running a broken DNS server, but it forbids link-local IPv6 networks. So I'm not sure if it's a good idea or not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c1
--- Comment #1 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c2
--- Comment #2 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c5
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c6
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c7
--- Comment #7 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c8
--- Comment #8 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c9
--- Comment #9 from Ralf Haferkamp
Well, we can't have it both ways. Either we do return ipv6 addresses when there's no interface with ipv6, or we don't. bug 706719 is about a system where there's no ipv6 interface, but still expects a ipv6 address to be returned. It doesn't expect an IPv6 to be returned. It only expects not to get the same IPv4 address returned twice. And at least according to the "ip" output there is an IPv6 address configured for lo (though I might just have missunderstood you):
1: lo:
I would be inclined to say that this expectation is wrong, and indeed the past years changes in the resolver always worked towards not returning ipv6 addresses for machines were it's reasonable sure that it doesn't have ipv6. That would be ok, but why is it returning 127.0.0.1 twice, now?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c10
Michael Matz
That would be ok, but why is it returning 127.0.0.1 twice, now?
See also bug 606980 . Basically upstream decided that returning this twice for localhost is okay. You'll somehow have to deal with this. (the ipv6 address on lo is ignored to determine ipv6 capabilities of the host) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c11
--- Comment #11 from Ralf Haferkamp
See also bug 606980 . Basically upstream decided that returning this twice for localhost is okay. You'll somehow have to deal with this. Upstream also "decided" that: "The ::1 entry should have no localhost names associated." (https://bugzilla.redhat.com/show_bug.cgi?id=496300#c3). But our default /etc/hosts does exactly this.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c12
--- Comment #12 from Michael Matz
Upstream also "decided" that: "The ::1 entry should have no localhost names associated." (https://bugzilla.redhat.com/show_bug.cgi?id=496300#c3). But our default /etc/hosts does exactly this.
Yeah. See further down that bug report. It enumerates all issues connected with this problem. If we remove localhost from ::1 in /etc/hosts ipv6-only systems wouldn't work correctly anymore. If we leave it in we get double returns of 127.0.0.1 because of the rewriting on ipv4-only systems. Catch 22. I don't have a good solution for this, but I think the lesser evil is to deal with the doubled returns. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c13
--- Comment #13 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c14
--- Comment #14 from Michael Matz
Hmm, I see, it's http://sources.redhat.com/bugzilla/show_bug.cgi?id=4980 . Ulrich dislikes to give justifications for his changes, so there we are. I think I'll just revert this unjustified remapping of ::1 to 127.0.0.1, and we're done. The above bug also quotes rfc2553, meanwhile superseeded by rfc3493. Both RFC state that: "Note: The IPv6 unspecified address ("::") and the IPv6 loopback address ("::1") are not IPv4-compatible addresses." If understand it correctly
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c15
--- Comment #15 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c16
--- Comment #16 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c17
--- Comment #17 from Ralf Haferkamp
I'm mbuilding for sle11-sp2, for other systems, somebody else please. I just built it on Factory and can it seems to fix the problem. 127.0.0.1 is returned only once on a IPv4 only system. I'll forward a submit request to Base:System.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c18
--- Comment #18 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c19
--- Comment #19 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c20
--- Comment #20 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c21
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c22
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c23
--- Comment #23 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c24
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c25
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c26
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c27
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c28
--- Comment #28 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c29
--- Comment #29 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c30
--- Comment #30 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c31
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c32
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c33
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c34
Harald Koenig
Patched glibc for 12.1 is currently building here: https://build.opensuse.org/project/show?project=home%3Aa_jaeger%3Abranches%3...
Michael, please test.
right now I'm on a conference where the local network breaks zypper too: Download (curl) error for 'http://download.opensuse.org/repositories/devel:languages:R:patched/openSUSE...': Error code: Connection failed Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable Abort, retry, ignore? [a/r/i/?] (a): a I'd like to "test" (use;) your patched glibc, but nufortuneately your URL above doesn't work anymore: Project not found: home:a_jaeger:branches:openSUSE:12.1:Update any pointers for finding help/testing code ? $ rpm -q glibc glibc-2.14.1-14.27.1.x86_64 thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c35
--- Comment #35 from Harald Koenig
Error code: Connection failed Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable
oops, forget about my last report! it's not a ipv6-only problem, host download.opensuse.org is completely down right now :-( download.opensuse.org has address 195.135.221.134 download.opensuse.org has IPv6 address 2001:67c:2178:8::13 it's still pinging but that's all:( so I'll wait and ping... ;-)) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c36
--- Comment #36 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c37
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c38
--- Comment #38 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c39
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c40
--- Comment #40 from andreas bittner
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c41
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c42
--- Comment #42 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=684534
https://bugzilla.novell.com/show_bug.cgi?id=684534#c43
Andreas Jaeger
participants (1)
-
bugzilla_noreply@novell.com