Not exactly.

1/ The process that is deploying, booting and testing a DUT (Device Under test) is called lava-run.
lava-run environment variables are controlled by /etc/lava-server/env.yaml

By default, all environment variables are removed and only a small set of variables are added.
This helps to make executions reproducible between dispatchers and instances.

So if you need an environment variable to be set, then you have to add it to /etc/lava-server/env.yaml

2/ On the DUT itself, by default, we don't add or change any environment variable. Because that's the user responsibility.
However, if /etc/lava-server/env.dut.yaml does exists, it will be used to add environment variables to the DUT shell.
To create the list of environment variables to add to the DUT, we take the full environment from lava-run (as defined by /etc/lava-server/env.yaml) and we apply the rules from env.dut.yaml.

I hope that does help you to understand how environment is setup in lava.

Rgds


2018-02-14 12:53 GMT+01:00 Zoran S <zoran.stojsavljevic.de@gmail.com>:
YES, yes... I see how this should be solved.

It could be solved also directly using urllib3 python code, going
directly to Python interpreter (I have tried it, it does work).

Here: https://stackoverflow.com/questions/31151615/how-to-handle-proxies-in-urllib3

In other words, Lava does NOT read VM's ENV variables. It ignores
them. Python reads /etc/lava-server/env.yaml as setup proxy file!

Zoran
_______

On Wed, Feb 14, 2018 at 11:36 AM, Remi Duraffort
<remi.duraffort@linaro.org> wrote:
> In /etc/lava-server/env.yaml which describes the environment that the
> dispatcher will use to run the jobs.
>
> 2018-02-14 11:13 GMT+01:00 Zoran S <zoran.stojsavljevic.de@gmail.com>:
>>
>> Hello Remi,
>>
>> The proxy settings are the problem. Do you have anywhere in Lava
>> server explicit place where you set the proxies?
>>
>> Best Regards,
>> Zoran
>> _______
>>
>> On Wed, Feb 14, 2018 at 10:14 AM, Remi Duraffort
>> <remi.duraffort@linaro.org> wrote:
>> >
>> >>
>> >> The job failed immediately. Since the following message poped up in my
>> >> localhost browser:
>> >>
>> >> https://images.validation.linaro.org/kvm/standard/stretch-2.img.gz ->
>> >> Resources not available!
>> >
>> >
>> > The dispatcher can connect to internet. because this resource is valid
>> > (you
>> > can check in your browser).
>> >
>> >
>> > --
>> > Rémi Duraffort
>> > LAVA Team
>
>
>
>
> --
> Rémi Duraffort
> LAVA Team



--
Rémi Duraffort
LAVA Team