It seems linked to debian, lava-add-sources is well installed with this os.
-----Original Message----- From: Neil Williams [mailto:neil.williams@linaro.org] Sent: mardi 11 avril 2017 15:53 To: Denis HUMEAU denis.humeau@st.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Package installation from Lava job
On 11 April 2017 at 14:37, Denis HUMEAU denis.humeau@st.com wrote:
Here are the definition and log file.
Lava version is the latest one, but I'm still missing something to have lava-add-sources installed.
Latest for jessie-backports is 2016.12 - it looks like this is the version you are running as it doesn't put the installed lava-dispatcher version string into the test job log.
As per the lava-announce link, further releases can only be made via the LAVA repositories, which would now bring you to 2017.4
https://lists.linaro.org/pipermail/lava-announce/2017-February/000025.html https://validation.linaro.org/static/docs/v2/installing_on_debian.html#lava-...
I don't have an OE rootfs to test with the b2260 available to me in staging. I only have a Debian rootfs via KernelCI. If you could upload the rootfs to a public location, I could try to reproduce your test job on staging. 96boards doesn't build a rootfs based on OE.
Alternatively, try testing with the Debian rootfs locally.
ramdisk: url: http://images.validation.linaro.org/storage.kernelci.org/images/rootfs/build... compression: gz os: debian
Denis
-----Original Message----- From: Neil Williams [mailto:neil.williams@linaro.org] Sent: mardi 11 avril 2017 14:26 To: Denis HUMEAU denis.humeau@st.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Package installation from Lava job
On 11 April 2017 at 12:51, Denis HUMEAU denis.humeau@st.com wrote:
Hello Neil,
Here is the whole job, without formatting, sorry.
(Next time, use the plain log download link to get just the log file rather than the HTML source of the entire page). e.g. https://staging.validation.linaro.org/scheduler/job/169652/log_file/pl ain from the Actions menu on the right hand side.
Also, for this question, you need to attach the test job definition as well - the part you submitted to LAVA originally. e.g. https://staging.validation.linaro.org/scheduler/job/169652/definition
- Make sure you are specifying the deployment OS as OE.
https://staging.validation.linaro.org/scheduler/job/169050/definition# defline45
What version of LAVA are you running? lava-add-sources is indeed not being added to your overlay. That was fixed after Debian Jessie was released. Compare with https://staging.validation.linaro.org/scheduler/job/169591#L111 (which is actually a test job on a b2260, but it uses a Debian image, so the sources aren't used).
You need to enable jessie-backports, then upgrade. https://staging.validation.linaro.org/static/docs/v2/installing_on_deb ian.html#f3 https://staging.validation.linaro.org/static/docs/v2/installing_on_deb ian.html#installing-on-debian-jessie
(Always include the version of LAVA in questions. Recent versions embed the version string into the test job log files.)
https://staging.validation.linaro.org/scheduler/job/169652#L0
I do agree that I will need opkg, but prior to this it seems I miss a copy of lava-add-sources.
Denis
-----Original Message----- From: Neil Williams [mailto:neil.williams@linaro.org] Sent: mardi 11 avril 2017 13:03 To: Denis HUMEAU denis.humeau@st.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Package installation from Lava job
On 11 April 2017 at 11:13, Denis HUMEAU denis.humeau@st.com wrote:
Dear all,
This is my first post on the mailing list, I hope I’m at the right place.
Yes, you are.
Using Lava V2, I’m trying to install packages in the DUT following the guidelines from
https://validation.linaro.org/static/docs/v2/writing-tests.html#test
d efinition-yaml
In this case, it is the test job definition which will be of most interest.
My job looks like this:
(Test Shell Definition)
metadata:
(…)
install: sources: - http://<local_network_package_server>/sti - http:// <local_network_package_server>/all - http:// <local_network_package_server>/cortexa9hf-neon deps: - python-pytest - python-lxml - packagegroup-core-buildessential*
run: steps: - step1 - step2
Running this test, I get the following error:
<LAVA_TEST_RUNNER>: started<LAVA_TEST_RUNNER>: looking for work in /lava-3715/0/lava-test-runner.conf-1484266027
<LAVA_TEST_RUNNER>: running 0_TC_BENCH_DISK_AIO_STRESS under lava-test-shell...
<LAVA_TEST_RUNNER>: running 0_TC_BENCH_DISK_AIO_STRESS installer ...
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 5: lava-add-sources: command not found
Hmm, the file is copied, for example: Creating /var/lib/lava/dispatcher/tmp/11379/lava-overlay-FwTfJH/lava-11379/bin / lava-add-sources
Command not found is not the same as File not found.
Check your test job log file - you can attach the entire thing to your reply which will work a lot better than trying to embed it inside the email.
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 6: lava-add-sources: command not found
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 7: lava-add-sources: command not found
Error: OPKG package manager not found in the path.
This is a problem in your test image.
lava-install-packages looks for opkg in the $PATH and fails if that is not found.
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/