[Bug 859673] New: WINS name lookup unreliable
https://bugzilla.novell.com/show_bug.cgi?id=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c0 Summary: WINS name lookup unreliable Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: bart@bartvanassche.be QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 Since a long time I'm using openSUSE and WINS name lookup for name resolution. This worked fine in every previous openSUSE version I have been running but seems to be unreliable in openSUSE 13.1. Reproducible: Always Steps to Reproduce: 1. Disable the firewall # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination # iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination 2. Enable bridging # cat /etc/sysconfig/network/ifcfg-br0 BOOTPROTO='dhcp' BRIDGE='yes' BRIDGE_FORWARDDELAY='0' BRIDGE_PORTS='enp8s0' BRIDGE_STP='on' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' USERCONTROL='no' # cat /etc/sysconfig/network/ifcfg-enp8s0 BOOTPROTO='none' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='RTL8111/8168B PCI Express Gigabit Ethernet controller' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='manual' USERCONTROL='no' 3. Install the samba-client RPM # rpm -qf /usr/lib64/libnss_wins.so.2 samba-client-4.1.3-3.12.1.x86_64 4. Enable WINS name lookup # grep wins /etc/nsswitch.conf hosts: files wins mdns_minimal [NOTFOUND=return] dns 5. Test WINS name lookup $ nmblookup ubuntu-vm 192.168.1.124 ubuntu-vm<00> $ host ubuntu-vm Host ubuntu-vm not found: 2(SERVFAIL) $ ping ubuntu-vm ping: unknown host ubuntu-vm Actual Results: Name lookup via WINS not working. Expected Results: Name lookup via WINS working. -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c1 James McDonough <jmcdonough@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |bart@bartvanassche.be --- Comment #1 from James McDonough <jmcdonough@suse.com> 2014-01-23 19:54:23 UTC --- Can you please attach your nscd configuration (if you are running it). And if at all possible, your one from previous versions. It's possible I'd ask you to run straces of the commands and attach the stderr from that, so if you are able, it may save us some time to do it 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c2 Bart Van Assche <bart@bartvanassche.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|bart@bartvanassche.be | --- Comment #2 from Bart Van Assche <bart@bartvanassche.be> 2014-01-24 08:02:10 UTC --- Thanks for the feedback. I don't think I have been using nscd in the past. But apparently nscd was installed on the openSUSE 13.1 system this report applies to. Uninstalling nscd made WINS name lookup work again. Do you need further information ? -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c3 James McDonough <jmcdonough@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |WORKSFORME --- Comment #3 from James McDonough <jmcdonough@suse.com> 2014-01-24 14:36:41 UTC --- No, but if you'd like to understand how this works and how you could configure nscd to help you here, I can answer any questions. I will close the bug, but you may certainly add comments. I'll give a quick tip though, that nscd will generally help you by preventing lots of repeated lookups, and if you disable the negative caching for the hosts target, this problem would not appear, and you'd get the benefits of positive lookup caching (although, if you have frequently changing host<->ip mapping, it could create transient issues). Feel free to contact me if you have more questions. -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c4 Bart Van Assche <bart@bartvanassche.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|WORKSFORME | --- Comment #4 from Bart Van Assche <bart@bartvanassche.be> 2014-01-29 10:46:52 UTC --- When I installed pulseaudio nscd got installed as a dependency and with default settings. The result is that WINS name lookup is broken again. I don't think that the behavior of nscd with default settings should be such that it breaks WINS name lookup. $ rpm -qf /etc/nscd.conf nscd-2.18-4.11.1.x86_64 $ rpm --verify nscd; echo $? 0 $ grep 'negative.*hosts' /etc/nscd.conf negative-time-to-live hosts 0 -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c5 --- Comment #5 from Bart Van Assche <bart@bartvanassche.be> 2014-01-29 10:54:08 UTC --- What's strange is that nscd does not report any negative hits or misses: $ nscd -g | sed -n '/^hosts/,/changes$/ p' hosts cache: yes cache is enabled no cache is persistent yes cache is shared 211 suggested size 216064 total data pool size 10952 used data pool size 600 seconds time to live for positive entries 0 seconds time to live for negative entries 0 cache hits on positive entries 0 cache hits on negative entries 541 cache misses on positive entries 0 cache misses on negative entries 0% cache hit rate 82 current number of cached values 99 maximum number of cached values 4 maximum chain length searched 0 number of delays on rdlock 0 number of delays on wrlock 0 memory allocations failed yes check /etc/hosts for changes What's also strange is that changing negative-time-to-live for hosts from 0 into 1 seems to help. After that change WINS name lookup seems to work again. -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c6 --- Comment #6 from Bart Van Assche <bart@bartvanassche.be> 2014-01-29 14:58:39 UTC --- Although I'm not sure this information is relevant: I'm running openSUSE 13.1 on top of vanilla kernel 3.12.7 instead of the kernel-desktop-3.11.6-4.1.x86_64 kernel. -- 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=859673 https://bugzilla.novell.com/show_bug.cgi?id=859673#c7 --- Comment #7 from Bart Van Assche <bart@bartvanassche.be> 2014-01-30 10:29:51 UTC --- A correction to comment 5: it was not the change of the negative-time-to-live parameter that made the name lookup succeed but the restart of nscd. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=859673 http://bugzilla.novell.com/show_bug.cgi?id=859673#c12 Andreas Schwab <schwab@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |WONTFIX --- Comment #12 from Andreas Schwab <schwab@suse.com> --- 13.1 is out of maintenance. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com