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 83762200BDB for ; Thu, 3 Nov 2016 20:35:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 823ED160B0B; Thu, 3 Nov 2016 19:35:00 +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 BB94F160AE5 for ; Thu, 3 Nov 2016 20:34:59 +0100 (CET) Received: (qmail 44446 invoked by uid 500); 3 Nov 2016 19:34:58 -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 44416 invoked by uid 99); 3 Nov 2016 19:34:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 19:34:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 80E442C2A6A for ; Thu, 3 Nov 2016 19:34:58 +0000 (UTC) Date: Thu, 3 Nov 2016 19:34:58 +0000 (UTC) From: "Kevin Klues (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-6540) Pass the forked pid from `containerizer launch` to the agent and checkpoint it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 03 Nov 2016 19:35:00 -0000 [ https://issues.apache.org/jira/browse/MESOS-6540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15633975#comment-15633975 ] Kevin Klues commented on MESOS-6540: ------------------------------------ I agree with everything you said. For 1, though, I thought we agreed that the "short term workaround" would be to pass the pid of the forked process back to the agent somehow. If not, what other solution are you proposing? The one where we just walk the process tree from the init process and find the first child in a different mount namespace and enter that one? > Pass the forked pid from `containerizer launch` to the agent and checkpoint it. > ------------------------------------------------------------------------------- > > Key: MESOS-6540 > URL: https://issues.apache.org/jira/browse/MESOS-6540 > Project: Mesos > Issue Type: Task > Reporter: Kevin Klues > Assignee: Kevin Klues > Labels: debugging, mesosphere > > Right now the agent only knows about the pid of the "init" process forked by {{launcher->fork()}}. However, in order to properly enter the namespaces of a task for a nested container, we actually need the pid of the process that gets launched by the {{containerizer launch}} binary. > Using this pid, isolators can properly enter the namespaces of the actual *task* or *executor* launched by the {{containerizer launch}} binary instead of just the namespaces of the "init" process (which may be different). > This will involve opening a domain socket with the {{containerizer launch}} binary and passing the translated pid from the forked process back to the agent. We can chieve this by opening the socket on the agent and passing the path to it using {{launchFlags}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)