New issue
Advanced search Search tips

Issue 851489 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

update_lab_tools fails

Reported by jrbarnette@chromium.org, Jun 11 2018

Issue description

I just tried to run 'update_lab_tools' and got this error:
Usage: atest server list [options] <server>

atest: error: no such option: --skylab
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/google/home/jrbarnette/repos/cros.lab/chromeos-admin/venv/admin/scripts/ensure_devserver_config.py", line 137, in <module>
    sys.exit(main(sys.argv))
  File "/usr/local/google/home/jrbarnette/repos/cros.lab/chromeos-admin/venv/admin/scripts/ensure_devserver_config.py", line 33, in main
    servers = serverdb.get_servers(environ=args.environment)
  File "/usr/local/google/home/jrbarnette/repos/cros.lab/chromeos-admin/venv/admin/serverdb.py", line 26, in get_servers
    [atest_path, 'server', 'list', '--skylab', '--env', environ, '--json'])
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/local/autotest/cli/atest', 'server', 'list', '--skylab', '--env', 'prod', '--json']' returned non-zero exit status 2

The root of the problem is that the command is invoking
'/usr/local/autotest/cli/atest' rather than finding the `atest` command
in my path.

The problem was introduced recently, with this CL:
    https://chrome-internal-review.googlesource.com/635332

 
Cc: englab-sys-cros@google.com
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 26 2018

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/chromeos/chromeos-admin/+/d915595ed64cffaa5d0632cf7f27ee4a84f203e1

commit d915595ed64cffaa5d0632cf7f27ee4a84f203e1
Author: Allen Li <ayatane@chromium.org>
Date: Tue Jun 26 18:37:49 2018

Status: Fixed (was: Assigned)

Sign in to add a comment