Hi Hemanth
On 21 February 2018 at 08:59, Hemanth K V <kv.hemanth.mys@gmail.com> wrote:
> Hello Neil,
>
> Attached is job defination.
>
> Lava server and dispatcher version is 2016.12-2
I wrote the iPXE support but with such an old version it's almost
impossible to help you here, as I don't remember the state of the code
at that time.
>
> tester@debiantest:~$ dpkg -l lava-server
> ||/ Name Version
> Architecture Description
> +++-=============================================-========== Why don't you need power control? What turns the device on/off?=================-============ ===============-============== ============================== ============================== =====================
> ii lava-server 2016.12-2
> all Linaro Automated Validation Architecture server
>
> Thanks,
> Hemanth.
>
> On Wed, Feb 21, 2018 at 1:35 PM, Neil Williams <neil.williams@linaro.org>
> wrote:
>>
>> 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/ .With210084/definition
>>>>> this facing the following error when running the job.Let me know if i am
>>>>> missing anything with job defination or device defination .
Please note that iPXE != PXE. True PXE would require LAVA to control a
DHCP server etc, which it does not.
iPXE is really just a bootloader.
> ______________________________
>>
>>
>> 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
>>>>>
>>>>> 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#check- existing-instances
>>>>
>>>> {% 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
>>>>
>>>> --
>>>>
>>>> Neil Williams
>>>> =============
>>>> neil.williams@linaro.org
>>>> http://www.linux.codehelp.co.uk/
>>>
>>>
>>
>>
>>
>> --
>>
>> Neil Williams
>> =============
>> neil.williams@linaro.org
>> http://www.linux.codehelp.co.uk/
>
>
>
_________________
> Lava-users mailing list
> Lava-users@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lava-users
>