[Bug 626516] New: idmapd/sm-notify is disabled in automounter environment if fstab does not have any nfs entries
http://bugzilla.novell.com/show_bug.cgi?id=626516 http://bugzilla.novell.com/show_bug.cgi?id=626516#c0 Summary: idmapd/sm-notify is disabled in automounter environment if fstab does not have any nfs entries Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: lnxgnome@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.6) Gecko/20100626 SUSE/3.6.6-1.2 Firefox/3.6.6 openSUSE 11.3 (i586) VERSION = 11.3 Scenario: Workstation is configured as NIS Client + Automounter. There are not any nfs entries in /etc/fstab Problem: idmapd/sm-notify do not start (because there are no nfs entries in fstab) Workaround: Define some static entry in /etc/fstab for a nfs mount not related to the automounter. Reproducible: Always Steps to Reproduce: 1. Inital Install of openSuSE 11.3 Final 2. Configure NIS, enable Automounter as part of NIS setup in YaST 3. Do not add any nfs entry to /etc/fstab 4. Do not configure NFS Client in YaST Actual Results: idmapd and sm-notify are not started. Files under automount mount points may not be available due to ownership problems. Expected Results: Expected result: idmapd/sm-notify should be started if automounter is running. The normal environment will contain additional servers, which include a working NIS Server with maps for automounter (auto.home), and a NFS server to serve the /home mount points specified in the NIS maps. -- Configure bugmail: http://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=626516
http://bugzilla.novell.com/show_bug.cgi?id=626516#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=626516
http://bugzilla.novell.com/show_bug.cgi?id=626516#c1
Neil Brown
http://bugzilla.novell.com/show_bug.cgi?id=626516
http://bugzilla.novell.com/show_bug.cgi?id=626516#c2
Keith Hopkins
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c3
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c4
Nathan Bradshaw
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c5
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c6
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c7
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c8
--- Comment #8 from Leonardo Chiquitto
No it is not. You may use rc_active provided by /etc/rc.status
Ah, thanks for the suggestion. What about: --- /etc/init.d/nfs.orig 2011-02-22 09:43:37.321631459 -0300 +++ /etc/init.d/nfs 2011-02-22 11:01:25.546466428 -0300 @@ -38,9 +38,16 @@ state=0 usr="" opt="" mnt="" -nfs=$NFS_START_SERVICES -if [ "x$nfs" != "xyes" ] -then nfs=no +nfs=no + +if rc_active autofs; then + AUTOFS_ACTIVE=yes +fi + +if test "x$NFS_START_SERVICES" = "xyes" -o "x$AUTOFS_ACTIVE" = "xyes"; then + NEED_IDMAPD=yes + NEED_GSSD=yes + nfs=yes fi while read what where type options rest ; do
... beside this /etc/init.d/autofs uses gssd in Should-Start but there is no service with this name.
Thanks. Fixed in OBS' filesystems/autofs project. -- 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=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c9
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c10
--- Comment #10 from Leonardo Chiquitto
Currently if you want idmapd started, you need to select NFS4_SUPPORT in sysconfig. similarly to get gssd you need NFS_SECURITY_GSS set.
OK, so I think it is fair to require that the user sets up the "NFS client" in /etc/sysconfig/nfs according to his environment, even when using AutoFS.
I believe there is a policy that we should only start daemons that are known to be needed (though I could be wrong about that). In that case we should remove the "NEED_*=yes" lines from the above patch. But then would that actually meet the need?
Well, the generic problem would remain: "if the user doesn't edit /etc/sysconfig/nfs, idmapd won't be started". It would just change the variable users have to set. Anyone can see another way to resolve this? -- 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=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c11
--- Comment #11 from Nathan Bradshaw
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c12
--- Comment #12 from Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c13
--- Comment #13 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c14
Leonardo Chiquitto
One option might be to switch NFS4_SUPPORT to default to 'yes' and I think /sbin/mount.nfs now default to trying NFSv4 first. This way people could still turn it off if they wanted to.
I think this is a good idea. Do you think you can submit this change to 11.4?
I'm less confident about defaulting NFS_SECURITY_GSS to 'yes', but maybe that would be OK. Who makes/enforces that sort of policy?
I don't know, Coolo perhaps? -- 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=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c15
--- Comment #15 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c16
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=626516
https://bugzilla.novell.com/show_bug.cgi?id=626516#c
Leonardo Chiquitto
participants (1)
-
bugzilla_noreply@novell.com