Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E01CA18DA4 for ; Sun, 1 Nov 2015 17:20:27 +0000 (UTC) Received: (qmail 96550 invoked by uid 500); 1 Nov 2015 17:20:27 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 96515 invoked by uid 500); 1 Nov 2015 17:20:27 -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 96506 invoked by uid 99); 1 Nov 2015 17:20:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2015 17:20:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A72132C14E1 for ; Sun, 1 Nov 2015 17:20:27 +0000 (UTC) Date: Sun, 1 Nov 2015 17:20:27 +0000 (UTC) From: "Cody Maloney (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-3740) LIBPROCESS_IP not passed to Docker containers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-3740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984461#comment-14984461 ] Cody Maloney commented on MESOS-3740: ------------------------------------- When this came up was trying to launch a mesos framework inside of a docker container. The framework used libmesos, and that libmesos couldn't figure out what IP to use (the machine didn't have a hostname, and even if it did, the hostname may not resolve to the right IP address the mesos framework inside the docker container should announce as its own IP, due to something like having multiple addresses on the machine, or running in an IP per container type environment) > LIBPROCESS_IP not passed to Docker containers > --------------------------------------------- > > Key: MESOS-3740 > URL: https://issues.apache.org/jira/browse/MESOS-3740 > Project: Mesos > Issue Type: Bug > Components: containerization, docker > Affects Versions: 0.25.0 > Environment: Mesos 0.24.1 > Reporter: Cody Maloney > Assignee: Michael Park > Labels: mesosphere > > Docker containers aren't currently passed all the same environment variables that Mesos Containerizer tasks are. See: https://github.com/apache/mesos/blob/master/src/slave/containerizer/containerizer.cpp#L254 for all the environment variables explicitly set for mesos containers. > While some of them don't necessarily make sense for docker containers, when the docker has inside of it a libprocess process (A mesos framework scheduler) and is using {{--net=host}} the task needs to have LIBPROCESS_IP set otherwise the same sort of problems that happen because of MESOS-3553 can happen (libprocess will try to guess the machine's IP address with likely bad results in a number of operating environment). -- This message was sent by Atlassian JIRA (v6.3.4#6332)