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 नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1705483

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

Status in nfs-utils package in Ubuntu:
  Confirmed
Status in nfs-utils source package in Xenial:
  New

Bug description:
  http://autopkgtest.ubuntu.com/packages/nfs-utils/artful/amd64

  You can see that sometimes the ADT tests fail. With retries working.

  FAIL: /mnt/nfs_home/hello.txt exists after removal
  autopkgtest [06:24:45]: test local-server-client: -----------------------]
  autopkgtest [06:24:46]: test local-server-client:  - - - - - - - - - - 
results - - - - - - - - - -
  local-server-client  FAIL non-zero exit status 1
  autopkgtest [06:24:46]: test local-server-client:  - - - - - - - - - - stderr 
- - - - - - - - - -
  FAIL: /mnt/nfs_home/hello.txt exists after removal
  autopkgtest [06:24:46]: @@@@@@@@@@@@@@@@@@@@ summary
  local-server-client  FAIL non-zero exit status 1
  Exit request sent.

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

_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to