From Fedora Project Wiki

No edit summary
No edit summary
Β 
(6 intermediate revisions by the same user not shown)
Line 39: Line 39:
πŸ”— Benefit to Fedora
πŸ”— Benefit to Fedora


* Having a single file configuration will help IT automation systems like Ansible to configure the NFS server. Β 
* Having a single file configuration will help IT automation systems like Ansible configure NFS servers. Β 
* This change also simplifies the systemd scrips.Β  Β 
* This change also simplifies the systemd scrips.Β  Β 
* Having two ways of configuringΒ  NFS is not a good. The only reason there has not been any problems is because nobody know about /etc/nfs.conf
* Having two ways of configuringΒ  NFS is not desirable. The only reason there has been no problems is because nobody know about /etc/nfs.conf
* There is a new command, nfsconf(8), that checks the correctness of /etc/nfs.conf
* There is a new command, nfsconf(8), that checks the correctness of /etc/nfs.conf


Line 54: Line 54:
πŸ”— Upgrade/compatibility impact
πŸ”— Upgrade/compatibility impact


In [https://bugzilla.redhat.com/show_bug.cgi?id=1619270 BZ1619270] a python script that will convert a sysconfig/nfs config into nfs.conf config. There are a couple thoughts on how to use it.


On clean installs, when sysconfig/nfs does not exist, sysconfig/nfs wil still be installed with directions to use nfs.conf to do the configuration.
When sysconfig/nfs does exist, the configuration will '''not''' be overwritten, but the systemd scripts will not use the file to configure NFS.
The two thoughts on how to use python script:
# Have the upgrade run the script and maybe throw out a message that the configuration has now been moved to nfs.conf
# Throw a message indicating the NFS configuration has changed and then have the admin run the script
The first thought is probably the cleanest but changing configurations behind admin's back is not very nice... I am very open on how to use this script.


πŸ”— How To Test
πŸ”— How To Test
N/A (not a System Wide Change)
Β 
With the new nfsconf(8) command, the nfs.confΒ  can be tested for correctness, other than that, we should do the same testing as we do today


πŸ”— User Experience
πŸ”— User Experience
After the initial shock, I think users will embrace the new configuration. Being able to configure NFS via IT automation systems (aka Ansible) is a step in the right direction. Having a command to check the correctness of the configuration will be welcome.


πŸ”— Dependencies
πŸ”— Dependencies
N/A (not a System Wide Change)
Β 
There are no dependencies that I know of.


πŸ”— Contingency Plan
πŸ”— Contingency Plan
* Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
* Contingency mechanism: None at this point.
* Contingency deadline: N/A (not a System Wide Change)
* Contingency deadline: None.
* Blocks release? N/A (not a System Wide Change), Yes/No
* Blocks release? Hopefully, no
* Blocks product? product
* Blocks product? N/A?


πŸ”— Documentation
πŸ”— Documentation
N/A (not a System Wide Change)
Β 
There are two man pages, nfs.conf(5) and nfsconf(8).


πŸ”— Release Notes
πŸ”— Release Notes
The new way of configuring NFS should be release noted.

Latest revision as of 17:09, 13 October 2018

πŸ”— Change Proposal Name

  • Deprecating /etc/sysconfig/nfs

πŸ”— Summary

  • Deprecate /etc/sysconfig/nfs and only use /etc/nfs.conf to configure NFS daemons.

πŸ”— Owner

  • Name: Steve Dickson
  • Email: steved@redhat.com
  • Release notes owner:

πŸ”— Current status

  • Targeted release: Fedora 30
  • Last updated: 2018-10-13
  • Tracker bug: <will be assigned by the Wrangler>

πŸ”— Detailed Description

Since the beginning /etc/sysconfig/nfs has been used to configure the NFS server daemons by supply command line arguments to the daemons or commands via SysVinit scripts.

Then systemd(1) came along and the idea of daemons self-configuration was started. Meaning daemons and commands would get their configurations from a file, not the command line like with SysVinit scripts.

Back in late 2016, Neil Brown from SuSe, implemented this changed. He built into each daemon the ability to read from one central file, /etc/nfs.conf. See nfs.conf(5) for details.

After this work made it upstream, I a wrote patch that added back the ability to use /etc/sysconfig/nfs to maintain backwards compatibility which has lasted for the last few Fedora releases.

I think at this point, the timing is right to introduce this single file configuration to Fedora 30.

πŸ”— Benefit to Fedora

  • Having a single file configuration will help IT automation systems like Ansible configure NFS servers.
  • This change also simplifies the systemd scrips.
  • Having two ways of configuring NFS is not desirable. The only reason there has been no problems is because nobody know about /etc/nfs.conf
  • There is a new command, nfsconf(8), that checks the correctness of /etc/nfs.conf

πŸ”— Scope

  • Proposal owners: Steve Dickson <steved@redhat.com>
  • Other developers: Justin Mitchell <jumitche@redhat.com>
  • Release engineering: #Releng issue number (a check of an impact with Release Engineering is needed)
  • List of deliverables: N/A (not a System Wide Change)
  • Policies and guidelines: N/A (not a System Wide Change)
  • Trademark approval: N/A (not needed for this Change)

πŸ”— Upgrade/compatibility impact

In BZ1619270 a python script that will convert a sysconfig/nfs config into nfs.conf config. There are a couple thoughts on how to use it.

On clean installs, when sysconfig/nfs does not exist, sysconfig/nfs wil still be installed with directions to use nfs.conf to do the configuration.

When sysconfig/nfs does exist, the configuration will not be overwritten, but the systemd scripts will not use the file to configure NFS.

The two thoughts on how to use python script:

  1. Have the upgrade run the script and maybe throw out a message that the configuration has now been moved to nfs.conf
  2. Throw a message indicating the NFS configuration has changed and then have the admin run the script

The first thought is probably the cleanest but changing configurations behind admin's back is not very nice... I am very open on how to use this script.

πŸ”— How To Test

With the new nfsconf(8) command, the nfs.conf can be tested for correctness, other than that, we should do the same testing as we do today

πŸ”— User Experience

After the initial shock, I think users will embrace the new configuration. Being able to configure NFS via IT automation systems (aka Ansible) is a step in the right direction. Having a command to check the correctness of the configuration will be welcome.

πŸ”— Dependencies

There are no dependencies that I know of.

πŸ”— Contingency Plan

  • Contingency mechanism: None at this point.
  • Contingency deadline: None.
  • Blocks release? Hopefully, no
  • Blocks product? N/A?

πŸ”— Documentation

There are two man pages, nfs.conf(5) and nfsconf(8).

πŸ”— Release Notes

The new way of configuring NFS should be release noted.