Neil Williams neil.williams@linaro.org writes:
On 6 September 2017 at 14:20, Robert Marshall robert.marshall@codethink.co.uk wrote:
Hi
I have a locally built initramfs which worked with a beaglebone black health check in LAVA 2016-12 but with version 2017-7 the health check is failing. I've tried using an initramfs from http://images.validation.linaro.org/snapshots.linaro.org/components/lava/sta... with 2017-7 and that works ok.
reboot comes from the soft-reboot support which is only active if you have no remote power control for the device. This support is only really useful for developers with devices on the desk, not for a CI instance of LAVA.
We are using it for a device on desk installation of LAVA so maybe health check is the wrong term
It should certainly never be used for a health check. You need commands like https://staging.validation.linaro.org/scheduler/device/staging-black04/devic...
If you are going to use a device which is already running at the start of the job, you need to already login on the console which will be used by the test job itself. In your working version, you should never have seen beaglebone login: or "The programs included with the Debian GNU/Linux system are free software" within the test job.
We're using a device dictionary looking like
{% extends 'beaglebone-black.jinja2' %} {% set connection_command = '/vagrant/scripts/connectBBB.sh 10.24.3.102 8020 root password' %} {% set poweron_command = 'pduclient --daemon 10.24.3.102 --hostname 127.0.0.1 --port 3 --command on' %} {% set poweroff_command = 'pduclient --daemon 10.24.3.102 --hostname 127.0.0.1 --port 3 --command off' %} {% set reboot_command = 'pduclient --daemon 10.24.3.102 --hostname 127.0.0.1 --port 3 --command reboot' %}
where connectBBB.sh scripts a login using expect
Best solution here is to implement remote power control and then you'll get the behaviour on staging:
https://staging.validation.linaro.org/scheduler/job/187593
https://staging.validation.linaro.org/scheduler/job/187593#action_2-4
Also, it is generally much more useful to attach the complete logs with the device configuration instead of doing the comparison offline as that loses a lot of context.
Apologies, here's the full output
http://paste.baserock.org/zikevanugi
Robert