[Bug 738861] New: nfs not served to ipv6 only clients
https://bugzilla.novell.com/show_bug.cgi?id=738861 https://bugzilla.novell.com/show_bug.cgi?id=738861#c0 Summary: nfs not served to ipv6 only clients Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: devel@fresse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0a1) Gecko/20111226 Firefox/12.0a1 Here's my automounter setup: /etc/auto.master: /home /etc/auto.home /etc/auto.home: * -rw,fstype=nfs4 bridge.fresse.org:/home/& (automounter is started with -vvv) Reproducible: Always Actual Results: Dec 29 09:53:10 kegel automount[1776]: Starting automounter version 5.0.6, master map auto.master Dec 29 09:53:10 kegel automount[1776]: using kernel protocol version 5.02 Dec 29 09:53:10 kegel automount[1776]: lookup_nss_read_master: reading master files auto.master Dec 29 09:53:10 kegel automount[1776]: parse_init: parse(sun): init gathered global options: (null) Dec 29 09:53:10 kegel automount[1776]: lookup_read_master: lookup(file): read entry /home Dec 29 09:53:10 kegel automount[1776]: master_do_mount: mounting /home Dec 29 09:53:10 kegel automount[1776]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home Dec 29 09:53:10 kegel automount[1776]: lookup_nss_read_map: reading map file /etc/auto.home Dec 29 09:53:10 kegel automount[1776]: parse_init: parse(sun): init gathered global options: (null) Dec 29 09:53:10 kegel automount[1776]: mounted indirect on /home with timeout 600, freq 150 seconds Dec 29 09:53:10 kegel automount[1776]: st_ready: st_ready(): state = 0 path /home Dec 29 09:53:10 kegel automount[1776]: ghosting enabled Dec 29 09:53:17 kegel automount[1776]: handle_packet: type = 3 Dec 29 09:53:17 kegel automount[1776]: handle_packet_missing_indirect: token 9, name src, request pid 1784 Dec 29 09:53:17 kegel automount[1776]: attempting to mount entry /home/src Dec 29 09:53:17 kegel automount[1776]: lookup_mount: lookup(file): looking up src Dec 29 09:53:17 kegel automount[1776]: lookup_mount: lookup(file): src -> -rw,fstype=nfs4#011bridge.fresse.org:/home/& Dec 29 09:53:17 kegel automount[1776]: parse_mount: parse(sun): expanded entry: -rw,fstype=nfs4#011bridge.fresse.org:/home/src Dec 29 09:53:17 kegel automount[1776]: parse_mount: parse(sun): gathered options: rw,fstype=nfs4 Dec 29 09:53:17 kegel automount[1776]: parse_mount: parse(sun): dequote("bridge.fresse.org:/home/src") -> bridge.fresse.org:/home/src Dec 29 09:53:17 kegel automount[1776]: parse_mount: parse(sun): core of entry: options=rw,fstype=nfs4, loc=bridge.fresse.org:/home/src Dec 29 09:53:17 kegel automount[1776]: sun_mount: parse(sun): mounting root /home, mountpoint src, what bridge.fresse.org:/home/src, fstype nfs4, options rw Dec 29 09:53:17 kegel automount[1776]: mount_mount: mount(nfs): root=/home name=src what=bridge.fresse.org:/home/src, fstype=nfs4, options=rw Dec 29 09:53:17 kegel automount[1776]: mount_mount: mount(nfs): nfs options="rw", nobind=0, nosymlink=0, ro=0 Dec 29 09:53:17 kegel automount[1776]: mount(nfs): no hosts available Dec 29 09:53:17 kegel automount[1776]: dev_ioctl_send_fail: token = 9 Dec 29 09:53:17 kegel automount[1776]: failed to mount /home/src Dec 29 09:53:17 kegel automount[1776]: handle_packet: type = 3 Dec 29 09:53:17 kegel automount[1776]: handle_packet_missing_indirect: token 10, name src, request pid 1784 Dec 29 09:53:17 kegel automount[1776]: attempting to mount entry /home/src Dec 29 09:53:17 kegel automount[1776]: lookup_mount: lookup(file): looking up src Dec 29 09:53:17 kegel automount[1776]: dev_ioctl_send_fail: token = 10 Dec 29 09:53:17 kegel automount[1776]: failed to mount /home/src Expected Results: The mount should just have succeeded as it does in oS 11.3 and 11.4 I think the underlying problem is that mount.nfs4 does not resolve ipv6 addresses, here's the corresponding fragments from strace: 1914 socket(PF_INET6, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3 1914 connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "2a01:198:5b7:200::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 1914 gettimeofday({1325153054, 281751}, NULL) = 0 1914 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}]) 1914 sendto(3, "w_\1\0\0\1\0\0\0\0\0\0\6bridge\6fresse\3org\0\0\1\0\1", 35, MSG_NOSIGNAL, NULL, 0) = 35 1914 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}]) 1914 ioctl(3, FIONREAD, [86]) = 0 1914 recvfrom(3, "w_\201\200\0\1\0\0\0\1\0\0\6bridge\6fresse\3org\0\0\1\0\1\300\23\0\6\0\1\0\0\1`\0'\3ns5\300\23\nhostmaster\300\23w\336\364\215\0\0S\230\0\0\16\20\0\32^\0\0\0\7\10", 1024, 0, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "2a01:198:5b7:200::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 86 1914 close(3) = 0 1914 socket(PF_INET6, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3 1914 connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "2a01:198:5b7:200::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 1914 gettimeofday({1325153054, 283003}, NULL) = 0 1914 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}]) 1914 sendto(3, "\313\335\1\0\0\1\0\0\0\0\0\0\6bridge\6fresse\3org\0\0\1\0\1", 35, MSG_NOSIGNAL, NULL, 0) = 35 1914 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}]) 1914 ioctl(3, FIONREAD, [86]) = 0 1914 recvfrom(3, "\313\335\201\200\0\1\0\0\0\1\0\0\6bridge\6fresse\3org\0\0\1\0\1\300\23\0\6\0\1\0\0\1`\0'\3ns5\300\23\nhostmaster\300\23w\336\364\215\0\0S\230\0\0\16\20\0\32^\0\0\0\7\10", 1024, 0, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "2a01:198:5b7:200::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 86 1914 close(3) = 0 1914 write(2, "mount.nfs4: Failed to resolve server bridge.fresse.org: Name or service not known\n", 82) = 82 1914 exit_group(32) = ? As you can clearly see, it asks for bridge.fresse.org A records TWICE, instead of trying to ask for A and AAAA. -- 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=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c1
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c2
Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c3
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c4
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c5
Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c6
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c7
--- Comment #7 from Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c8
Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c9
--- Comment #9 from Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c10
--- Comment #10 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c11
--- Comment #11 from Sebastian Freundt
https://bugzilla.novell.com/show_bug.cgi?id=738861
https://bugzilla.novell.com/show_bug.cgi?id=738861#c12
Neil Brown
participants (1)
-
bugzilla_noreply@novell.com