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 43A94200B7C for ; Wed, 24 Aug 2016 13:20:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4244E160AA4; Wed, 24 Aug 2016 11:20:22 +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 860A2160AB1 for ; Wed, 24 Aug 2016 13:20:21 +0200 (CEST) Received: (qmail 14314 invoked by uid 500); 24 Aug 2016 11:20:20 -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 14302 invoked by uid 99); 24 Aug 2016 11:20:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 11:20:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8E2082C0150 for ; Wed, 24 Aug 2016 11:20:20 +0000 (UTC) Date: Wed, 24 Aug 2016 11:20:20 +0000 (UTC) From: "Alexander Rukletsov (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-5727) Command executor health check does not work when the task specifies container image. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 Aug 2016 11:20:22 -0000 [ https://issues.apache.org/jira/browse/MESOS-5727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434727#comment-15434727 ] Alexander Rukletsov commented on MESOS-5727: -------------------------------------------- Though the benefits of sharing the mount namespace between the command executor and its task are clear, there are disadvantages as well. Once we {{pivot_root}}, we may loose access to helper and system binaries, which we may need in the executor for, e.g., health checking. Moreover, in the future pods case, an executor will have multiple tasks with their own mount namespaces, hence the executor must have its own mount namespace. We will be {{unshare}}'ing the task's mount namespace: https://reviews.apache.org/r/51266/ > Command executor health check does not work when the task specifies container image. > ------------------------------------------------------------------------------------ > > Key: MESOS-5727 > URL: https://issues.apache.org/jira/browse/MESOS-5727 > Project: Mesos > Issue Type: Bug > Components: containerization > Affects Versions: 0.28.2, 1.0.0 > Reporter: Jie Yu > Assignee: Gilbert Song > Labels: containerizer, health-check, mesosphere > Fix For: 1.0.0 > > > Since we launch the task after pivot_root, we no longer has the access to the mesos-health-check binary. The solution is to refactor health check to be a library (libprocess) so that it does not depend on the underlying filesystem. > One note here is that we should strive to keep both the command executor and the task in the same mount namespace so that Mesos CLI tooling does not need to find the mount namespace for the task. It just need to find the corresponding pid for the executor. This statement is *arguable*, see the comment below. -- This message was sent by Atlassian JIRA (v6.3.4#6332)