Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C388C18710 for ; Fri, 4 Mar 2016 01:35:37 +0000 (UTC) Received: (qmail 61130 invoked by uid 500); 4 Mar 2016 01:35:37 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 61104 invoked by uid 500); 4 Mar 2016 01:35:37 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 61084 invoked by uid 99); 4 Mar 2016 01:35:37 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 01:35:37 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id E6D372E81E0; Fri, 4 Mar 2016 01:35:36 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8690333970991368774==" MIME-Version: 1.0 Subject: Re: Review Request 39939: Make docker_socket option support different protocols. From: Klaus Ma To: Timothy Chen , Klaus Ma Cc: Mesos ReviewBot , haosdent huang , Guangya Liu , mesos Date: Fri, 04 Mar 2016 01:35:36 -0000 Message-ID: <20160304013536.1648.4368@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Klaus Ma X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/39939/ X-Sender: Klaus Ma References: <20160222044116.27513.1420@reviews.apache.org> In-Reply-To: <20160222044116.27513.1420@reviews.apache.org> Reply-To: Klaus Ma X-ReviewRequest-Repository: mesos --===============8690333970991368774== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Feb. 22, 2016, 12:41 p.m., Klaus Ma wrote: > > src/slave/flags.cpp, line 437 > > > > > > I think we need to handle feature interaction with `docker_mesos_image`. Currently, we mount unix socket into container; but it'll failed when using TCP socket. > > haosdent huang wrote: > Hi, @klaus1982 Sorry to forgot update this. Do you mean we need add a check here? > > haosdent huang wrote: > My concern here is if we use host network when we launch slave in docker, use tcp protocol should still works. When `docker_mesos_image` is enabled, `docker_socket` are mounted into docker by volume which is not worked for TCP ( https://github.com/apache/mesos/blob/master/src/slave/containerizer/docker.cpp#L293 ). IMO, two options: 1. Highlight in document that TCP docker_socket can not work with `docker_mesos_image` 2. Add logic for `docker_mesos_image`, just pass docker_socket into slave in docker instead of mounting it; we also need to update document that it's user's responsibility to make sure network is accessable. - Klaus ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/39939/#review120096 ----------------------------------------------------------- On March 4, 2016, 12:40 a.m., haosdent huang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/39939/ > ----------------------------------------------------------- > > (Updated March 4, 2016, 12:40 a.m.) > > > Review request for mesos, Klaus Ma and Timothy Chen. > > > Bugs: MESOS-3821 > https://issues.apache.org/jira/browse/MESOS-3821 > > > Repository: mesos > > > Description > ------- > > Make docker_socket option support different protocols. > > > Diffs > ----- > > docs/configuration.md 305ba2c801c2060db6dcb4ef83c1043aaa7d520c > src/docker/docker.hpp 7802f23585121d41c738cc28f6bcfa5e6dc9e972 > src/docker/docker.cpp 52728707d985517e57525af7e470ccb468039373 > src/slave/flags.cpp 6e3fd69c06eefd40bc0e5c222ea72f34144c5534 > > Diff: https://reviews.apache.org/r/39939/diff/ > > > Testing > ------- > > make check > > > Thanks, > > haosdent huang > > --===============8690333970991368774==--