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 .
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
Device dictionary yaml: 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.
https://staging.validation.linaro.org/static/docs/v2/first-devices.html#chec...
{% 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.
Compare with https://staging.validation.linaro.org/scheduler/device/staging-x86-01