On 21 February 2018 at 07:48, Hemanth K V <kv.hemanth.mys@gmail.com> wrote:
Hello Neil,

Thanks for quick response.

The device dictionary used is as follows

{% extends 'x86.jinja2' %}
{% set connection_command = 'telnet localhost 8021' %}

Initially don't need remote power connections hence using as above.
I had tried similar thing for Beaglebone black and was successful in booting the beaglebone black through nfs and running tests.
The device dictionary used for beaglebone black

{% extends 'beaglebone-black.jinja2' %}
{% set connection_command = 'telnet localhost 8020' %}

Thanks,
Hemanth.


On Wed, Feb 21, 2018 at 12:58 PM, Neil Williams <neil.williams@linaro.org> wrote:
On 21 February 2018 at 07:10, Hemanth K V <kv.hemanth.mys@gmail.com> wrote:
Hello Lava Users,

Trying to setup the x86 based board to our local lava farm to execute tests.
Want to boot the target with pxe based mechanism .Trying to follow the job definition https://staging.validation.linaro.org/scheduler/job/210084/definition .With this facing the following error when running the job.Let me know if i am missing anything with job defination or device defination .

Please attach the test job definition.

Please also specify which version of LAVA you are using. (Run: dpkg -l lava-server lava-dispatcher)
 


File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/action.py", line 563, in validate self.internal_pipeline.validate_actions() File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/action.py", line 201, in validate_actions action.validate() File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/actions/boot/ipxe.py", line 221, in validate elif self.parameters['commands'] not in device_methods[self.parameters['method']]: TypeError: unhashable type: 'list'


Device dictionary defination is

connection_command: telnet localhost 8021
extends: x86.jinja2

The device dictionary lives in /etc/lava-server/dispatcher-config/devices and needs to be Jinja2 syntax.


{% extends 'x86.jinja2' %}
{% set hard_reset_command = '/usr/local/lab-scripts/snmp_pdu_control --port 5 --hostname pdu15 --command reboot' %}
{% set power_off_command = '/usr/local/lab-scripts/snmp_pdu_control --port 5 --hostname pdu15 --command off' %}
{% set connection_command = 'telnet serial4 7015' %}
{% set power_on_command = '/usr/local/lab-scripts/snmp_pdu_control --port 5 --hostname pdu15 --command on' %}

Note the remote power commands also.


--




--