This is still happening on xenial, although it seems to be happening on
s390x now, so I decided to investigate why.

I reserved two s390x instances running xenial on canonistack and used
them to run the dep8 tests.  On the first machine, after dget'ing the
source package for nfs-utils and rebuilding it locally, I did:

# adt-run -o dep8 -B ./nfs-utils_1.2.8-9ubuntu12.3.dsc --- ssh -H
10.48.132.122 -l ubuntu -r

Where 10.48.132.122 is the IP address of the *second* machine.  This
assumes that everything is properly configured there: sudo, ssh keys.

When I do this, I get the exact same error message as the reporter.

After analyzing a lot of debug logs (using "rpcdebug -m nfs -s all",
"rpcdebug -m nfsd -s all", "rpcdebug -m rpc -s all"), I finally found
that the problem are the lease and the grace times used by nfsd.  There
are various reports on the internet about problems very similar to this
one and that are caused by the same reason.

Since we're dealing with a relatively old nfsd, which doesn't support
the --lease-time nor --grace-time options, the only way to adjust these
parameters is through /proc/fs/nfsd/.  That's what I did.

The fix for this problem is relatively simple.  On debian/tests/local-
server-client, right at the start of the "post_boot_tests" function, we
have to do:

    systemctl stop nfs-server.service
    echo 10 > /proc/fs/nfsd/nfsv4leasetime
    echo 10 > /proc/fs/nfsd/nfsv4gracetime
    systemctl start nfs-server.service

After this, I see the test passing for me:

adt-run [14:25:43]: test local-server-client: -----------------------]
adt-run [14:25:44]: test local-server-client:  - - - - - - - - - - results - - 
- - - - - - - -
local-server-client  PASS
adt-run [14:25:44]: @@@@@@@@@@@@@@@@@@@@ summary
local-server-client  PASS

Since this is happening on xenial, I don't believe a SRU is justified to
fix this issue.  Therefore, I will propose that we force-badtest this
particular test instead.  I'm writing this comment more as a reference.

** Changed in: nfs-utils (Ubuntu)
   Importance: Undecided => Low

** Changed in: nfs-utils (Ubuntu)
       Status: New => Confirmed

** Also affects: nfs-utils (Ubuntu Xenial)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1705483

Title:
  ADT tests periodically failing on amd64 - file exists after removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1705483/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to