[Bug 1836593] Re: race condition in dep8 test

Rafael David Tinoco rafaeldtinoco at kernelpath.com
Wed Aug 14 01:28:11 UTC 2019


** Description changed:

- As can be seen in dep8 tests on published results [1], there seems to be
- a race condition on tear down of at least one of the growpart tests.  We
- seem to see it most on ppc64el [2].  I'm attaching cloud-utils-
+ [Impact]
+ 
+  * As can be seen in dep8 tests on published results [1], there seems to
+ be a race condition on tear down of at least one of the growpart tests.
+ We seem to see it most on ppc64el [2].  I'm attaching cloud-utils-
  ppc64el-0.31-0ubuntu1.log that came from [3].
  
- It seems that the test that fails (at least in the 2 cases I saw) is
+ [Test Case]
+ 
+ * It seems that the test that fails (at least in the 2 cases I saw) is
  'growpart-loop'.
  
  The relevant output in the log is this:
-     unmount /tmp/test-growpart.VyOylU/mp
-     clearing parts [1] from /dev/loop0
-     delpart /dev/loop0 1
-     delpart: failed to remove partition: Device or resource busy
-     FAIL: ./test/test-growpart failed. pt_type=dos resizer=sfdisk
+ 
+     unmount /tmp/test-growpart.VyOylU/mp
+     clearing parts [1] from /dev/loop0
+     delpart /dev/loop0 1
+     delpart: failed to remove partition: Device or resource busy
+     FAIL: ./test/test-growpart failed. pt_type=dos resizer=sfdisk
  
  I've copied the relevant portion of the log to attached 'short.log'.
  
- --
+ [Regression Potential]
+ 
+ * Minor potential as the only changes being added are "udevadm settle".
+ This will likely add a bit of more time to execution but won't change
+ the logic of what was already being done (just serialize udev events).
+ 
+ [Other Info]
+ 
  [1] https://autopkgtest.ubuntu.com/packages/cloud-utils
  [2] https://autopkgtest.ubuntu.com/packages/cloud-utils/eoan/ppc64el
  [3] https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-eoan/eoan/ppc64el/c/cloud-utils/20190712_175132_5ffd5@/log.gz
+ 
+ 
+ 
+ --

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1836593

Title:
  race condition in dep8 test

Status in cloud-utils:
  Fix Committed
Status in cloud-utils package in Ubuntu:
  Confirmed
Status in cloud-utils source package in Disco:
  In Progress

Bug description:
  [Impact]

   * As can be seen in dep8 tests on published results [1], there seems
  to be a race condition on tear down of at least one of the growpart
  tests.  We seem to see it most on ppc64el [2].  I'm attaching cloud-
  utils-ppc64el-0.31-0ubuntu1.log that came from [3].

  [Test Case]

  * It seems that the test that fails (at least in the 2 cases I saw) is
  'growpart-loop'.

  The relevant output in the log is this:

      unmount /tmp/test-growpart.VyOylU/mp
      clearing parts [1] from /dev/loop0
      delpart /dev/loop0 1
      delpart: failed to remove partition: Device or resource busy
      FAIL: ./test/test-growpart failed. pt_type=dos resizer=sfdisk

  I've copied the relevant portion of the log to attached 'short.log'.

  [Regression Potential]

  * Minor potential as the only changes being added are "udevadm
  settle". This will likely add a bit of more time to execution but
  won't change the logic of what was already being done (just serialize
  udev events).

  [Other Info]

  [1] https://autopkgtest.ubuntu.com/packages/cloud-utils
  [2] https://autopkgtest.ubuntu.com/packages/cloud-utils/eoan/ppc64el
  [3] https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-eoan/eoan/ppc64el/c/cloud-utils/20190712_175132_5ffd5@/log.gz



  --

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-utils/+bug/1836593/+subscriptions



More information about the Ubuntu-sponsors mailing list