Hi,
I've installed LAVA and created 'qemu' device type.
$ sudo lava-server manage add-device-type '*' $ sudo lava-server manage add-device --device-type qemu qemu01
Then, I downloaded an example of yaml to submit a job for the qemu image.
$ wget https://staging.validation.linaro.org/static/docs/v2/examples/test-jobs/qemu... ./ $ lava-tool submit-job http://<name>@localhost qemu-pipeline-first-job.yaml
The error is found during running 'image.py'. (http://woogyom.iptime.org/scheduler/job/15)
Traceback (most recent call last): File "/usr/bin/lava", line 9, in <module> load_entry_point('lava-tool==0.14', 'console_scripts', 'lava')() File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 153, in run raise SystemExit(cls().dispatch(args)) File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 143, in dispatch return command.invoke() File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 216, in invoke job_runner, job_data = self.parse_job_file(self.args.job_file, oob_file) File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 265, in parse_job_file env_dut=env_dut) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 165, in parse test_action, counts[name]) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 66, in parse_action Deployment.select(device, parameters)(pipeline, parameters) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/logical.py", line 203, in select willing = [c for c in candidates if c.accepts(device, parameters)] File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/image.py", line 116, in accepts if 'image' not in device['actions']['deploy']['methods']: KeyError: 'actions' Traceback (most recent call last): File "/usr/bin/lava", line 9, in <module> load_entry_point('lava-tool==0.14', 'console_scripts', 'lava')() File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 153, in run raise SystemExit(cls().dispatch(args)) File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 143, in dispatch return command.invoke() File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 216, in invoke job_runner, job_data = self.parse_job_file(self.args.job_file, oob_file) File "/usr/lib/python2.7/dist-packages/lava/dispatcher/commands.py", line 265, in parse_job_file env_dut=env_dut) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 165, in parse test_action, counts[name]) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/parser.py", line 66, in parse_action Deployment.select(device, parameters)(pipeline, parameters) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/logical.py", line 203, in select willing = [c for c in candidates if c.accepts(device, parameters)] File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/image.py", line 116, in accepts if 'image' not in device['actions']['deploy']['methods']: KeyError: 'actions'
It seems no 'methods' is found under actions->deploy block on parsing the yaml file but I'm not sure this error means wrong yaml usage or not.
Best regards, Milo
On 26 December 2016 at 15:38, Milo Kim woogyom.kim@gmail.com wrote:
Hi,
I've installed LAVA and created 'qemu' device type.
There was a change in between 2016.11 and the current release 2016.12 which is due to be uploaded to jessie-backports today.
Compare your job with: https://validation.linaro.org/scheduler/job/1283820
That definition is available at https://validation.linaro.org/static/docs/v2/first-job.html#job-definition
(That instance is currently running 2016.11.post1)
It might be that you have a different version of lava-dispatcher installed on the worker to the version on the master?
This is the equivalent job run on staging (2016.12) https://staging.validation.linaro.org/scheduler/job/158724
https://staging.validation.linaro.org/static/docs/v2/first-job.html#job-defi...
$ sudo lava-server manage add-device-type '*' $ sudo lava-server manage add-device --device-type qemu qemu01
Then, I downloaded an example of yaml to submit a job for the qemu image.
$ wget https://staging.validation.linaro.org/static/docs/v2/examples/test-jobs/qemu... ./ $ lava-tool submit-job http://<name>@localhost qemu-pipeline-first-job.yaml The error is found during running 'image.py'. (http://woogyom.iptime.org/scheduler/job/15)
File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/deploy/image.py", line 116, in accepts if 'image' not in device['actions']['deploy']['methods']:
KeyError: 'actions'
It seems no 'methods' is found under actions->deploy block on parsing the yaml file but I'm not sure this error means wrong yaml usage or not.
It looks like the master is preparing a YAML file for the device which requires a newer version of lava-dispatcher than is installed on the worker.
Thanks for checking this.
On 01/03/2017 05:29 PM, Neil Williams wrote:
There was a change in between 2016.11 and the current release 2016.12 which is due to be uploaded to jessie-backports today.
Compare your job with: https://validation.linaro.org/scheduler/job/1283820
That definition is available at https://validation.linaro.org/static/docs/v2/first-job.html#job-definition
(That instance is currently running 2016.11.post1)
It might be that you have a different version of lava-dispatcher installed on the worker to the version on the master?
According to the page[*], 2016.11 runs on the system.
[*] http://woogyom.iptime.org/static/docs/v2/lava-scheduler.html
This is the equivalent job run on staging (2016.12) https://staging.validation.linaro.org/scheduler/job/158724
https://staging.validation.linaro.org/static/docs/v2/first-job.html#job-defi...
However, it seems both links have the same description.
https://validation.linaro.org/static/docs/v2/first-job.html#job-definition
https://staging.validation.linaro.org/static/docs/v2/first-job.html#job-defi...
Best regards, Milo
On 3 January 2017 at 08:59, Milo Kim woogyom.kim@gmail.com wrote:
Thanks for checking this.
On 01/03/2017 05:29 PM, Neil Williams wrote:
There was a change in between 2016.11 and the current release 2016.12 which is due to be uploaded to jessie-backports today.
Compare your job with: https://validation.linaro.org/scheduler/job/1283820
That definition is available at https://validation.linaro.org/static/docs/v2/first-job.html#job-definition
(That instance is currently running 2016.11.post1)
It might be that you have a different version of lava-dispatcher installed on the worker to the version on the master?
According to the page[*], 2016.11 runs on the system.
[*] http://woogyom.iptime.org/static/docs/v2/lava-scheduler.html
That just shows the version of lava-server installed on the system.
You could also check the qemu.jinja2 template in /etc/lava-server/dispatcher-config/device-types/ as you may have local changes.
This is the equivalent job run on staging (2016.12) https://staging.validation.linaro.org/scheduler/job/158724
https://staging.validation.linaro.org/static/docs/v2/first-job.html#job-defi...
However, it seems both links have the same description.
https://validation.linaro.org/static/docs/v2/first-job.html#job-definition
https://staging.validation.linaro.org/static/docs/v2/first-job.html#job-defi...
Yes, which shows that any problems lie in the device configuration.