Status: Available
Owner: ----
Labels: Type-Bug Pri-1 OS-Chrome Hardware-Lab
New issue 526340 by
jrbarne...@chromium.org: Some autotest results
directories end up owned by root, break gs_offloader
https://code.google.com/p/chromium/issues/detail?id=526340
Looking at some drones/shards, I see that the gs_offloader upstart
job (for offloading regular test jobs) seems to be restarting rather
frequently.
Looking in (for instance) /var/log/gs_offloader.1, I see errors like this:
Traceback (most recent call last):
File "/usr/local/autotest/site-packages/chromite/lib/parallel.py", line
601, in TaskRunner
task(*x, **task_kwargs)
File "/usr/local/autotest/site-packages/statsd/timer.py", line 95, in
_decorator
return function(*args, **kwargs)
File "/usr/local/autotest/site_utils/gs_offloader.py", line 271, in
offload_dir
shutil.rmtree(dir_entry)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission
denied: '39617385-chromeos-test/chromeos4-row3-rack3-host5/telemetry_Benchmarks.smoothness.tough_canvas_cases/sysinfo/added_packages'
Checking the directory in question, you can see that it's owned by root.
I assume that this is a side-effect of SSP.
Regardless of the root cause we need these things (possibly entailing
more bugs):
1) Fix gs_offloader not to die when shutil.rmtree() fails. Instead, the
error should be queued to generate e-mail notification.
2) Whatever is creating files owned by root should be beaten about
the head and shoulders until it agrees that the files will be owned
by chromeos-test instead.
We also need to do a sweep of all the drones and shards to clean up
the current messes.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings