Re: luminous 12.2.11 on debian 9 requires nscd?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is probably a build issue of some kind, but I'm not quite sure how...
The MDS (and all the Ceph code) is just invoking the getgrnam_r function, which is part of POSIX and implemented by glib (or whatever other libc). So any dependency on nscd is being created "behind our backs" somewhere. Anyone have any ideas?
-Greg

On Tue, Feb 26, 2019 at 7:06 PM Chad W Seys <cwseys@xxxxxxxxxxxxxxxx> wrote:
Hi all,
   I cannot get my luminous 12.2.11 mds servers to start on Debian 9(.8)
unless nscd is also installed.

   Trying to start from command line:
#  /usr/bin/ceph-mds -f --cluster ceph --id mds02.hep.wisc.edu --setuser
ceph --setgroup ceph unable to look up group 'ceph': (34) Numerical
result out of range

   Can look up ceph fine with 'id'
# id ceph
uid=11(ceph) gid=11(ceph) groups=11(ceph)


If I strace, I notice that an nscd directory makes an appearance:
[...]
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
lseek(3, 0, SEEK_CUR)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=285846, ...}) = 0
mmap(NULL, 285846, PROT_READ, MAP_SHARED, 3, 0) = 0x7f5970ed2000
lseek(3, 285846, SEEK_SET)              = 285846
munmap(0x7f5970ed2000, 285846)          = 0
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) =
-1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) =
-1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
lseek(3, 0, SEEK_CUR)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=122355, ...}) = 0
mmap(NULL, 122355, PROT_READ, MAP_SHARED, 3, 0) = 0x7f5970efa000
lseek(3, 122355, SEEK_SET)              = 122355
lseek(3, 7495, SEEK_SET)                = 7495
munmap(0x7f5970efa000, 122355)          = 0
close(3)                                = 0
write(2, "unable to look up group '", 25unable to look up group ') = 25
write(2, "ceph", 4ceph)                     = 4
write(2, "'", 1')                        = 1
write(2, ": ", 2: )                       = 2
write(2, "(34) Numerical result out of ran"..., 34(34) Numerical result
out of range) = 34
write(2, "\n", 1

So I install nscd and mds starts!

Shouldn't ceph be agnostic in how the ceph group is looked up?  Do I
have some kind of config problem?

My nsswitch.conf file is below.  I've tried replacing 'compat' with
files, but there is no change.

# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat
gshadow:        files

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


Thanks!
Chad.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux