On 22 February 2018 at 12:58, Hemanth K V kv.hemanth.mys@gmail.com wrote:
Thanks for the support. Issue was with the default shutdown message was different then what was default "shutdown-message: '{{ shutdown_message | default("The system is going down for reboot NOW") }}'".
Yes I've just had a look at your logs and that's the fix I was going to suggest. You should look into real power control for reliability, but I'm glad it's now working for you!
After updating correctly was able to proceed.
Thanks, Hemanth.
On Thu, Feb 22, 2018 at 11:35 AM, Hemanth K V kv.hemanth.mys@gmail.com wrote:
Hello Matt,
Thanks for the pointer.Now I have updated the lava version on y Debian 9 host
tester@debiantest:/usr/lib$ dpkg -l lava-server ||/ Name Version Architecture Description
+++-==============================================-============================-============================-================================================================================================== ii lava-server 2018.2-1+stretch all Linaro Automated Validation Architecture server
Another basic question here is can the default python version be 2.7 or it should be python3? tester@debiantest:/usr/lib$ python --version Python 2.7.13
Now with the job definition specified it is proceeding but it fails to send Ctrl+B command when target reboots
[ 767.466983] reboot: machine restart TSrs;;e1 Srs;;e1 RSrs;;e1 ok Matt hacked colour fix -- iPXE 1.0.0+ (8dd18) -- Open Source Network Boot Firmware -- http://ipxe.org Features: HTTP iSCSI DNS TFTP AoE SRP bzImage ELF MBOOT PXE PXEXT Menu Press Ctrl-B for the iPXE command line... net0: 74:fe:48:1d:93:df using i210 on PCI03:00.0 (open) [Link:down, TX:0 TXE:0 RX:0 RXE:0]
Attached joboutput.txt is the complete job output.
Thanks, Hemanth.
On Wed, Feb 21, 2018 at 3:29 PM, Matt Hart matthew.hart@linaro.org wrote:
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
+++-=============================================-===========================-===========================-=============================================================================================== 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.
Why don't you need power control? What turns the device on/off?
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 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#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 > > -- > > 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