FS#48476 - [nfs-utils] nfs-server.service has wrong environment options

Attached to Project: Arch Linux
Opened by Ferenc Sipos (frankieboy) - Sunday, 06 March 2016, 14:06 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 03 January 2017, 18:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: nfs-server.service has wrong environment options


Additional info:
nfs-utils 1.3.3-3
/usr/lib/systemd/system/nfs-server.service file

Steps to reproduce:
If you look at the environment value in nfs-server.service, it points to /run/sysconfig/nfs-utils, instead of /etc/conf.d/nfs-server.conf, so the parameters in the later have no effect on the server.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 03 January 2017, 18:19 GMT
Reason for closing:  No response
Comment by Andreas Radke (AndyRTR) - Monday, 07 March 2016, 06:49 GMT
Check your local file /usr/lib/systemd/scripts/nfs-utils_env.sh - this should do all the variable exporting. Fedora package maintained by the upstream developer is doing the same: http://pkgs.fedoraproject.org/cgit/rpms/nfs-utils.git/tree/.

grep -R 'nfs-utils_env' /usr/lib/systemd/system/*
/usr/lib/systemd/system/nfs-config.service:ExecStart=/usr/lib/systemd/scripts/nfs-utils_env.sh

nfs-config.service is reading this file.

@tpowa: You've once added this to our nfs-utils pkg. I see the Fedora version looks pretty much different than our. Is there any need to change it?
It seems Gentoo and Debian are not doing such variable exporting at all.
Comment by Ferenc Sipos (frankieboy) - Monday, 07 March 2016, 08:05 GMT
I tried to setup an nfs v3 server, because my media player doesn't support v4, and edited /etc/conf.d/nfs-server.conf, but it didn't work with -V 3 parameter, and when I run the server directly from command line with this parameter, it worked, that's why I think something wrong with the environment settings.
Comment by Andreas Radke (AndyRTR) - Monday, 07 March 2016, 10:20 GMT
Do you have some service enabled that starts nfs-config.service? At any changes you need to restart the services:


[root@workstation64 andyrtr]# grep -R nfs-config.service /usr/lib/systemd/*
/usr/lib/systemd/system/nfs-idmapd.service:Wants=nfs-config.service
/usr/lib/systemd/system/nfs-idmapd.service:After=nfs-config.service
/usr/lib/systemd/system/rpc-gssd.service:Wants=nfs-config.service
/usr/lib/systemd/system/rpc-gssd.service:After=nfs-config.service
/usr/lib/systemd/system/nfs-mountd.service:Wants=nfs-config.service
/usr/lib/systemd/system/nfs-mountd.service:After=nfs-config.service
/usr/lib/systemd/system/rpc-svcgssd.service:Wants=nfs-config.service
/usr/lib/systemd/system/rpc-svcgssd.service:After=nfs-config.service
/usr/lib/systemd/system/rpc-statd-notify.service:Wants=nfs-config.service
/usr/lib/systemd/system/rpc-statd-notify.service:After=nfs-config.service
/usr/lib/systemd/system/rpc-statd.service:Wants=nfs-config.service
/usr/lib/systemd/system/rpc-statd.service:After=nfs-config.service
/usr/lib/systemd/system/nfs-server.service:Wants=nfs-config.service
/usr/lib/systemd/system/nfs-server.service:After=nfs-config.service

Check journal output and maybe enable debug logging to get more info why your values aren't pulled in.
Comment by Ferenc Sipos (frankieboy) - Monday, 07 March 2016, 10:24 GMT
I enabled two services only, nfs-server and rpcbind, and restarted them after config change, but the server remained v4, and not V3.
Comment by Andreas Radke (AndyRTR) - Thursday, 25 August 2016, 20:57 GMT
Please check with nfs-utils 1.3.4 in testing. We now ship the same single file unified configuration like Fedora ( = upstream).

Loading...