New issue
Advanced search Search tips

Issue 918931 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

[Interop Lab] Test fails and leaves AP powered ON

Project Member Reported by harpreet@chromium.org, Jan 3

Issue description

When a test fails to find a given SSID, it fails with the below exception and exits without proper cleanup including powering OFF APs.

01/02 18:39:15.694 ERROR|        server_job:0825| Exception escaped control file, job aborting:
Traceback (most recent call last):
  File "/usr/local/autotest/server/server_job.py", line 817, in run
    self._execute_code(server_control_file, namespace)
  File "/usr/local/autotest/server/server_job.py", line 1340, in _execute_code
    execfile(code_file, namespace, namespace)
  File "/usr/local/autotest/results/lxc_job_folder/control.srv", line 37, in <module>
    parallel_simple(run_chaos_static, machines)
  File "/usr/local/autotest/server/subcommand.py", line 98, in parallel_simple
    function(arg)
  File "/usr/local/autotest/results/lxc_job_folder/control.srv", line 35, in run_chaos_static
    runner.run(job)
  File "/usr/local/autotest/server/cros/chaos_lib/static_runner.py", line 155, in run
    ap, capturer, job, self._ap_spec)
  File "/usr/local/autotest/server/cros/network/chaos_clique_utils.py", line 313, in return_available_networks
    networks = scan_for_networks(ap.ssid, capturer, ap_spec)
  File "/usr/local/autotest/server/cros/network/chaos_clique_utils.py", line 297, in scan_for_networks
    desc='Timed out getting IWBSSes')
  File "/usr/local/autotest/client/common_lib/utils.py", line 2771, in poll_for_condition
    raise TimeoutError(message=desc)
TimeoutError: Timed out waiting for condition: Timed out getting IWBSSes
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jan 4

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/ee94d0508d805f6787117e78f4cbdd5650485825

commit ee94d0508d805f6787117e78f4cbdd5650485825
Author: harpreet <harpreet@google.com>
Date: Fri Jan 04 20:46:39 2019

[Interop Lab] Catch timeout exception

Handle timeout exception so the test does not exit without proper
cleanup including powering OFF APs.

BUG=chromium:918931
TEST=Tested against an AP in the lab.

Change-Id: I0a04508edf3f91448c550b82186feb192ed71431
Reviewed-on: https://chromium-review.googlesource.com/1394756
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Harpreet Grewal <harpreet@chromium.org>
Reviewed-by: Shijin Abraham <shijinabraham@google.com>

[modify] https://crrev.com/ee94d0508d805f6787117e78f4cbdd5650485825/server/cros/network/chaos_clique_utils.py

Sign in to add a comment