Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvmfs pulls in automount as a dependency on CentOS7 #73

Open
terjekv opened this issue Feb 18, 2021 · 3 comments
Open

cvmfs pulls in automount as a dependency on CentOS7 #73

terjekv opened this issue Feb 18, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@terjekv
Copy link
Member

terjekv commented Feb 18, 2021

This also has the funny effect of adding sss as a default configuration option, which failed to work on SAGA in Norway. The solution was to disable sss in /etc/nsswitch.conf. Also, on a system using systemd, automount may be deprecated for .mount-files: https://www.freedesktop.org/software/systemd/man/systemd.mount.html

@bedroge
Copy link
Collaborator

bedroge commented Feb 19, 2021

I don't really understand this, do you have some more details? The CVMFS client (that's the one you're installing?) does need / pull in autofs, but I don't see anywhere that it would pull in / enable sss or change nssswitch.conf in any way.

@terjekv
Copy link
Member Author

terjekv commented Feb 19, 2021

We saw this on a CentOS7 machine that previously had no autofs installed. I suppose the default/etc/nsswitch.conf that came with glibc included sss and that the sss configuration didn't match what the cluster was expecting? It's a weird error that I haven't seen outside of this cluster (to which I do not have root access to debug much on).

@bedroge
Copy link
Collaborator

bedroge commented Feb 19, 2021

In a "fresh" CentOS 7 container the nsswitch.conf looks like this:

#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	sss			Use sssd (System Security Services Daemon)
#	[NOTFOUND=return]	Stop searching if not found so far
#
# WARNING: Running nscd with a secondary caching service like sssd may lead to
# 	   unexpected behaviour, especially with how long entries are cached.

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files sss
shadow:     files sss
group:      files sss
#initgroups: files sss

#hosts:     db files nisplus nis dns
hosts:      files dns myhostname

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files sss

netgroup:   nisplus sss

publickey:  nisplus

automount:  files nisplus sss
aliases:    files nisplus

So there's already some automount line in there. Installing cvmfs/autofs doesn't change that file. Maybe something was already wrongly configured before installing cvmfs?

@bedroge bedroge added the bug Something isn't working label Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants