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

nfs: inter-ssc fails with ESTALE if the nfs servers have the same hostname

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

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • None
    • None
    • Low
    • rhel-fs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Inter-ssc fails, and ESTALE is returned when both source and destination server have the same hostname

      What is the impact of this issue to you?

      inter-ssc returns error, and file is not copied (even with client as intermediary performing READ+WRITE)

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

      kernel 6.12.0-153.el10_2, patched to enable CONFIG_NFSD_V4_2_INTER_SSC
      (https://issues.redhat.com/browse/RHEL-126556)

      How reproducible is this bug?:

      easy

      Steps to reproduce

      two nfs servers, one client (all with kernel patched as above)

      server1:

      # echo Y >/sys/module/nfsd/parameters/inter_copy_offload_enable
      # hostname localhost
      # systemctl restart nfs-server.service
      

      server2:

      # echo Y >/sys/module/nfsd/parameters/inter_copy_offload_enable
      # hostname localhost
      # systemctl restart nfs-server.service
      

      client:

      # mount server1:/ /mnt/server1
      # mount server2:/ /mnt/server2
      
      # dd if=/dev/urandom of=/mnt/server1/testfile bs=1M count=10
      # ls -l /mnt/server[12]/testfile
      
      # cp /mnt/server1/testfile /mnt/server2
      
      # ls -l /mnt/server[12]/testfile
      

      Expected results

      file is copied via from server1 to server2 via inter-ssc

      Actual results

      # ls -al /mnt/vm3[12]/testfile
      -rw-r--r--. 1 root root 10485760 Nov  7 15:36 /mnt/server1/testfile
      
      # cp /mnt/server1/testfile /mnt/server2/
      cp: error copying '/mnt/server1/testfile' to '/mnt/server2/testfile': Stale file handle
      
      # ls -al /mnt/server[12]/testfile
      -rw-r--r--. 1 root root 10485760 Nov  7 15:36 /mnt/server1/testfile
      -rw-r--r--. 1 root root        0 Nov  7 15:46 /mnt/server2/testfile
      

              nfs-team-list NFS Team
              rhn-support-fsorenso Frank Sorenson
              NFS Team NFS Team
              Jianhong Yin Jianhong Yin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: