You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Avinash sridharan <av...@mesosphere.io> on 2016/04/09 00:34:43 UTC

Review Request 45955: Added CNI helper binary `mesos-cni-helper`.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/
-----------------------------------------------------------

Review request for mesos, Jie Yu and Qian Zhang.


Bugs: MESOS-4922
    https://issues.apache.org/jira/browse/MESOS-4922


Repository: mesos


Description
-------

This will be used by the `network/cni` isolator to setup hostname and
various network files within the container UTS and mnt namespace.


Diffs
-----

  src/Makefile.am 71c4308cccfa5c56b93f6c3928dd2a1cf3ba9741 
  src/slave/containerizer/mesos/isolators/network/cni/helper.cpp PRE-CREATION 

Diff: https://reviews.apache.org/r/45955/diff/


Testing
-------

make

* Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.


Thanks,

Avinash sridharan


Re: Review Request 45955: Added CNI helper binary `mesos-cni-helper`.

Posted by Avinash sridharan <av...@mesosphere.io>.

> On April 11, 2016, 5:02 p.m., Jie Yu wrote:
> > Instead of creating a new helper binary, can we use the mesos-containerizer binary?
> > 
> > We need to namespace the subcommand properly to avoid conflicts. We can use 'network-cni-setup' as the name of the subcommand.

So just add a subcommand for the mesos containerizer binary here:
https://github.com/apache/mesos/blob/4d2b1b793e07a9c90b984ca330a3d7bc9e1404cc/src/slave/containerizer/mesos/main.cpp#L28 ?

This makes sense.


- Avinash


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/#review128161
-----------------------------------------------------------


