VMTest "No space left on device" running SimpleTestUpdateAndVerify on betty-nyc-android-pfq |
|||
Issue descriptionhttps://luci-milo.appspot.com/buildbot/chromeos/betty-nyc-android-pfq/1547 2018/03/19 09:10:01 - cros_generate_test_payloads.py - INFO : Dumping /b/c/cbuild/repository/src/build/images/betty/latest-cbuildbot/update.cache 2018/03/19 09:10:01 - cros_build_lib.py - INFO : RunCommand: /b/c/cbuild/repository/src/platform/crostestutils/au_test_harness/cros_au_test_harness.py '--base_image=/b/c/cbuild/repository/src/build/images/betty/latest-cbuildbot/chromiumos_test_image.bin' '--target_image=/b/c/cbuild/repository/src/build/images/betty/latest-cbuildbot/chromiumos_test_image.bin' '--board=betty' '--type=vm' '--remote=0.0.0.0' --verbose '--jobs=1' '--ssh_private_key=/b/c/cbuild/repository/src/build/images/betty/latest-cbuildbot/id_rsa' '--test_prefix=SimpleTestUpdateAndVerify' '--test_results_root=/b/c/cbuild/repository/chroot/tmp/cbuildbotj3itQa/pfq_suite/test_harness' --no_graphics --whitelist_chrome_crashes in /b/c/cbuild/repository/src/scripts 2018/03/19 09:10:01 - cros_au_test_harness.py - INFO : Loading update cache from /b/c/cbuild/repository/src/build/images/betty/latest-cbuildbot/update.cache 2018/03/19 09:10:01 - dev_server_wrapper.py - DEBUG : Retrieving http://127.0.0.1:8080/check_health 2018/03/19 09:10:01 - cros_build_lib.py - DEBUG : RunCommand: /b/c/cbuild/repository/chromite/bin/cros_sdk --no-ns-pid -- sudo 'CROS_CACHEDIR=/b/c/cbuild/repository/.cache' 'CROS_SUDO_KEEP_ALIVE=unknown' -- start_devserver --pidfile /tmp/cbuildbotj3itQa/pfq_suite/test_harness/devserver_wrapperVRpkGK --logfile /tmp/cbuildbotj3itQa/pfq_suite/test_harness/dev_server.log '--port=8080' --critical_update in /b/c/cbuild/repository 2018/03/19 09:10:06 - dev_server_wrapper.py - DEBUG : Retrieving http://127.0.0.1:8080/check_health E ====================================================================== ERROR: SimpleTestUpdateAndVerify (crostestutils.au_test_harness.au_test.AUTest) Test that updates to itself. ---------------------------------------------------------------------- Traceback (most recent call last): File "/b/c/cbuild/repository/src/platform/crostestutils/au_test_harness/../../crostestutils/au_test_harness/au_test.py", line 220, in SimpleTestUpdateAndVerify target_image_path = self.worker.PrepareBase(self.target_image_path) File "/b/c/cbuild/repository/src/platform/crostestutils/au_test_harness/../../crostestutils/au_test_harness/vm_au_worker.py", line 59, in PrepareBase shutil.copy(self.vm_image_path, private_image_path) File "/usr/lib/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 84, in copyfile copyfileobj(fsrc, fdst) File "/usr/lib/python2.7/shutil.py", line 52, in copyfileobj fdst.write(buf) IOError: [Errno 28] No space left on device ----------------------------------------------------------------------
,
Mar 20 2018
I've looked at the logs; it appears that the build server is indeed out of space (as opposed to either the target image or the VM). Looking on the builder, you see this: chrome-bot@build1-m2:(Linux 14.04):~$ df -m / Filesystem 1M-blocks Used Available Use% Mounted on /dev/sda4 3360711 3202642 0 100% / Which pretty much cements the conclusion. I'm trying to figure out where the space has gone, and how to clean up.
,
Mar 20 2018
chrome-bot@build1-m2:(Linux 14.04):/b$ df -m / Filesystem 1M-blocks Used Available Use% Mounted on /dev/sda4 3360711 3202642 0 100% / chrome-bot@build1-m2:(Linux 14.04):/b$ du -sm /b/c 3061593 /b/c chrome-bot@build1-m2:(Linux 14.04):/b$ echo $(( 3061593000 / 3360711 )) 910 So, 91% of the total disk space in the file system is under /b/c.
,
Mar 20 2018
chrome-bot@build1-m2:(Linux 14.04):~$ du -sm /b/c/cbuild/repository/.cache 2912930 /b/c/cbuild/repository/.cache chrome-bot@build1-m2:(Linux 14.04):~$ echo $(( 2912930000 / 3360711 )) 866 Or, 87% of the total disk space is under that one directory. It's named ".cache", so it sounds safe to delete it. But, I don't know if it's truly safe, or if that will actually fix the problem...
,
Mar 20 2018
Digging further, the culprits are under /b/c/cbuild/repository/.cache/distfiles/host. And the biggest files there have names like cheets_x86_64-target_files-4664449.zip. I'm more confident that it's safe to delete these; that should allow stuff to move forward. However, I fully expect that this problem will recur if we don't add some more aggressive cleanup.
,
Mar 20 2018
OK, the disk space leakage has been previously identified, see bug 814989. I'm holding this bug open as the "get things moving again" bug. I'll go update that bug as the "we need a permanent fix" bug.
,
Mar 20 2018
Space should be sufficiently cleaned up for now: chrome-bot@build1-m2:(Linux 14.04):~$ df -k / Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda4 3441367600 926841916 2339691152 29% / |
|||
►
Sign in to add a comment |
|||
Comment 1 by jhorwich@chromium.org
, Mar 20 2018Labels: -Pri-3 Pri-1