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/plain 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#deflin...
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_debian.ht... https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.ht...
(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/