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 BDC23200C7E for ; Tue, 9 May 2017 00:04:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC467160BBF; Mon, 8 May 2017 22:04:07 +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 0EBD1160BA5 for ; Tue, 9 May 2017 00:04:06 +0200 (CEST) Received: (qmail 39466 invoked by uid 500); 8 May 2017 22:04:06 -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 39457 invoked by uid 99); 8 May 2017 22:04:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2017 22:04:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DB7F1C030F for ; Mon, 8 May 2017 22:04:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Z5R-dgiVlpmr for ; Mon, 8 May 2017 22:04:05 +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 CF2485F36A for ; Mon, 8 May 2017 22:04:04 +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 54B3FE06C5 for ; Mon, 8 May 2017 22:04:04 +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 17ED221DF6 for ; Mon, 8 May 2017 22:04:04 +0000 (UTC) Date: Mon, 8 May 2017 22:04:04 +0000 (UTC) From: "Till Toenshoff (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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: Mon, 08 May 2017 22:04:07 -0000 [ https://issues.apache.org/jira/browse/MESOS-7429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Till Toenshoff updated MESOS-7429: ---------------------------------- Fix Version/s: 1.3.1 1.2.1 > 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 > Fix For: 1.2.1, 1.3.1, 1.4.0 > > > 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)