New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 843268 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-1
Hotlist-2


Sign in to add a comment

Autotest shared_host_dir_unittest failed on amd64-generic-tot-asan-informational

Project Member Reported by derat@chromium.org, May 15 2018

Issue description

Autotest's shared_host_dir_unittest failed in amd64-generic-tot-asan-informational's UnitTest stage at http://cros-goldeneye/chromeos/healthmonitoring/buildDetails?buildbucketId=8946460696055148096

autotest-0.0.2-r9396: Running autotest_lib.site_utils.lxc.shared_host_dir_unittest
autotest-0.0.2-r9396: DEBUG:root:Running 'sudo -n true'
autotest-0.0.2-r9396: testHostDirAccess (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that sudo is not required to write to the shared host dir. ... ok
autotest-0.0.2-r9396: testHostDirCreationAndCleanup (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that the host dir is properly created and cleaned up when ... ok
autotest-0.0.2-r9396: testHostDirMissing (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that a missing host dir does not cause cleanup to crash. ... ERROR
autotest-0.0.2-r9396: ERROR
autotest-0.0.2-r9396: testHostDirNotMounted (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that an unmounted host dir does not cause container bucket ... ok
autotest-0.0.2-r9396: testTimeout (autotest_lib.site_utils.lxc.shared_host_dir_unittest.TimeoutTests)
autotest-0.0.2-r9396: Verifies that cleanup code correctly times out. ... 2018-05-15 07:12:02,224.224 WARNI|             retry:0228|       MainThread(139690779944704)| <class 'autotest_lib.client.common_lib.error.CmdError'>(Command <sudo umount /build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpGm6EML/host> failed, rc=32, Command returned non-zero exit status
autotest-0.0.2-r9396: * Command: 
autotest-0.0.2-r9396:     sudo umount /build/amd64-generic/tmp/portage/chromeos-
autotest-0.0.2-r9396:     base/autotest-0.0.2-r9396/temp/tmpGm6EML/host
autotest-0.0.2-r9396: Exit status: 32
autotest-0.0.2-r9396: Duration: 0.0127878189087
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: stderr:
autotest-0.0.2-r9396: ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
autotest-0.0.2-r9396: umount: /build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpGm6EML/host: target is busy
autotest-0.0.2-r9396:         (In some cases useful info about processes that
autotest-0.0.2-r9396:          use the device is found by lsof(8) or fuser(1).))
autotest-0.0.2-r9396: ok
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: ======================================================================
autotest-0.0.2-r9396: ERROR: testHostDirMissing (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that a missing host dir does not cause cleanup to crash.
autotest-0.0.2-r9396: ----------------------------------------------------------------------
autotest-0.0.2-r9396: Traceback (most recent call last):
autotest-0.0.2-r9396:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/work/autotest-0.0.2/site_utils/lxc/shared_host_dir_unittest.py", line 58, in testHostDirMissing
autotest-0.0.2-r9396:     {'path': self.shared_host_path})
autotest-0.0.2-r9396:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/work/autotest-0.0.2/client/common_lib/utils.py", line 748, in run
autotest-0.0.2-r9396:     "Command returned non-zero exit status")
autotest-0.0.2-r9396: CmdError: Command <sudo umount /build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host && sudo rmdir /build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host> failed, rc=1, Command returned non-zero exit status
autotest-0.0.2-r9396: * Command: 
autotest-0.0.2-r9396:     sudo umount /build/amd64-generic/tmp/portage/chromeos-
autotest-0.0.2-r9396:     base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host && sudo rmdir
autotest-0.0.2-r9396:     /build/amd64-generic/tmp/portage/chromeos-
autotest-0.0.2-r9396:     base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host
autotest-0.0.2-r9396: Exit status: 1
autotest-0.0.2-r9396: Duration: 0.0522940158844
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: stderr:
autotest-0.0.2-r9396: ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
autotest-0.0.2-r9396: ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
autotest-0.0.2-r9396: rmdir: failed to remove '/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host': Device or resource busy
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: ======================================================================
autotest-0.0.2-r9396: ERROR: testHostDirMissing (autotest_lib.site_utils.lxc.shared_host_dir_unittest.SharedHostDirTests)
autotest-0.0.2-r9396: Verifies that a missing host dir does not cause cleanup to crash.
autotest-0.0.2-r9396: ----------------------------------------------------------------------
autotest-0.0.2-r9396: Traceback (most recent call last):
autotest-0.0.2-r9396:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/work/autotest-0.0.2/site_utils/lxc/shared_host_dir_unittest.py", line 29, in tearDown
autotest-0.0.2-r9396:     shutil.rmtree(self.tmpdir)
autotest-0.0.2-r9396:   File "/usr/lib64/python2.7/shutil.py", line 247, in rmtree
autotest-0.0.2-r9396:     rmtree(fullname, ignore_errors, onerror)
autotest-0.0.2-r9396:   File "/usr/lib64/python2.7/shutil.py", line 256, in rmtree
autotest-0.0.2-r9396:     onerror(os.rmdir, path, sys.exc_info())
autotest-0.0.2-r9396:   File "/usr/lib64/python2.7/shutil.py", line 254, in rmtree
autotest-0.0.2-r9396:     os.rmdir(path)
autotest-0.0.2-r9396: OSError: [Errno 16] Device or resource busy: '/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/temp/tmpBrVHsQ/host'
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: ----------------------------------------------------------------------
autotest-0.0.2-r9396: Ran 5 tests in 1.347s
autotest-0.0.2-r9396: 
autotest-0.0.2-r9396: FAILED (errors=2)
autotest-0.0.2-r9396: Traceback (most recent call last):
autotest-0.0.2-r9396:   File "./utils/unittest_suite.py", line 294, in <module>
autotest-0.0.2-r9396:     main()
autotest-0.0.2-r9396:   File "./utils/unittest_suite.py", line 281, in main
autotest-0.0.2-r9396:     errors = find_and_run_tests(absolute_start, options)
autotest-0.0.2-r9396:   File "./utils/unittest_suite.py", line 264, in find_and_run_tests
autotest-0.0.2-r9396:     pe.run_until_completion()
autotest-0.0.2-r9396:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/work/autotest-0.0.2/utils/parallel.py", line 67, in run_until_completion
autotest-0.0.2-r9396:     self._run(self.ready_to_run.pop())
autotest-0.0.2-r9396:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-0.0.2-r9396/work/autotest-0.0.2/utils/parallel.py", line 53, in _run
autotest-0.0.2-r9396:     function()
autotest-0.0.2-r9396:   File "./utils/unittest_suite.py", line 254, in <lambda>
autotest-0.0.2-r9396:     run_module = lambda module=module_names: run_test(module, options)
autotest-0.0.2-r9396:   File "./utils/unittest_suite.py", line 159, in run_test
autotest-0.0.2-r9396:     raise TestFailure(msg)
autotest-0.0.2-r9396: __main__.TestFailure: autotest_lib.site_utils.lxc.shared_host_dir_unittest had 0 failures and 2 errors.

This might be related to  issue 833478 .
 

Comment 1 by derat@chromium.org, May 19 2018

Ping. Any ideas?

Comment 2 by jkop@chromium.org, May 19 2018

No, none. Nothing near this has changed recently to my knowledge.

Comment 3 by derat@chromium.org, May 19 2018

If the test isn't important, can I delete it? :-)

Comment 4 by jkop@chromium.org, May 19 2018

I don't know that it's important, but I don't know that it's unimportant either. 

Comment 5 by derat@chromium.org, May 19 2018

Cc: akes...@chromium.org
Aviv, do you know if anyone cares about this Autotest unit test enough to investigate failures in it?
Owner: derat@chromium.org
If it is flaky, go ahead an delete it or mark it skipped.

Comment 7 by derat@chromium.org, May 21 2018

Status: Started (was: Assigned)
Project Member

Comment 8 by bugdroid1@chromium.org, May 29 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/6ccc74e7d19dbf6d3170c39eb1a08e0d4bec7294

commit 6ccc74e7d19dbf6d3170c39eb1a08e0d4bec7294
Author: Daniel Erat <derat@chromium.org>
Date: Tue May 29 02:13:10 2018

autotest: Delete testHostDirMissing.

Delete a flaky test in shared_host_dir_unittest.py.

BUG= chromium:843268 
TEST=shared_host_dir_unittest.py passes locally

Change-Id: I9019e056a7c68816a0f868c2e371e0627ec20103
Reviewed-on: https://chromium-review.googlesource.com/1067732
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>

[modify] https://crrev.com/6ccc74e7d19dbf6d3170c39eb1a08e0d4bec7294/site_utils/lxc/shared_host_dir_unittest.py

Comment 9 by derat@chromium.org, May 29 2018

Status: Fixed (was: Started)

Sign in to add a comment