mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jie Yu <yujie....@gmail.com>
Subject Re: Executors no longer inherit environment variables from the agent
Date Mon, 20 Jun 2016 18:47:12 GMT
Zhitao,

Any environment variables generated by Mesos (i.e., MESOS_, LIBPROCESS_)
> will not be affected


Yes.

 explicitly call this out in UPGRADES.md


Working on it.

- Jie

On Mon, Jun 20, 2016 at 11:43 AM, Zhitao Li <zhitaoli.cs@gmail.com> wrote:

> Hi Jie,
>
> Can you confirm that your previous response of `Any environment variables
> generated by Mesos (i.e., MESOS_, LIBPROCESS_) will not be affected.`
> will still be honored, or explicitly call this out in UPGRADES.md?
>
> Thanks.
>
> On Mon, Jun 20, 2016 at 11:39 AM, Jie Yu <yujie.jay@gmail.com> wrote:
>
>> FYI, from Mesos 1.0, the executors will no longer inherit environment
>> variables from the agent by default. If you have environment environment
>> variables that you want to pass in to executors, please use `--
>> executor_environment_variables` flag on the agent.
>>
>> commit ce4b3056164a804bea52810173dbd7a418d12641
>> Author: Gilbert Song <songzihao1990@gmail.com>
>> Date:   Sun Jun 19 16:01:10 2016 -0700
>>
>>     Forbid the executor to inherit from slave environment.
>>
>>     Review: https://reviews.apache.org/r/44498/
>>
>> - Jie
>>
>> On Tue, Mar 8, 2016 at 11:33 AM, Gilbert Song <gilbert@mesosphere.io>
>> wrote:
>>
>> > Hi,
>> >
>> > TL;DR Executors will no longer inherit environment variables from the
>> agent
>> > by default in 0.30.
>> >
>> > Currently, executors are inheriting environment variables form the
>> agent in
>> > mesos containerizer by default. This is an unfortunate legacy behavior
>> and
>> > is insecure. If you do have environment variables that you want to pass
>> to
>> > the executors, you can set it explicitly by using the
>> > `--executor_environment_variables` agent flag.
>> >
>> > Starting from 0.30, we will no longer allow executors to inherit
>> > environment variables from the agent. In other words,
>> > `--executor_environment_variables` will be set to “{}” by default. If
>> you
>> > do depend on the original behavior, please set
>> > `--executor_environment_variables` flag explicitly.
>> >
>> > Let us know if you have any comments or concerns.
>> >
>> > Thanks,
>> > Gilbert
>> >
>>
>
>
>
> --
> Cheers,
>
> Zhitao Li
>

Mime
View raw message