Servo verification fails with the new servod upstart job
Reported by
jrbarnette@chromium.org,
Jul 27 2016
|
||||||||||||
Issue description
When constructing a ServoHost object, we normally call
the `verify()` method. That method includes calling
`_check_servod()`, which includes this code:
try:
self.run('test -f /var/lib/servod/config')
except (error.AutoservRunError, error.AutoservSSHTimeout) as e:
# ...
With the new servod upstart job, the "servod/config" file no
longer exists. Typically, it will be named "servod/config_9999"
instead.
This only happens with a servo image that's freshly installed,
so it's primarily affecting only new deployments.
,
Jul 27 2016
The attached log file is from a failing deployment.
The actual name of the failing method is `_check_servo_config()`.
Here's the traceback, FWIW:
Traceback (most recent call last):
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/site_utils/deployment/install.py", line 457, in _install_dut
_install_and_record(afe, hostname, arguments)
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/site_utils/deployment/install.py", line 403, in _install_and_record
_install_test_image(hostname, arguments)
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/site_utils/deployment/install.py", line 354, in _install_test_image
_check_servo(host)
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/site_utils/deployment/install.py", line 232, in _check_servo
servo_host.verify()
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/client/common_lib/hosts/base_classes.py", line 331, in verify
self.verify_software()
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/server/hosts/servo_host.py", line 568, in verify_software
self._check_servo_config()
File "/usr/local/google/home/rbaddo/chromiumos/new_lab_tools/src/third_party/autotest/files/server/hosts/servo_host.py", line 349, in _check_servo_config
(self.hostname, e))
ServoHostVerifyFailure: Servo config file check failed for chromeos4-row8-rack9-host11-servo: command execution error
,
Jul 29 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/cdece6ba5b0e651a6b9350d19e8c429bbbf70680 commit cdece6ba5b0e651a6b9350d19e8c429bbbf70680 Author: Kevin Cheng <kevcheng@chromium.org> Date: Wed Jul 27 19:55:01 2016 [autotest] Update servo_host verify to check for multiple servod configs. The updated servod upstart job creates the servod config file using the nomenclature "config_$PORT" and we need to update the verify to accommodate for that change (and also check for the old style config file). BUG= chromium:632093 TEST=Locally on moblab that files are detected (either one) and if both are not there, will fail as expected. Change-Id: Iddee4d0c0eb4cde3e9d5402a321e8eb383d848d8 Reviewed-on: https://chromium-review.googlesource.com/363910 Commit-Ready: Kevin Cheng <kevcheng@chromium.org> Tested-by: Kevin Cheng <kevcheng@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@google.com> [modify] https://crrev.com/cdece6ba5b0e651a6b9350d19e8c429bbbf70680/server/hosts/servo_host.py
,
Aug 11 2016
,
Aug 29 2016
,
Oct 7 2016
,
Oct 10 2016
,
Nov 19 2016
,
Jan 21 2017
,
Mar 4 2017
,
Apr 17 2017
,
May 30 2017
,
Aug 1 2017
,
Oct 14 2017
|
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by jrbarnette@chromium.org
, Jul 27 2016Labels: -Pri-3 Pri-1
Owner: kevcheng@chromium.org
Status: Available (was: Unconfirmed)