On recent Fedora/RHEL/CentOS systems NFS is configured via /etc/nfs.conf. If /etc/sysconfig/nfs exists then a conversion process moves it out of the way. This means that there is no sane way of configuring NFS_HOSTNAME for statd-callout. statd-callout does not use load_script_config() so the relevant configuration files are not a useful option. The best option, since only statd-callout requires this value, is to have statd-callout use the nfsconf program to get the value of [statd]:name.
Further checking... nfs-linux-kernel-callout is not broken in service_start() because /etc/nfs.conf will only be used on platforms that use systemd, so the RPC services will never be hand-restarted on those platforms. However, nfs_check_thread_count() has a similar problem to the one in statd-callout.
Created attachment 16143 [details] Patch for 4.13, 4.12 Patch for v4-13-test and v4-12-test.
Hi Karolin, This is ready for v4-12 and v4-13. Thanks.
(In reply to Amitay Isaacs from comment #3) Hi Amitay! Pushed to autobuild-v4-{13,12}-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!