[Bug 1014463] New: nscd doesn't work with libvirt-nss
http://bugzilla.suse.com/show_bug.cgi?id=1014463 Bug ID: 1014463 Summary: nscd doesn't work with libvirt-nss Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: martin.wilck@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- opensuse:tumbleweed:20161205 libvirt-nss set up as documented in https://doc.opensuse.org/documentation/leap/virtualization/html/book.virt/ch... # grep hosts /etc/nsswitch.conf hosts: files libvirt mdns_minimal [NOTFOUND=return] dns # rpm -q libvirt libvirt-nss nscd package libvirt is not installed libvirt-nss-2.4.0-2.1.x86_64 nscd-2.24-2.2.x86_64 # virsh domifaddr --source lease sles12-sp2-gm-01 Name MAC address Protocol Address ------------------------------------------------------------------------------- vnet0 52:54:00:19:02:a8 ipv4 192.168.100.214/24 Without nscd, it works: # getent hosts sles12-sp2-gm-01 192.168.100.214 sles12-sp2-gm-01 After starting nscd, it ceases to work. "systemctl reload nscd" (which runs nscd -i hosts) doesn't change the situation. # systemctl start nscd # getent hosts sles12-sp2-gm-01 # systemctl reload nscd # getent hosts sles12-sp2-gm-01 nscd stopped, works again: # systemctl stop nscd # getent hosts sles12-sp2-gm-01 192.168.100.214 sles12-sp2-gm-01 The nscd logs show nothing special:
Thu Dec 8 10:21:45 2016 - 13805: handle_request: request received (Version = 2) from PID 13929 Thu Dec 8 10:21:45 2016 - 13805: GETHOSTBYNAMEv6 (sles12-sp2-gm-01) Thu Dec 8 10:21:45 2016 - 13805: Haven't found "sles12-sp2-gm-01" in hosts cache! Thu Dec 8 10:21:45 2016 - 13805: handle_request: request received (Version = 2) from PID 13929 Thu Dec 8 10:21:45 2016 - 13805: GETHOSTBYNAME (sles12-sp2-gm-01) Thu Dec 8 10:21:45 2016 - 13805: Haven't found "sles12-sp2-gm-01" in hosts cache!
For non-libvirt hosts it works as expected, but I can see that an "add new entry" line appears now which had been missing for the libvirt host.
Thu Dec 8 10:21:23 2016 - 13805: handle_request: request received (Version = 2) from PID 13914 Thu Dec 8 10:21:23 2016 - 13805: GETHOSTBYNAMEv6 (www.google.de) Thu Dec 8 10:21:23 2016 - 13805: Haven't found "www.google.de" in hosts cache! Thu Dec 8 10:21:23 2016 - 13805: add new entry "www.google.de" of type GETHOSTBYNAMEv6 for hosts to cache (first)
nscd has libnss_libvirt.so.2 mapped:
# grep nss_ /proc/13805/maps d45000-7f484ed50000 r-xp 00000000 00:29 1376127 /lib64/libnss_nis-2.24.so d50000-7f484ef4f000 ---p 0000b000 00:29 1376127 /lib64/libnss_nis-2.24.so f4f000-7f484ef50000 r--p 0000a000 00:29 1376127 /lib64/libnss_nis-2.24.so f50000-7f484ef51000 rw-p 0000b000 00:29 1376127 /lib64/libnss_nis-2.24.so 168000-7f484f16d000 r-xp 00000000 00:29 1376121 /lib64/libnss_dns-2.24.so 16d000-7f484f36c000 ---p 00005000 00:29 1376121 /lib64/libnss_dns-2.24.so 36c000-7f484f36d000 r--p 00004000 00:29 1376121 /lib64/libnss_dns-2.24.so 36d000-7f484f36e000 rw-p 00005000 00:29 1376121 /lib64/libnss_dns-2.24.so 36e000-7f484f370000 r-xp 00000000 00:29 1323412 /lib64/libnss_mdns_minimal.so.2 370000-7f484f570000 ---p 00002000 00:29 1323412 /lib64/libnss_mdns_minimal.so.2 570000-7f484f571000 r--p 00002000 00:29 1323412 /lib64/libnss_mdns_minimal.so.2 571000-7f484f572000 rw-p 00003000 00:29 1323412 /lib64/libnss_mdns_minimal.so.2 97f000-7f484f9c6000 r-xp 00000000 00:29 1512797 /usr/lib64/libnss_libvirt.so.2 9c6000-7f484fbc6000 ---p 00047000 00:29 1512797 /usr/lib64/libnss_libvirt.so.2 bc6000-7f484fbc7000 r--p 00047000 00:29 1512797 /usr/lib64/libnss_libvirt.so.2 bc7000-7f484fbc8000 rw-p 00048000 00:29 1512797 /usr/lib64/libnss_libvirt.so.2 bc8000-7f484fbd3000 r-xp 00000000 00:29 1376123 /lib64/libnss_files-2.24.so bd3000-7f484fdd2000 ---p 0000b000 00:29 1376123 /lib64/libnss_files-2.24.so dd2000-7f484fdd3000 r--p 0000a000 00:29 1376123 /lib64/libnss_files-2.24.so dd3000-7f484fdd4000 rw-p 0000b000 00:29 1376123 /lib64/libnss_files-2.24.so dda000-7f484fde1000 r-xp 00000000 00:29 1376117 /lib64/libnss_compat-2.24.so de1000-7f484ffe0000 ---p 00007000 00:29 1376117 /lib64/libnss_compat-2.24.so fe0000-7f484ffe1000 r--p 00006000 00:29 1376117 /lib64/libnss_compat-2.24.so fe1000-7f484ffe2000 rw-p 00007000 00:29 1376117 /lib64/libnss_compat-2.24.so
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c1
--- Comment #1 from Martin Wilck
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c2
Martin Wilck
http://bugzilla.suse.com/show_bug.cgi?id=1014463
Martin Wilck
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c4
--- Comment #4 from Bernhard Wiedemann
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c5
--- Comment #5 from Bernhard Wiedemann
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c6
--- Comment #6 from Bernhard Wiedemann
http://bugzilla.suse.com/show_bug.cgi?id=1014463
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c7
--- Comment #7 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c8
--- Comment #8 from Bernhard Wiedemann
http://bugzilla.suse.com/show_bug.cgi?id=1014463
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c10
--- Comment #10 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1014463
http://bugzilla.suse.com/show_bug.cgi?id=1014463#c11
--- Comment #11 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com