New issue
Advanced search Search tips

Issue 746630 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

[telemetry] cannot some telemetry tests on Chromebooks

Project Member Reported by cmt...@chromium.org, Jul 19 2017

Issue description

Chrome Version: Google Chrome 61.0.3160.0 unknown
OS: ChromeOS R61-9760.0.0

What steps will reproduce the problem?
(1) Load ChromeOS image onto a Chromebook (I used a falco board)

python /usr/local/telemetry/src/tools/perf/run_benchmark --browser=system --output-format=chartjson  tab_switching.typical_25 --also-run-disabled-tests

OR

python /usr/local/telemetry/src/tools/perf/run_benchmark --browser=system --output-format=chartjson  smoothness.gpu_rasterization.tough_filters_cases


What is the expected result?

The telemetry benchmarks will run successfully.


What happens instead?

The telemetry benchmarks fail trying to use gsutil to copy the pagesets from gs://chrome-partner-telemetry, because "Anonymous users does not have storage.objects.get access to object chrome-partner-telemetry".  

See full error below:

localhost ~ # python /usr/local/telemetry/src/tools/perf/run_benchmark --browser=system --output-format=chartjson  smoothness.gpu_rasterization.tough_filters_cases  
ERROR:root:You either aren't authenticated or don't have permission to use the archives for this page set.
You may need to run gsutil config.
You can find instructions for gsutil config at: http://www.chromium.org/developers/telemetry/upload_to_cloud_storage

Traceback (most recent call last):
  RunBenchmark at /usr/local/telemetry/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:399
    expectations=expectations, metadata=benchmark.GetMetadata())
  Run at /usr/local/telemetry/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:221
    story_set.archive_data_file, story_set.wpr_archive_info, stories):
  _UpdateAndCheckArchives at /usr/local/telemetry/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:448
    wpr_archive_info.DownloadArchivesIfNeeded()
  DownloadArchivesIfNeeded at /usr/local/telemetry/src/third_party/catapult/telemetry/telemetry/wpr/archive_info.py:132
    download_if_needed(archive_path)
  download_if_needed at /usr/local/telemetry/src/third_party/catapult/telemetry/telemetry/wpr/archive_info.py:111
    cloud_storage.GetIfChanged(path, self._bucket)
  GetIfChanged at /usr/local/telemetry/src/third_party/catapult/common/py_utils/py_utils/cloud_storage.py:422
    _GetLocked(bucket, expected_hash, file_path)
  _GetLocked at /usr/local/telemetry/src/third_party/catapult/common/py_utils/py_utils/cloud_storage.py:348
    _RunCommand(['cp', url, partial_download_path.name])
  _RunCommand at /usr/local/telemetry/src/third_party/catapult/common/py_utils/py_utils/cloud_storage.py:153
    raise GetErrorObjectForCloudStorageStderr(stderr)
CredentialsError: Attempted to access a file from Cloud Storage but you have no configured credentials. To configure your credentials:
  1. Run "HOME=/home/chromeos-test/ /usr/local/telemetry/src/third_party/catapult/third_party/gsutil/gsutil config" and follow its instructions.
  2. If you have a @google.com account, use that account.
  3. For the project-id, just enter 0.

Locals:
  args       : ['/usr/local/telemetry/src/third_party/catapult/third_party/gsutil/gsutil', 'cp', 'gs://chrome-partner-telemetry/8f95a029b78b9bd871f07f3331014a97b01b1fa4', u'/usr/local/telemetry/src/tools/perf/page_sets/data/tmp_fP6Y3']
  gsutil     : <subprocess.Popen object at 0x7f36a4c07e10>
  gsutil_env : {'SSH_CLIENT': '100.96.200.58 34280 22', 'LOGNAME': 'root', 'USER': 'root', 'HOME': '/home/chromeos-test/', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin', 'LD_LIBRARY_PATH': '/usr/local/lib64', 'INFOPATH': '/usr/share/info', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/home/chronos/.Xauthority', 'SHLVL': '1', 'CONFIG_PROTECT_MASK': '/etc/gentoo-release /etc/fonts/fonts.conf /etc/terminfo', 'EDITOR': '/bin/nano', 'MANPATH': '/usr/local/share/man:/usr/share/man', ... 35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'SSH_TTY': '/dev/pts/0', 'PWD': '/root', 'MAIL': '/var/spool/mail/root', 'SSH_CONNECTION': '100.96.200.58 34280 100.96.192.180 22', 'PAGER': '/usr/local/bin/less'} (truncated)
  stderr     : 'ServiceException: 401 Anonymous users does not have storage.objects.get access to object chrome-partner-telemetry/8f95a029b78b9bd871f07f3331014a97b01b1fa4.\n'
  stdout     : ''

[  PASSED  ] 0 tests.

View result at file:///usr/local/telemetry/src/tools/perf/results-chart.json



 
I think you need a .boto file with permissions to access the bucket in /home/chromeos-test/
Cc: -nednguyen@chromium.org nedngu...@google.com

Comment 3 by cmt...@chromium.org, Jul 20 2017

Where/how do I get and install the .boto file on the chromebook?

Comment 4 by cmt...@chromium.org, Jul 20 2017

Just to be clear, logged into the Chromebook and ran the benchmarks directly (locally) on the Chromebook (as 'root'); this was not from my workstation.
Components: Test>Telemetry
Components: -Tests>Telemetry

Sign in to add a comment