New issue
Advanced search Search tips

Issue 814449 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Syntax error when starting servod

Project Member Reported by haddowk@chromium.org, Feb 21 2018

Issue description

This is from a ToT build of moblab

02/21 10:02:14.020 DEBUG|          autoserv:0264| Trying to start servod.
02/21 10:02:14.232 ERROR|         traceback:0013| Traceback (most recent call last):
02/21 10:02:14.233 ERROR|         traceback:0013|   File "/usr/local/autotest/server/autoserv", line 502, in run_autoserv
02/21 10:02:14.233 ERROR|         traceback:0013|     _start_servod(machines[0])
02/21 10:02:14.234 ERROR|         traceback:0013|   File "/usr/local/autotest/server/autoserv", line 269, in _start_servod
02/21 10:02:14.234 ERROR|         traceback:0013|     servo_host = hosts[0].attributes.get('servo_host', None)
02/21 10:02:14.234 ERROR|         traceback:0013| IndexError: list index out of range
02/21 10:02:14.236 ERROR|          autoserv:0759| Uncaught SystemExit with code 1
 
Cc: dshi@google.com
Looks like this should use get for the hosts rather than hosts[0]

Comment 2 by dshi@chromium.org, Feb 21 2018

Cc: -dshi@google.com
Owner: dgarr...@chromium.org
seems to be some chase bug, leave it to deputy to decide.
I should be clear - this was observed running CTS tests on a local moblab - not in the lab.  I was just tracing some test failures, timeouts in this case and saw this traceback in the logs.
Owner: haddowk@chromium.org
Status: Assigned (was: Untriaged)
Actually I will take this - I read a bit further up in the code and it seems utils.is_moblab is not returning true.
I think this might be being called from the lxc container

02/21 10:00:12.333 DEBUG|             utils:0282| [stdout] 02-21 10:00:12 W/DeqpTestRunner: ADB link failed, trying to recover
02/21 10:01:17.335 DEBUG|             utils:0282| [stdout] 02-21 10:01:17 W/DeqpTestRunner: ADB link failed after recovery, rebooting device
02/21 10:02:13.692 INFO |          autoserv:0685| Results placed in /usr/local/autotest/results/709-moblab/192.168.231.113
02/21 10:02:13.692 DEBUG|          autoserv:0693| autoserv is running in drone localhost.
02/21 10:02:13.693 DEBUG|          autoserv:0694| autoserv command was: /usr/local/autotest/server/autoserv --use-existing-results --collect-crashinfo -m 192.168.231.113 -r /usr/local/autotest/results/709-moblab/192.168.231.113
02/21 10:02:13.694 DEBUG|          base_job:0357| Persistent state global_properties.test_retry now set to 0

Sign in to add a comment