Package: quota
Version: 4.06-1
Severity: normal

When using NFSv4, rpc.quotad needs to know what the export root (fsid=0)
is. In order to know this, it reads /var/lib/nfs/etab. When nfs-server
starts, it will populate this file (or rather, exportfs does this in
ExecStartPre). However, the quotarpc unit has no ordering on nfs-server,
leading to the possibility that /var/lib/nfs/etab could still be empty
at the time quotarpc is started.

As a fix, I suggest adding the following directives to quotarpc.service:

After=nfs-server.service
BindsTo=nfs-server.service

This does not handle changes in the export root if the NFS server is
reloaded, but that isn't the case currently anyway.

Currently the unit also refers to nfs-server.target, but this seems to
not exist anymore in nfs-utils and should probably be removed.

It is also suggested in #985952 to change the Wants dependency on
rpcbind.service to BindsTo and get rid of the condition on
/sbin/rpcbind, perhaps this can also be include in the fix for this
issue.

Kind regards,
Vincent Vanlaer

Reply via email to