Commit f0b28214 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Neil Williams
Browse files

Remove v1 codebase

Change-Id: I67995e179b726d923e58d1b6df1f8ed10421bf19
parent 043690d9
......@@ -188,7 +188,7 @@ the same definition:
Inline test definition example
==============================
https://git.linaro.org/lava/lava-dispatcher.git/tree/lava_dispatcher/pipeline/test/sample_jobs/kvm-inline.yaml
https://git.linaro.org/lava/lava-dispatcher.git/tree/lava_dispatcher/test/sample_jobs/kvm-inline.yaml
.. code-block:: yaml
......
......@@ -356,7 +356,7 @@ will be tidied up.
* **lava-dispatcher** includes the ``lava_dispatcher`` and ``lava_test_shell``
components. All LAVA V2 dispatcher code lives in
``lava_dispatcher/pipeline``. Some ``lava_test_shell`` scripts remain in the
``lava_dispatcher``. Some ``lava_test_shell`` scripts remain in the
top level ``lava_test_shell`` directory with overrides in
``pipeline/lava_test_shell``.
......
......@@ -166,7 +166,7 @@ examples in the current unit tests.
#. Create a device configuration using the download link of a real device
dictionary which can run the testjob and save this file to
``lava_dispatcher/pipeline/devices``.
``lava_dispatcher/devices``.
#. Add a function to a suitable Factory class to use the device config file to
create a device and use the parser to create a Job instance by following the
......@@ -674,7 +674,7 @@ https://lists.linaro.org/pipermail/lava-announce/2017-June/000032.html
LAVA dispatcher now supports python3 testing but **only** for the pipeline unit
tests. Code changes to the V2 dispatcher code (i.e. in the
``lava_dispatcher/pipeline`` tree) **must** be sufficiently aware of Python3 to
``lava_dispatcher`` tree) **must** be sufficiently aware of Python3 to
not break the unit tests when run using python3.
LAVA is not yet ready to use python 3.x support at runtime, particularly in
......@@ -690,7 +690,7 @@ The ``./ci-run`` script for ``lava-dispatcher`` shows how to run the python3
unit tests::
# to run python3 unit tests, you can use
# python3 -m unittest discover -v lava_dispatcher.pipeline
# python3 -m unittest discover -v lava_dispatcher
# but the python3 dependencies are not automatically installed.
The list of python3 dependencies needed for the pipeline unit tests is
......
......@@ -146,30 +146,30 @@ handed off to cope with particular tools:
Following the code flow
***********************
+------------------------------------------+---------------------------------------------------+
| Filename | Role |
+==========================================+===================================================+
| lava/dispatcher/commands.py | Command line arguments, call to YAML parser |
+------------------------------------------+---------------------------------------------------+
| lava_dispatcher/pipeline/device.py | YAML Parser to create the Device object |
+------------------------------------------+---------------------------------------------------+
| lava_dispatcher/pipeline/parser.py | YAML Parser to create the Job object |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/actions/deploy/ | Handlers for different deployment strategies |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/actions/boot/ | Handlers for different boot strategies |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/actions/test/ | Handlers for different LavaTestShell strategies |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/actions/deploy/image.py | DeployImages strategy creates DeployImagesAction |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/actions/deploy/image.py | DeployImagesAction.populate adds deployment |
| | actions to the Job pipeline |
+------------------------------------------+---------------------------------------------------+
| ***repeat for each strategy*** | each ``populate`` function adds more Actions |
+------------------------------------------+---------------------------------------------------+
| ....pipeline/action.py | ``Pipeline.run_actions()`` to start |
+------------------------------------------+---------------------------------------------------+
+----------------------------------+---------------------------------------------------+
| Filename | Role |
+==================================+===================================================+
| lava/dispatcher/commands.py | Command line arguments, call to YAML parser |
+----------------------------------+---------------------------------------------------+
| lava_dispatcher/device.py | YAML Parser to create the Device object |
+----------------------------------+---------------------------------------------------+
| lava_dispatcher/parser.py | YAML Parser to create the Job object |
+----------------------------------+---------------------------------------------------+
| ....actions/deploy/ | Handlers for different deployment strategies |
+----------------------------------+---------------------------------------------------+
| ....actions/boot/ | Handlers for different boot strategies |
+----------------------------------+---------------------------------------------------+
| ....actions/test/ | Handlers for different LavaTestShell strategies |
+----------------------------------+---------------------------------------------------+
| ....actions/deploy/image.py | DeployImages strategy creates DeployImagesAction |
+----------------------------------+---------------------------------------------------+
| ....actions/deploy/image.py | DeployImagesAction.populate adds deployment |
| | actions to the Job pipeline |
+----------------------------------+---------------------------------------------------+
| ***repeat for each strategy*** | each ``populate`` function adds more Actions |
+----------------------------------+---------------------------------------------------+
| ....action.py | ``Pipeline.run_actions()`` to start |
+----------------------------------+---------------------------------------------------+
The deployment is determined from the device_type specified in the Job (or the
device_type of the specified target) by reading the list of support methods
......
......@@ -88,14 +88,14 @@ lava-dispatcher
::
$ python -m unittest discover lava_dispatcher/pipeline/
$ python -m unittest discover lava_dispatcher/
To run a single test, use the test class name as output by a failing test,
without the call to ``discover``::
$ python -m unittest lava_dispatcher.pipeline.test.test_basic.TestPipelineInit.test_pipeline_init
$ python -m unittest lava_dispatcher.test.test_basic.TestPipelineInit.test_pipeline_init
$ python -m unittest -v -c -f lava_dispatcher.pipeline.test.test_basic.TestPipelineInit.test_pipeline_init
$ python -m unittest -v -c -f lava_dispatcher.test.test_basic.TestPipelineInit.test_pipeline_init
The call references the path to the python module, the class and then the test
function within that class. To run all tests in a class, omit the function. To
......@@ -104,7 +104,7 @@ run all tests in a file, omit the class and the function.
Sets of tests can also be executed from the :file:`./ci-run` script
of ``lava-dispatcher`` as well::
$ ./ci-run --test-suite lava_dispatcher.pipeline.test.test_basic.TestPipelineInit.test_pipeline_init
$ ./ci-run --test-suite lava_dispatcher.test.test_basic.TestPipelineInit.test_pipeline_init
Also, install the updated ``lava-dispatcher`` package and use it to inspect the
output of the pipeline using the ``--validate`` switch to ``lava-dispatch``::
......@@ -398,7 +398,7 @@ Provisos with the current codebase
The code can be executed::
$ sudo lava-dispatch --target kvm01 lava_dispatcher/pipeline/test/sample_jobs/kvm.yaml --output-dir=/tmp/test
$ sudo lava-dispatch --target kvm01 lava_dispatcher/test/sample_jobs/kvm.yaml --output-dir=/tmp/test
* During development, there may be images left mounted at the end of the run.
Always check the output of ``mount``.
......@@ -845,7 +845,7 @@ statements in the device configuration or job submission show up inside the
classes is to use a unit test. To run a single unit-test, for example
test_function in a class called TestExtra in a file called test_extra.py, use::
$ python -m unittest -v -c -f lava_dispatcher.pipeline.test.test_extra.TestExtra.test_function
$ python -m unittest -v -c -f lava_dispatcher.test.test_extra.TestExtra.test_function
Example python code:
......@@ -886,7 +886,7 @@ Use syntax checkers during the refactoring
::
$ sudo apt install pylint
$ pylint -d line-too-long -d missing-docstring lava_dispatcher/pipeline/
$ pylint -d line-too-long -d missing-docstring lava_dispatcher/
Use class analysis tools
========================
......@@ -894,7 +894,7 @@ Use class analysis tools
::
$ sudo apt install graphviz
$ pyreverse lava_dispatcher/pipeline/
$ pyreverse lava_dispatcher/
$ dot -Tpng classes_No_Name.dot > classes.png
(Actual images can be very large.)
......
......@@ -63,7 +63,7 @@ Don't worry about running this example yourself at this stage. The files
themselves may be useful for reference. The device YAML file comes from the
lava-dispatcher unit tests:
https://git.linaro.org/lava/lava-dispatcher.git/tree/lava_dispatcher/pipeline/devices/bbb-01.yaml
https://git.linaro.org/lava/lava-dispatcher.git/tree/lava_dispatcher/devices/bbb-01.yaml
The job submission YAML used in the example comes from the lava-team
refactoring repository of functional tests:
......@@ -72,7 +72,7 @@ https://git.linaro.org/lava-team/refactoring.git/tree/bbb-uboot-ramdisk.yaml
.. code-block:: yaml
device: !!python/object/new:lava_dispatcher.pipeline.device.NewDevice
device: !!python/object/new:lava_dispatcher.device.NewDevice
dictitems:
actions:
boot:
......
......@@ -165,7 +165,7 @@ configuration. These are the raw forms which are used on the ``lava-dispatch``
command line and are useful for debugging and starting to create support for
your own devices.
https://git.linaro.org/lava/lava-dispatcher.git/tree/HEAD:/lava_dispatcher/pipeline
https://git.linaro.org/lava/lava-dispatcher.git/tree/HEAD:/lava_dispatcher
The lava-server unit test support
=================================
......
......@@ -36,7 +36,7 @@ from lava_results_app.models import (
)
from lava_results_app.utils import debian_package_version
from django.core.exceptions import MultipleObjectsReturned
from lava_dispatcher.pipeline.action import Timeout
from lava_dispatcher.action import Timeout
if django.VERSION > (1, 10):
from django.urls.exceptions import NoReverseMatch
......
......@@ -22,9 +22,9 @@ from lava_results_app.dbutils import (
export_testcase,
)
from lava_results_app.models import ActionData, MetaType, TestData, TestCase, TestSuite
from lava_dispatcher.pipeline.parser import JobParser
from lava_dispatcher.pipeline.device import PipelineDevice
from lava_dispatcher.pipeline.test.test_defs import allow_missing_path
from lava_dispatcher.parser import JobParser
from lava_dispatcher.device import PipelineDevice
from lava_dispatcher.test.test_defs import allow_missing_path
if django.VERSION > (1, 10):
from django.urls.exceptions import NoReverseMatch
......
......@@ -84,6 +84,7 @@ class SchedulerAPI(ExposedAPI):
job = testjob_submission(job_data, self.user)
except SubmissionException as exc:
raise xmlrpclib.Fault(400, "Problem with submitted job data: %s" % exc)
# FIXME: json error is not needed anymore
except (JSONDataError, JSONDecodeError, ValueError) as exc:
raise xmlrpclib.Fault(400, "Decoding job submission failed: %s." % exc)
except (Device.DoesNotExist, DeviceType.DoesNotExist):
......
......@@ -27,7 +27,7 @@ from lava_scheduler_app.models import (
)
from lava_scheduler_app.schema import SubmissionException
from lava_results_app.dbutils import map_metadata
from lava_dispatcher.pipeline.device import PipelineDevice
from lava_dispatcher.device import PipelineDevice
# pylint: disable=too-many-branches,too-many-statements,too-many-locals
......@@ -153,6 +153,7 @@ def submit_health_check_jobs():
pass
# TODO: check the list of exception that can be raised
def testjob_submission(job_definition, user, check_device=None, original_job=None):
"""
Single submission frontend for YAML
......
......@@ -106,11 +106,8 @@ class Tag(models.Model):
def validate_job(data):
try:
# only try YAML if this is not JSON
# YAML can parse JSON as YAML, JSON cannot parse YAML at all
yaml_data = yaml.load(data)
except yaml.YAMLError as exc:
# neither yaml nor json loaders were able to process the submission.
raise SubmissionException("Loading job submission failed: %s." % exc)
# validate against the submission schema.
......
compatibility: 2
device: !!python/object/new:lava_dispatcher.pipeline.device.PipelineDevice
device: !!python/object/new:lava_dispatcher.device.PipelineDevice
dictitems:
actions:
boot:
......@@ -78,7 +78,7 @@ job: &id006
default_action_timeout: 180.0
default_connection_timeout: 300.0
default_test_timeout: 30
deployment_data: !!python/object:lava_dispatcher.pipeline.deployment_data.deployment_data_dict
deployment_data: !!python/object:lava_dispatcher.deployment_data.deployment_data_dict
__data__: &id002 {TESTER_PS1: 'linaro-test [rc=$(echo \$?)]# ', TESTER_PS1_INCLUDES_RC: true,
TESTER_PS1_PATTERN: 'linaro-test \[rc=(\d+)\]# ', boot_cmds: boot_cmds,
distro: debian, lava_test_dir: /lava-%s, lava_test_results_dir: /lava-%s,
......@@ -166,7 +166,7 @@ job: &id006
visibility: public
yaml_line: 1
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 300.0,
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 300.0,
name: deploy, protected: false}
data: &id003
auto-login-action: {}
......@@ -208,12 +208,12 @@ pipeline:
parameters:
deployment_data: *id002
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: deploy, protected: false}
data: *id003
description: add lava scripts during deployment for test shell use
lava_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
level: '1.1'
log_filename: !!python/unicode '/var/lib/lava-server/default/media/job-output/job-9722/1/1.1-lava-overlay.log'
max_retries: 1
......@@ -221,7 +221,7 @@ pipeline:
parameters:
deployment_data: *id002
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: include public key in overlay and authorize root user
......@@ -235,12 +235,12 @@ pipeline:
summary: add public key to authorized_keys
timeout: {duration: 30.0, name: ssh-authorize}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: deploy, protected: false}
data: *id003
description: Populate specific vland scripts for tests to lookup vlan data.
lava_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
lava_vland_cache_file: /tmp/lava_vland_cache.txt
lava_vland_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/vland
level: 1.1.2
......@@ -271,18 +271,18 @@ pipeline:
section: deploy
summary: Add files detailing vlan configuration.
timeout: {duration: 30.0, name: lava-vland-overlay}
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-runner]
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-runner]
valid: true
xmod: 493
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: deploy, protected: false}
data: *id003
description: add lava scripts during deployment for multinode test shell use
lava_multi_node_cache_file: /tmp/lava_multi_node_cache.txt
lava_multi_node_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/multi_node
lava_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell
lava_v2_test_dir: /usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell
level: 1.1.3
log_filename: !!python/unicode '/var/lib/lava-server/default/media/job-output/job-9722/1/1.1.3-lava-multinode-overlay.log'
max_retries: 1
......@@ -312,11 +312,11 @@ pipeline:
section: deploy
summary: overlay the lava multinode scripts
timeout: {duration: 30.0, name: lava-multinode-overlay}
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-runner]
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-runner]
valid: true
xmod: 493
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: load test definitions into image
......@@ -327,7 +327,7 @@ pipeline:
parameters:
deployment_data: *id002
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
default_fixupdict: {FAIL: fail, PASS: pass, SKIP: skip, UNKNOWN: unknown}
......@@ -346,7 +346,7 @@ pipeline:
uuid: a042a252-e4a7-4553-adc9-846869de9f2e
valid: true
vcs: git://git.linaro.org/lava-team/lava-functional-tests.git
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay test support files onto image
......@@ -361,7 +361,7 @@ pipeline:
test_uuid: a042a252-e4a7-4553-adc9-846869de9f2e
timeout: {duration: 30.0, name: test-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay dependency installation support files onto image
......@@ -377,7 +377,7 @@ pipeline:
test_uuid: a042a252-e4a7-4553-adc9-846869de9f2e
timeout: {duration: 30.0, name: test-install-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay run script onto image
......@@ -392,7 +392,7 @@ pipeline:
test_uuid: a042a252-e4a7-4553-adc9-846869de9f2e
timeout: {duration: 30.0, name: test-runscript-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
default_fixupdict: {FAIL: fail, PASS: pass, SKIP: skip, UNKNOWN: unknown}
......@@ -410,7 +410,7 @@ pipeline:
timeout: {duration: 30.0, name: inline-repo-action}
uuid: 14e5cacf-7167-4f54-af2d-173e0bdf83af
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay test support files onto image
......@@ -425,7 +425,7 @@ pipeline:
test_uuid: 14e5cacf-7167-4f54-af2d-173e0bdf83af
timeout: {duration: 30.0, name: test-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay dependency installation support files onto image
......@@ -441,7 +441,7 @@ pipeline:
test_uuid: 14e5cacf-7167-4f54-af2d-173e0bdf83af
timeout: {duration: 30.0, name: test-install-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: test, protected: false}
data: *id003
description: overlay run script onto image
......@@ -462,7 +462,7 @@ pipeline:
- *id004
timeout: {duration: 30.0, name: test-definition}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: Create a lava overlay tarball and store alongside the job
......@@ -476,7 +476,7 @@ pipeline:
summary: Compress the lava overlay files
timeout: {duration: 30.0, name: compress-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: unpack overlay into persistent NFS
......@@ -511,11 +511,11 @@ pipeline:
section: deploy
summary: overlay the lava support scripts
timeout: {duration: 30.0, name: lava-overlay}
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/lava_test_shell/lava-test-runner]
v2_scripts_to_copy: [/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-case,
/usr/lib/python2.7/dist-packages/lava_dispatcher/lava_test_shell/lava-test-runner]
valid: true
xmod: 493
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: copy the overlay over an existing ssh connection
......@@ -527,7 +527,7 @@ pipeline:
parameters:
deployment_data: *id002
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: unpack rootfs
......@@ -545,7 +545,7 @@ pipeline:
timeout: {duration: 30.0, name: extract-rootfs}
use_tarfile: true
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: extract supplied kernel modules
......@@ -563,7 +563,7 @@ pipeline:
summary: scp the overlay to the remote device
timeout: {duration: 30.0, name: prepare-scp-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: deploy device environment
......@@ -582,7 +582,7 @@ pipeline:
summary: copy overlay to device
timeout: {duration: 30.0, name: scp-overlay}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 300.0,
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 300.0,
name: null, protected: false}
data: *id003
description: connect over ssh and ensure a shell is found
......@@ -594,7 +594,7 @@ pipeline:
- command: [ssh, -o, Compression=yes, -o, PasswordAuthentication=no, -o, LogLevel=FATAL,
-o, UserKnownHostsFile=/dev/null, -o, StrictHostKeyChecking=no, -i, /usr/lib/python2.7/dist-packages/lava_dispatcher/device/dynamic_vm_keys/lava,
-p, '22']
connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: copy a file to a known device using scp
......@@ -613,7 +613,7 @@ pipeline:
summary: scp over the ssh connection
timeout: {duration: 180.0, name: scp-deploy}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: determine which address to use for primary or secondary connections
......@@ -628,7 +628,7 @@ pipeline:
- command: [ssh, -o, Compression=yes, -o, PasswordAuthentication=no, -o, LogLevel=FATAL,
-o, UserKnownHostsFile=/dev/null, -o, StrictHostKeyChecking=no, -i, /usr/lib/python2.7/dist-packages/lava_dispatcher/device/dynamic_vm_keys/lava,
-p, '22']
connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: login to a known device using ssh
......@@ -649,7 +649,7 @@ pipeline:
- check_prompt_characters_warning: The string '%s' does not look like a typical
prompt and could match status messages instead. Please check the job log files
and use a prompt string which matches the actual prompt string more closely.
connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: automatically login after boot using job parameters
......@@ -662,7 +662,7 @@ pipeline:
timeout: {duration: 180.0, name: auto-login-action}
valid: true
- compatibility: 2
connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: Wait for a shell
......@@ -674,7 +674,7 @@ pipeline:
summary: Expect a shell prompt
timeout: {duration: 180.0, name: expect-shell-connection}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: Exports environment variables to the device
......@@ -687,7 +687,7 @@ pipeline:
summary: Exports environment variables action
timeout: {duration: 180.0, name: export-device-env}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: unpack the overlay over an existing ssh connection
......@@ -704,7 +704,7 @@ pipeline:
summary: login over ssh
timeout: {duration: 180.0, name: login-ssh}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 300.0,
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 300.0,
name: test, protected: false}
data: *id003
description: Executing lava-test-runner
......@@ -719,16 +719,16 @@ pipeline:
job_id: 9722
name: lava-multinode
parameters: *id006
poll_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 30,
poll_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 30,
name: lava-multinode, protected: false}
system_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 900.0,
system_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 900.0,
name: system, protected: false}
valid: true
section: test
summary: Multinode Lava Test Shell
timeout: {duration: 300.0, name: multinode-test}
valid: true
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {duration: 30,
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {duration: 30,
name: null, protected: false}
data: *id003
description: finish the process and cleanup
......@@ -737,7 +737,7 @@ pipeline:
max_retries: 1
name: finalize
pipeline:
- connection_timeout: !!python/object:lava_dispatcher.pipeline.action.Timeout {
- connection_timeout: !!python/object:lava_dispatcher.action.Timeout {
duration: 300.0, name: null, protected: false}
data: *id003
description: discontinue power to device
......
......@@ -13,7 +13,7 @@ from lava_scheduler_app.models import (
TestJob,
Worker
)
from lava_dispatcher.pipeline.utils.shell import infrastructure_error
from lava_dispatcher.utils.shell import infrastructure_error
class MasterTest(TestCaseWithFactory): # pylint: disable=too-many-ancestors
......