Hide Forgot
Description of problem: If any of the hostnames in /etc/exports are not resolvable, the NFS server will not start. Version-Release number of selected component (if applicable): nfs-utils-1.3.0-0.21.el7_2.x86_64 How reproducible: Every time. Steps to Reproduce: 1. Put several entries with valid hostnames and a single entry with an invalid (not found) hostname in /etc/exports. 2. Try and start nfs-server. Actual results: nfs-server won't start for any entries. Expected results: nfs-server will start, at least for those entries that have valid hostnames. Additional info: Obviously, exporting the entry with the not-found hostname isn't going to work. The unexpected behavior here is that the presence of a single bad entry prevents any number of good entries from getting service. This seems to be the same thing as bug 1115179, which was fixed in Fedora 20.
Hi, Shaw, I have tracked no reproduction on RHEL-7.3 with nfs-utils-1.3.0-0.31.el7.x86_64 [root@hp-dl360g9-14 ~]# exportfs -arv exportfs: Failed to resolve notExisted.test.redhat.com exportfs: Failed to resolve notExisted.test.redhat.com exporting *:/ [root@hp-dl360g9-14 ~]# echo $? 0 [root@hp-dl360g9-14 ~]# echo $? 0 [root@hp-dl360g9-14 ~]# exportfs -arv exportfs: Failed to resolve notExisted.test.redhat.com exportfs: Failed to resolve notExisted.test.redhat.com exporting *:/ [root@hp-dl360g9-14 ~]# echo $? 0 [root@hp-dl360g9-14 ~]# cat /etc/exports / notExisted.test.redhat.com(rw,no_root_squash) / *(rw,no_root_squash) [root@hp-dl360g9-14 ~]# systemctl restart nfs [root@hp-dl360g9-14 ~]# systemctl status nfs ● nfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled) Active: active (exited) since Tue 2016-11-15 00:46:53 EST; 2s ago Process: 1237 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS) Process: 1235 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS) Main PID: 1237 (code=exited, status=0/SUCCESS) CGroup: /system.slice/nfs-server.service [root@hp-dl360g9-14 ~]# rpm -qa |grep nfs-utils nfs-utils-1.3.0-0.31.el7.x86_64
(In reply to David Shaw from comment #0) > > Version-Release number of selected component (if applicable): > > nfs-utils-1.3.0-0.21.el7_2.x86_64 > (In reply to ChunYu Wang from comment #1) > Hi, Shaw, > > I have tracked no reproduction on RHEL-7.3 with > nfs-utils-1.3.0-0.31.el7.x86_64 > This issue has been fixed in Version nfs-utils-1.3.0-0.24.el7 and delivered by RHEL-7.3. And maybe we can request zstream fix if need it in RHEL-7.2.
Ah, very nice. I haven't upgraded to 7.3 yet, but I'll check this out. Thanks.