On April 8, 2016, 10:34 p.m., Avinash sridharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45955/
> -----------------------------------------------------------
> 
> (Updated April 8, 2016, 10:34 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Qian Zhang.
> 
> 
> Bugs: MESOS-4922
>     https://issues.apache.org/jira/browse/MESOS-4922
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This will be used by the `network/cni` isolator to setup hostname and
> various network files within the container UTS and mnt namespace.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am 71c4308cccfa5c56b93f6c3928dd2a1cf3ba9741 
>   src/slave/containerizer/mesos/isolators/network/cni/helper.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/45955/diff/
> 
> 
> Testing
> -------
> 
> make
> 
> * Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.
> 
> 
> Thanks,
> 
> Avinash sridharan
> 
>


Re: Review Request 45955: Added CNI helper binary `mesos-cni-helper`.

Posted by Jie Yu <yu...@gmail.com>.

> On April 11, 2016, 5:02 p.m., Jie Yu wrote:
> > Instead of creating a new helper binary, can we use the mesos-containerizer binary?
> > 
> > We need to namespace the subcommand properly to avoid conflicts. We can use 'network-cni-setup' as the name of the subcommand.
> 
> Avinash sridharan wrote:
>     So just add a subcommand for the mesos containerizer binary here:
>     https://github.com/apache/mesos/blob/4d2b1b793e07a9c90b984ca330a3d7bc9e1404cc/src/slave/containerizer/mesos/main.cpp#L28 ?
>     
>     This makes sense.

Yes.


- Jie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/#review128161
-----------------------------------------------------------


On April 8, 2016, 10:34 p.m., Avinash sridharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45955/
> -----------------------------------------------------------
> 
> (Updated April 8, 2016, 10:34 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Qian Zhang.
> 
> 
> Bugs: MESOS-4922
>     https://issues.apache.org/jira/browse/MESOS-4922
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This will be used by the `network/cni` isolator to setup hostname and
> various network files within the container UTS and mnt namespace.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am 71c4308cccfa5c56b93f6c3928dd2a1cf3ba9741 
>   src/slave/containerizer/mesos/isolators/network/cni/helper.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/45955/diff/
> 
> 
> Testing
> -------
> 
> make
> 
> * Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.
> 
> 
> Thanks,
> 
> Avinash sridharan
> 
>


Re: Review Request 45955: Added CNI helper binary `mesos-cni-helper`.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/#review128161
-----------------------------------------------------------



Instead of creating a new helper binary, can we use the mesos-containerizer binary?

We need to namespace the subcommand properly to avoid conflicts. We can use 'network-cni-setup' as the name of the subcommand.

- Jie Yu


On April 8, 2016, 10:34 p.m., Avinash sridharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45955/
> -----------------------------------------------------------
> 
> (Updated April 8, 2016, 10:34 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Qian Zhang.
> 
> 
> Bugs: MESOS-4922
>     https://issues.apache.org/jira/browse/MESOS-4922
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This will be used by the `network/cni` isolator to setup hostname and
> various network files within the container UTS and mnt namespace.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am 71c4308cccfa5c56b93f6c3928dd2a1cf3ba9741 
>   src/slave/containerizer/mesos/isolators/network/cni/helper.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/45955/diff/
> 
> 
> Testing
> -------
> 
> make
> 
> * Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.
> 
> 
> Thanks,
> 
> Avinash sridharan
> 
>


Re: Review Request 45955: Added CNI helper subcommand to `mesos-containerizer`.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/#review128907
-----------------------------------------------------------


Ship it!




Ship It!

- Jie Yu


On April 14, 2016, 3:24 p.m., Avinash sridharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45955/
> -----------------------------------------------------------
> 
> (Updated April 14, 2016, 3:24 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Qian Zhang.
> 
> 
> Bugs: MESOS-4922
>     https://issues.apache.org/jira/browse/MESOS-4922
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This will be used by the `network/cni` isolator to setup hostname and
> various network files within the container UTS and mnt namespace.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/main.cpp 63b257e5ea079d516c0cbed9593a116f22677255 
> 
> Diff: https://reviews.apache.org/r/45955/diff/
> 
> 
> Testing
> -------
> 
> make
> 
> * Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.
> 
> 
> Thanks,
> 
> Avinash sridharan
> 
>


Re: Review Request 45955: Added CNI helper subcommand to `mesos-containerizer`.

Posted by Avinash sridharan <av...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/
-----------------------------------------------------------

(Updated April 14, 2016, 3:24 p.m.)


Review request for mesos, Jie Yu and Qian Zhang.


Changes
-------

Fixed a OSX build failure.


Bugs: MESOS-4922
    https://issues.apache.org/jira/browse/MESOS-4922


Repository: mesos


Description
-------

This will be used by the `network/cni` isolator to setup hostname and
various network files within the container UTS and mnt namespace.


Diffs (updated)
-----

  src/slave/containerizer/mesos/main.cpp 63b257e5ea079d516c0cbed9593a116f22677255 

Diff: https://reviews.apache.org/r/45955/diff/


Testing
-------

make

* Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.


Thanks,

Avinash sridharan


Re: Review Request 45955: Added CNI helper subcommand to `mesos-containerizer`.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/#review128810
-----------------------------------------------------------



This will break mac build. Please make sure to wrap code with ifdef linux

- Jie Yu


On April 12, 2016, 2:10 a.m., Avinash sridharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45955/
> -----------------------------------------------------------
> 
> (Updated April 12, 2016, 2:10 a.m.)
> 
> 
> Review request for mesos, Jie Yu and Qian Zhang.
> 
> 
> Bugs: MESOS-4922
>     https://issues.apache.org/jira/browse/MESOS-4922
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This will be used by the `network/cni` isolator to setup hostname and
> various network files within the container UTS and mnt namespace.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/main.cpp 63b257e5ea079d516c0cbed9593a116f22677255 
> 
> Diff: https://reviews.apache.org/r/45955/diff/
> 
> 
> Testing
> -------
> 
> make
> 
> * Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.
> 
> 
> Thanks,
> 
> Avinash sridharan
> 
>


Re: Review Request 45955: Added CNI helper subcommand to `mesos-containerizer`.

Posted by Avinash sridharan <av...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45955/
-----------------------------------------------------------

(Updated April 12, 2016, 2:10 a.m.)


Review request for mesos, Jie Yu and Qian Zhang.


Changes
-------

Added a subcommand to `mesos-containerizer`.


Summary (updated)
-----------------

Added CNI helper subcommand to `mesos-containerizer`.


Bugs: MESOS-4922
    https://issues.apache.org/jira/browse/MESOS-4922


Repository: mesos


Description
-------

This will be used by the `network/cni` isolator to setup hostname and
various network files within the container UTS and mnt namespace.


Diffs (updated)
-----

  src/slave/containerizer/mesos/main.cpp 63b257e5ea079d516c0cbed9593a116f22677255 

Diff: https://reviews.apache.org/r/45955/diff/


Testing
-------

make

* Ran mesos-execute with the a single master/slave setup that the container attaches to the CNI network correctly and that its network files and hostname are setup correctly.


Thanks,

Avinash sridharan