New issue
Advanced search Search tips

Issue 658943 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 593791
Owner: ----
Closed: Feb 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 646626



Sign in to add a comment

collecting sysinfo is interfering with mounting cryptohome vault in platform_CryptohomeStress autotest

Project Member Reported by asavery@chromium.org, Oct 24 2016

Issue description

Running platform_CryptohomeStress sometimes ends in a failure because the Cryptohome vault is not found after mount. Looking at the log files it seems like this is caused by get_dictionary_attack_counter(), called in site_sysinfo.py, stopping cryptohomed when platform_CryptohomeFio is trying to mount the vault. Since 3 tests are being run in parallel and sysinfo is being collected 3 times, it may be happening when the first test is already running.

What steps will reproduce the problem?
(1) Run the edited platform_CryptohomeStress found here: https://chromium-review.googlesource.com/#/c/399893/
(2) It doesn't fail every time, so keep running until it does.

What is the expected output?
The test will pass.

What do you see instead?
ChromiumOSError: Cryptohome vault not found after mount.

The part of the debug log that shows the error:
10/24 11:57:28.644 INFO |      base_sysinfo:0380| ChromeOS BOARD = cyan_2.2GHz_4GB
10/24 11:57:28.645 DEBUG|        base_utils:0185| Running 'crossystem hwid'
10/24 11:57:28.646 DEBUG|        base_utils:0185| Running 'logger "autotest starting iteration /usr/local/autotest/results/default/platform_CryptohomeFio/sysinfo/iteration.1 on cyan_2.2GHz_4GB"'
10/24 11:57:28.655 DEBUG|        base_utils:0185| Running '/opt/google/chrome/chrome --version'
10/24 11:57:28.660 DEBUG|        base_utils:0185| Running '/usr/sbin/cryptohome --action=mount --user=test@chromium.org --password=test --async --create 2>&1'
10/24 11:57:28.691 INFO |      base_sysinfo:0380| ChromeOS BOARD = cyan_2.2GHz_4GB
10/24 11:57:28.694 DEBUG|        base_utils:0185| Running 'logger "autotest starting iteration /usr/local/autotest/results/default/power_SuspendStress/sysinfo/iteration.1 on cyan_2.2GHz_4GB"'
10/24 11:57:28.710 DEBUG|        base_utils:0185| Running 'initctl status tlsdated'
10/24 11:57:28.724 DEBUG|        base_utils:0185| Running 'initctl stop tlsdated'
10/24 11:57:28.742 DEBUG|        base_utils:0280| [stdout] tlsdated stop/waiting
10/24 11:57:28.805 DEBUG|        base_utils:0185| Running 'status cryptohomed'
10/24 11:57:28.820 DEBUG|        base_utils:0185| Running 'stop cryptohomed'
10/24 11:57:28.843 DEBUG|        base_utils:0185| Running 'hwclock -r --debug --utc'
10/24 11:57:28.860 DEBUG|        base_utils:0280| [stderr] /bin/bash: line 1: 22905 Terminated              /usr/sbin/cryptohome --action=mount --user=test@chromium.org --password=test --async --create 2>&1
10/24 11:57:28.862 INFO |        cryptohome:0206|
10/24 11:57:28.863 DEBUG|        base_utils:0185| Running 'cryptohome --action=obfuscate_user '--user=test@chromium.org''
10/24 11:57:28.866 DEBUG|        base_utils:0280| [stdout] cryptohomed stop/waiting
10/24 11:57:28.867 DEBUG|        base_utils:0185| Running 'status chapsd'
10/24 11:57:28.882 DEBUG|        base_utils:0185| Running 'stop chapsd'
10/24 11:57:28.899 DEBUG|        base_utils:0280| [stdout] chapsd stop/waiting
10/24 11:57:28.901 DEBUG|        base_utils:0185| Running 'status tcsd'
10/24 11:57:28.914 DEBUG|        base_utils:0185| Running 'stop tcsd'
10/24 11:57:28.916 DEBUG|        base_utils:0185| Running 'logger "autotest finished iteration /usr/local/autotest/results/default/platform_CryptohomeFio/sysinfo/iteration.1"'
10/24 11:57:28.928 WARNI|              test:0606| Autotest caught exception when running test:
Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 600, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/common_lib/test.py", line 804, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/common_lib/test.py", line 461, in execute
    dargs)
  File "/usr/local/autotest/common_lib/test.py", line 347, in _call_run_once_with_retry
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/common_lib/test.py", line 376, in _call_run_once
    self.run_once(*args, **dargs)
  File "/usr/local/autotest/tests/platform_CryptohomeFio/platform_CryptohomeFio.py", line 55, in run_once
    create=True)
  File "/usr/local/autotest/cros/cryptohome.py", line 210, in mount_vault
    raise ChromiumOSError('Cryptohome vault not found after mount.')
ChromiumOSError: Cryptohome vault not found after mount.




 

Comment 1 by dshi@chromium.org, Oct 24 2016

Cc: -dshi@chromium.org akes...@chromium.org xixuan@chromium.org
Mergedinto: 593791
Status: Duplicate (was: Untriaged)

Sign in to add a comment