On Tue, 30 Sep 2014 11:05:14 -0400 Steve Dickson <SteveD@xxxxxxxxxx> wrote: > On 09/29/2014 02:22 PM, Simo Sorce wrote: > > This way either gssproxy or rpc.svcgssd are started only if the > > auth module is requested, and it finds a keytab. > > If the wants are in the main nfs-client or nfs-server unit files > > then the two deamons are started unconditionally and would require > > conditions which we can test once and for all in a single unit file > > instead. > > > > Signed-off-by: Simo Sorce <simo@xxxxxxxxxx> > > --- > > systemd/auth-rpcgss-module.service | 3 ++- > > systemd/nfs-client.target | 4 ++-- > > systemd/nfs-server.service | 1 - > > 3 files changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/systemd/auth-rpcgss-module.service > > b/systemd/auth-rpcgss-module.service index > > 3fc2f4ac924f7e9d6e24969bb9a21d88a5c144fc..0355e13e009528632e97373332db9fa3acdfd1a9 > > 100644 --- a/systemd/auth-rpcgss-module.service +++ > > b/systemd/auth-rpcgss-module.service @@ -6,7 +6,8 @@ > > # unit will fail. But that's OK.) > > [Unit] > > Description=Kernel Module supporting RPCSEC_GSS > > -Before=gssproxy.service rpc-svcgssd.service > > +Before=gssproxy.service rpc-svcgssd.service rpc-gssd.service > By moving these into this unit,it destroys client/server > sync starts commit 12a95eda talks about... No it does not, this before is critical, the kernel module must be loaded before the gss daemons are started. > Maybe we could put an After=nfs-server.service in nfs-client.target Why would you load the auth modules *after* nfs client and servers are started ? I think this could cause race conditions at mount on boot if someone wants to mount a filesystem with sec=krb5 > to bring back that synchronization... because in the end > we really really want the server to start first especially > when gssproxy is involved and both units are enabled. uh ? no you really want to start the auth damoens first, if the server starts first then a mount request from a client could race with gssproxy starting up and poking the proc file to enable use of gssproxy resulting in the auth module to permanently initialize to use the old interface. > Also, this will cause gssproxy to be started on every boot > regardless whether Kerberos is installed and configured > (which not the case with rpc.svcgssd)... This is a separate issue, I am trying to get the ordering right here, then we can debug why gssproxy is started, I suspect Wants always kicks in regrardless of ConditionPathExists. > I can hear the complaints already... Why is NFS starting > up this daemon that will never have anything to do, in > the case when Kerberos is not installed/configure > which could be the majority of the cases... > > I would really really, really like to avoid this. We can handle it in the next patch. Let's get the order right first. Simo. -- Simo Sorce * Red Hat, Inc * New York -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html