Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-71353

[nfsdctl] [nfs.conf] Starting nfs-server with "tcp=n" still bring the tcp up

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • nfs-utils
    • None
    • rhel-fs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Since we changing to use `nfsdctl` to start the NFS server, setting "tcp=n" in /etc/nfs.conf starts to get some wired output:

      [root@dell-per660-17 ~]# rpm -q nfs-utils
      nfs-utils-2.8.2-0.el10.x86_64
      [root@dell-per660-17 ~]# echo -e "[nfsd]\ntcp=n" > /etc/nfs.conf
      [root@dell-per660-17 ~]# cat /etc/nfs.conf
      [nfsd]
      tcp=n
      [root@dell-per660-17 ~]# systemctl restart nfs-server
      [root@dell-per660-17 ~]# rpcinfo -p | grep -w nfs
          100003    3   udp   2049  nfs
          100003    3   tcp   2049  nfs   <<<<
          100003    4   tcp   2049  nfs   <<<<

       

      By default it's like:

      [root@dell-per660-17 ~]# echo > /etc/nfs.conf
      [root@dell-per660-17 ~]# systemctl restart nfs-server
      [root@dell-per660-17 ~]# rpcinfo -p | grep -w nfs
          100003    3   tcp   2049  nfs
          100003    4   tcp   2049  nfs

       

      Disable tcp and enable udp will be like:

      [root@dell-per660-17 ~]# echo -e "[nfsd]\ntcp=n\nudp=y" > /etc/nfs.conf
      [root@dell-per660-17 ~]# cat /etc/nfs.conf
      [nfsd]
      tcp=n
      udp=y
      [root@dell-per660-17 ~]# systemctl restart nfs-server
      [root@dell-per660-17 ~]# rpcinfo -p | grep -w nfs
          100003    3   udp   2049  nfs

       

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Previously starting nfs-server with "tcp=n" will be failed like:

      rpc.nfsd[11653]: rpc.nfsd: version 4 requires the TCP protocol
      systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE

      Actual results

              nfs-team-list NFS Team
              rhn-support-yoyang Yongcheng Yang
              NFS Team NFS Team
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: