Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BB50C200C5B for ; Thu, 27 Apr 2017 23:43:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9ED0160B9E; Thu, 27 Apr 2017 21:43:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 10009160BA7 for ; Thu, 27 Apr 2017 23:43:07 +0200 (CEST) Received: (qmail 94177 invoked by uid 500); 27 Apr 2017 21:43:07 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 94168 invoked by uid 99); 27 Apr 2017 21:43:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2017 21:43:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BD24C1AF9B7 for ; Thu, 27 Apr 2017 21:43:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tguymVPqPxRZ for ; Thu, 27 Apr 2017 21:43:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A671C5FC93 for ; Thu, 27 Apr 2017 21:43:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1DB63E00B4 for ; Thu, 27 Apr 2017 21:43:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5E49E21DE8 for ; Thu, 27 Apr 2017 21:43:04 +0000 (UTC) Date: Thu, 27 Apr 2017 21:43:04 +0000 (UTC) From: "Till Toenshoff (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-7429) Allow isolators to inject task-specific environment variables. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Apr 2017 21:43:08 -0000 [ https://issues.apache.org/jira/browse/MESOS-7429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15987753#comment-15987753 ] Till Toenshoff commented on MESOS-7429: --------------------------------------- [~jpeach@apache.org] Custom executors currently have no way of receiving task specific environments injected by isolators - isolators do no mutate the {{TaskInfo}}. What we do for them already is passing the {{ContainerLaunchInfo}} returned {{environment}} on to the executor command environment {{execvpe}}. > Allow isolators to inject task-specific environment variables. > -------------------------------------------------------------- > > Key: MESOS-7429 > URL: https://issues.apache.org/jira/browse/MESOS-7429 > Project: Mesos > Issue Type: Improvement > Affects Versions: 1.2.0 > Reporter: Till Toenshoff > Assignee: Till Toenshoff > Labels: containerizer, isolator, mesosphere > > For command tasks, we currently have no way for isolators to inject task specific environments into data path. > Isolators in their {{prepare}} implementation can return a {{ContainerLaunchInfo}} which currently supports setting the member {{environment}} - but that is effective for the executor already and will get inherited by the task environment. > Given that the command-executor is active in the host-fs context but the task may be running in a container-fs context ({{has_rootfs=true}}), using the above will possibly cause failures, depending on the nature of the variables set -- consider e.g. {{LD_LIBRARY_PATH}} as a fatal one. > The command-executor does support the flag {{task_environment}} to receive environment variables which are meant exclusively for the task itself but not the executor. > Runtime isolators (docker/runtime, appc/runtime) already make use of this flag. However, they do it in a way that is a bit unfortunate as it does not allow for other isolators to make use of it - there is no merging taking place in the containerizer. -- This message was sent by Atlassian JIRA (v6.3.15#6346)