New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 723005 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: May 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

errors at running run_server_task

Project Member Reported by nxia@chromium.org, May 16 2017

Issue description

nxia@nxia:~/chromiumos/chromeos-admin$ bin/run_server_task  -h
ERROR:root:Task Python file tasks/atomic_common.py failed to import.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, 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/nxia/chromiumos/chromeos-admin/venv/server_management_lib/interfaces/run_server_task.py", line 18, in <module>
    from server_management_lib.core import settings_manager
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/core/__init__.py", line 13, in <module>
    settings_manager.load_task_classes()
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/core/settings_manager.py", line 57, in load_task_classes
    task_classes = settings_loader.load_task_classes(task_registry_file)
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/core/settings_loader.py", line 155, in load_task_classes
    _load_task_classes_from_python_files(task_classes, python_files)
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/core/settings_loader.py", line 68, in _load_task_classes_from_python_files
    imp.load_source(module_name, full_file_path)
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/tasks/atomic_common.py", line 39, in <module>
    autotest.setup_autotest()
  File "/usr/local/google/home/nxia/chromiumos/chromeos-admin/venv/server_management_lib/tasks/autotest.py", line 22, in setup_autotest
    import setup_modules
ImportError: No module named setup_modules

 

Comment 1 by nxia@chromium.org, May 16 2017

Labels: -Pri-1 Pri-2
Turns out I need to setup a local autotest, can you please add this prerequisite step to the shard management page?
Status: Fixed (was: Untriaged)
Will add later when I change the doc to update the new interface

Comment 3 by nxia@chromium.org, May 22 2017

Was the instruction updated? Going to move oak-paladin. Will it be affected by the command change?
why is this related to server lib? The instruction was not updated since I still have change to be made. If you want to move a board (server lib cannot handle move builder), use ShardRemoveFromProductionMasterTask

Comment 5 by nxia@chromium.org, May 22 2017

I mean moving oak-paladin from its current shard to skunk1

Sign in to add a comment