[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 <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |nfbrown@novell.com |ovo.novell.com | -- 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#c1 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Neil Brown <nfbrown@novell.com> 2010-07-29 11:27:30 UTC --- There is an /etc/sysconfig/nfs option to enable NFS service even if nothing is in /etc/fstab. I think yast should present it to you - It should be called Always start NFS services. If you cannot find it in yast you can edit /etc/sysconfig/nfs and make sure NFS_START_SERVICES=yes is set. -- 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#c2 Keith Hopkins <lnxgnome@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Network |YaST2 Resolution|INVALID | AssignedTo|nfbrown@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com QAContact|qa@suse.de |jsrain@novell.com Severity|Normal |Enhancement --- Comment #2 from Keith Hopkins <lnxgnome@gmail.com> 2010-07-31 04:40:20 UTC --- Thanks for the info. I didn't know NFS_START_SERVICES existed. I found the setting buried in the YaST / "/etc/sysconfig Editor" under Network / File systems / NFS server I'm going to change this bug into an Enhancement request for YaST. If Automounter is selected under Yast / Network Services / NIS Client, then automagicly change the NFS_START_SERVICES to YES. Alternatively, make this setting available as a checkbox under the YaST / Network Services / NFS Client Configuration / NFS Settings. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=626516 https://bugzilla.novell.com/show_bug.cgi?id=626516#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wewang@novell.com AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- 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#c Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |mvidner@novell.com -- 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#c3 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|REOPENED |ASSIGNED CC|wewang@novell.com |jsuchome@novell.com, | |lchiquitto@novell.com, | |nfbrown@novell.com --- Comment #3 from Martin Vidner <mvidner@novell.com> 2010-10-29 15:01:19 CEST --- OK, except I don't like the existence of NFS_START_SERVICES (bnc#472438). I wonder if it is in principle possible to detect the situation automatically and obsolete that config variable. I'd work on implementing that in init.d/nfs or init.d/autofs. Leonardo, Neil? -- 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#c4 Nathan Bradshaw <nathanlbradshaw@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nathanlbradshaw@gmail.com --- Comment #4 from Nathan Bradshaw <nathanlbradshaw@gmail.com> 2010-11-22 17:03:46 UTC --- Hi all, we've hit this bug at my work also. Same problem, home and other NFS4 directory mappings are all mounted by autofs in a NIS environment, but idmapd isn't starting. I'd suggest this should be categorized as a bug rather than an enhancement; it doesn't seem the correct solution to have to activate an additional service manually to cover for something that autofs isn't doing (kind of takes the 'auto' out of 'autofs' ;) In our shop at least, this has become a fairly important issue as we have some of the teams using an editor app through wine and wine is failing on an ownership test of the users' home dirs that are being automounted but with no idmapper. thanks N -- 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#c5 Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |osenberg@t-online.de --- Comment #5 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-22 13:26:16 UTC --- *** Bug 673484 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=673484 -- 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#c Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Final |Factory CC| |werner@novell.com Component|YaST2 |Basesystem Platform|x86 |All AssignedTo|mvidner@novell.com |lchiquitto@novell.com QAContact|jsrain@novell.com |qa@suse.de Target Milestone|--- |Factory Product|openSUSE 11.3 |openSUSE 11.4 OS/Version|openSUSE 11.3 |SuSE Other -- 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#c6 Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |nfbrown@novell.com Summary|idmapd/sm-notify is |idmapd/sm-notify/gssd is |disabled in automounter |disabled in automounter |environment if fstab does |environment if fstab does |not have any nfs entries |not have any nfs entries --- Comment #6 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-22 13:30:51 UTC --- I've been thinking about this issue and, so far, the only option I could think of is something like this: --- /etc/init.d/nfs.orig 2011-02-22 09:43:37.321631459 -0300 +++ /etc/init.d/nfs 2011-02-22 10:22:01.900799992 -0300 @@ -38,9 +38,14 @@ state=0 usr="" opt="" mnt="" -nfs=$NFS_START_SERVICES -if [ "x$nfs" != "xyes" ] -then nfs=no +nfs=no + +AUTOFS_STATUS=`chkconfig autofs | awk '{print $2}'` + +if [ "x$NFS_START_SERVICES" = "xyes" -o "x$AUTOFS_STATUS" = "xon" ]; then + NEED_IDMAPD=yes + NEED_GSSD=yes + nfs=yes fi while read what where type options rest ; do It works, but is a bit ugly. Neil, would that be acceptable? Werner, is it reasonable for an init script to call chkconfig? -- 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#c7 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mszeredi@novell.com --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2011-02-22 13:42:30 UTC --- No it is not. You may use rc_active provided by /etc/rc.status .. beside this /etc/init.d/autofs uses gssd in Should-Start but there is no service with this name. -- 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#c8 --- Comment #8 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-22 14:08:09 UTC ---
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 <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|nfbrown@novell.com | --- Comment #9 from Neil Brown <nfbrown@novell.com> 2011-02-22 21:33:00 UTC --- Setting 'nfs=yes' if AUTOFS_ACTIVE does make some sense. Setting NEED_IDMAPD or NEED_GSSD to yes is a significant change. Currently if you want idmapd started, you need to select NFS4_SUPPORT in sysconfig. similarly to get gssd you need NFS_SECURITY_GSS set. 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? (also I would add "AUTOFS_ACTIVE=no" next to "nfs=no" just for consistency). ???? Index: nfs.init =================================================================== --- nfs.init (revision c3a6b80e4eca585eee2985bbfa431bcb) +++ nfs.init (working copy) @@ -38,9 +38,15 @@ usr="" opt="" mnt="" -nfs=$NFS_START_SERVICES -if [ "x$nfs" != "xyes" ] -then nfs=no +nfs=no +AUTOFS_ACTIVE=no + +if rc_active autofs; then + AUTOFS_ACTIVE=yes +fi + +if test "x$NFS_START_SERVICES" = "xyes" -o "x$AUTOFS_ACTIVE" = "xyes"; then + nfs=yes fi while read -r what where type options rest ; do -- 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#c10 --- Comment #10 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-23 12:51:55 UTC ---
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 <nathanlbradshaw@gmail.com> 2011-02-23 16:20:58 UTC --- Is there actually a scenario where autofs would be activated and an NFS dir mounted as a result that wouldn't require idmapd? -- 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#c12 --- Comment #12 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-23 18:27:54 UTC --- I believe only NFSv4 requires idmapd (ie, NFSv3 users don't need it). -- 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#c13 --- Comment #13 from Neil Brown <nfbrown@novell.com> 2011-02-23 23:00:21 UTC --- 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'm less confident about defaulting NFS_SECURITY_GSS to 'yes', but maybe that would be OK. Who makes/enforces that sort of policy? -- 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#c14 Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com --- Comment #14 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-02-24 20:25:26 UTC ---
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 <coolo@novell.com> 2011-02-25 07:15:23 CET --- I believe in the wisdom of crowds - just post to research or opensuse-factory, as you prefer. For 11.4 it's too late imo. -- 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#c16 Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hdunkel@aixigo.de --- Comment #16 from Leonardo Chiquitto <lchiquitto@novell.com> 2011-03-22 13:01:28 UTC --- *** Bug 681187 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=681187 -- 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#c Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|SuSE Other |openSUSE 11.4 -- 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#c Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |700085 -- 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#c Leonardo Chiquitto <lchiquitto@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|700085 | -- 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#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P4 - Low -- 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.
participants (1)
-
bugzilla_noreply@novell.com