Discussion:
[Linaro-validation] simple ssh device boot up.
Thomas Klaehn
2018-03-26 13:19:23 UTC
Permalink
Hello,

I'm quite new to Lava.
As a companion device for a network test I need to just boot up a device (raspberry), login (ssh) and start a tool. No deployment is needed. The switch on/off is still working.
As far as I understood my device dictionary needs to extend ssh.jinja, isn't it? Beside the power commands - which parameter I need to define here? And what do I need to define in the Lava test job?
I assume something like this is still solved. Is there probably an example available?

Best regards,
Thomas
Neil Williams
2018-03-26 14:05:44 UTC
Permalink
On Mon, 26 Mar 2018 13:19:23 +0000
Post by Thomas Klaehn
Hello,
I'm quite new to Lava.
As a companion device for a network test I need to just boot up a
device (raspberry), login (ssh) and start a tool. No deployment is
needed. The switch on/off is still working. As far as I understood my
device dictionary needs to extend ssh.jinja, isn't it? Beside the
power commands - which parameter I need to define here? And what do I
need to define in the Lava test job? I assume something like this is
still solved. Is there probably an example available?
Please read the docs on avoiding simplistic testing - deployment will
be needed for this to be a part of a CI process. Please avoid thinking
of ssh as a shortcut. Primary SSH is not recommended.

https://staging.validation.linaro.org/static/docs/v2/simple-admin.html#problems-with-simplistic-testing

As a second device involved in a test, then you could just manage the
SSH operations from within the test shell definition and use the pi as a
network device, not a test device. Then ensure that you handle *all*
the complications of persistence and locking on the pi which is then
left running as a piece of infrastructure, like a packet switch or PDU.
Configure the keys yourself, give the pi a static IP and use it that
way.

BTW - you may find that the lava-users mailing list is more suitable
for this kind of enquiry.
--
Neil Williams
=============
http://www.linux.codehelp.co.uk/
Loading...