Description of problem: Update client section for different mount options used in nfs-ganesha. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Update client section for different mount options used in nfs-ganesha. Additional info:
What kind of options would you expect to be settable through gdeploy? I can think of these in the "client {}" block of an export: - only allow access from certain clients, based on IP-address, netmask, ... - force security settings, like only clients that mount with Kerberos
I meant the options which a user might want to change when doing a manual mount. Options like below: rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.70.46.206,local_lock=none,addr=10.70.40.192
This will be an enhancement to mount module to include the options. Currently we only supported vers=? option.
Currently the clients section for nfs, would look like this: [clients] action=mount volname=dhcp37-102.lab.eng.blr.redhat.com:/ganesha hosts=dhcp37-102.lab.eng.blr.redhat.com client_mount_points=/mnt/ganesha fstype=nfs options=rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.70.46.206,local_lock=none,addr=10.70.40.192 Or [clients] action=mount volname=dhcp37-102.lab.eng.blr.redhat.com:/ganesha hosts=dhcp37-102.lab.eng.blr.redhat.com client_mount_points=/mnt/ganesha fstype=nfs The `options' variable can be safely omitted, it mounts nfs version 3 with the defaults whatever nfs-ganesha sets.
Rebase fixes the issue.
Verified this bug on [root@dhcp47-3 gdeploy]# rpm -qa | grep gdeploy gdeploy-2.0.1-4.el7rhgs.noarch [root@dhcp47-3 gdeploy]# rpm -qa | grep ansible ansible-2.2.0.0-1.el7.noarch [hosts] dhcp46-241.lab.eng.blr.redhat.com dhcp46-219.lab.eng.blr.redhat.com dhcp47-159.lab.eng.blr.redhat.com dhcp47-3.lab.eng.blr.redhat.com [firewalld2:10.70.46.30] action=add ports=662/tcp,662/udp,32803/tcp,32769/udp [clients] action=mount volname=10.70.44.153:/ganeshaVol1 hosts=10.70.46.30 client_mount_points=/mnt/ganesha fstype=nfs options=rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.70.44.153,local_lock=none,addr=10.70.46.30 As we can change the parameters at mount time with gdeploy,Hence marking this bug as Verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2017-0482.html