ALWAYS keep the list in CC please.
On 7 July 2017 at 10:28, Chetan Sharma chetan.sharma@timesys.com wrote:
Hi Neil
Thanks for sharing detailed information to work with LXC.
- I am following sample pipeline job with BBB.
https://git.linaro.org/lava/lava-dispatcher.git/tree/lava_dispatcher/pipelin...
I have modified this job details with following value, but i am getting an
Error as ['Invalid job - missing protocol']
Check with the valid job:
https://staging.validation.linaro.org/scheduler/job/178130
As i have defined protocol as "lava-lxc" which is valid protocol, But job
object does not have any protocol details, i have verified by printing
details of self.job.protocols is []
Then that is an invalid job. Your modifications have got something
wrong. There are a lot of changes in your file against the example.
Change only one thing at a time.
- How test action execute on lxc and device ?
Run a test action in the same namespace as the LXC. In the case of the
example, namespace: probe.
https://staging.validation.linaro.org/scheduler/job/178130/definition#deflin...
Can we execute test action in this process
First lxc test action execute ---> Device1 test action execution start
-> Device2 test action execution start
==================================================
device_type: beaglebone-black
job_name: LXC and bbb
Please attach files to emails to the list. There's no need to quote
the entire file to the list.
Take time to understand namespaces. The LXC is transparent and the
namespaces are used to tie the different actions together into one
sequence in the LXC and one sequence for the test device.
LXC protocol support is not the same as MultiNode - operations happen
in series. The LXC protocol is not a substitute for MultiNode either.
If you need parallel execution, you have to use MultiNode.
Split up your test shell definitions if necessary.
Also, attach (not include) the full test job log because that contains
details of the package versions being used and other information.
On Fri, Jul 7, 2017 at 1:32 PM, Neil Williams neil.williams@linaro.org
wrote:
On 7 July 2017 at 07:23, Chetan Sharma chetan.sharma@timesys.com wrote:
Hi Everyone
Hopefully everyone is doing well in this group.
Main intend of writing this email to seek assistance in regard to
one
feature of Lava as lava-lxc which help to create a LXC instance on
worker
https://staging.validation.linaro.org/scheduler/job/174215/definition#deflin...
and then we can execute any script on worker and propagate its
characteristics and result in another actions of Job on board.
That isn't entirely clear. What are you trying to do in the LXC?
You need to deploy an LXC, start it with a boot action for the LXC and
then start a test shell in the LXC where you can install the tools you
need to execute.
Talking to the device from the LXC can be difficult depending on how
the device is configured. To use networking, you would have to have a
fixed IP for the device. To use USB, you need to use the device_info
support in the device dictionary to add the USB device to the LXC.
I have gone through documentation shared on Lava V2 instance for
LXC
job creation, but i am not able to successfully execute job on Debian
Jessie
Release.
https://validation.linaro.org/static/docs/v2/deploy-lxc.html#index-0
Can you assist me and share a reference process/document to proceed
further to create a job using this feature.
More information is needed on exactly what you are trying to do, how
the LXC is to connect to the device and what support the device offers
to allow for those operations.
--
Neil Williams
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/
--
Thanks & Regards
Chetan Sharma
--
Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/