You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Joseph Wu <jo...@mesosphere.io> on 2017/09/07 00:37:38 UTC

Re: Review Request 60890: WIP: Defined API for launching standalone containers.

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

(Updated Sept. 6, 2017, 5:37 p.m.)


Review request for mesos, Gilbert Song and Jie Yu.


Changes
-------

Added `RemoveContainer` to the API.  Added some more deprecation tags.


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


Repository: mesos


Description (updated)
-------

Launching a standalone container is very similar to launching a
nested container, except that the caller must specify some Resources.
As such, this patch deprecates some nested container APIs
and replaces them with more generically named APIs.

This applies to the Launch, Wait, Kill, and Remove
(nested) container APIs.


Diffs (updated)
-----

  include/mesos/agent/agent.proto 7c8c8a7d8298e91e4e002327b3b27d4c74b5cbae 
  include/mesos/v1/agent/agent.proto 3e199124b23fa027232790d99370fe2f33660096 


Diff: https://reviews.apache.org/r/60890/diff/3/

Changes: https://reviews.apache.org/r/60890/diff/2-3/


Testing
-------

make

See later patches in chain.


Thanks,

Joseph Wu


Re: Review Request 60890: WIP: Defined API for launching standalone containers.

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


Fix it, then Ship it!





include/mesos/agent/agent.proto
Lines 188 (patched)
<https://reviews.apache.org/r/60890/#comment261062>

    Remove the `within an executor's tree of containers` because nested container can be nested under top-level container as well?
    
    Also, i'd try to use the same term to refer to 'standalone container'. Let's avoid using the term `top level container` to refer to standalone container because top level container also applies to executor's container.


- Jie Yu


On Sept. 7, 2017, 12:37 a.m., Joseph Wu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60890/
> -----------------------------------------------------------
> 
> (Updated Sept. 7, 2017, 12:37 a.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-7305
>     https://issues.apache.org/jira/browse/MESOS-7305
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Launching a standalone container is very similar to launching a
> nested container, except that the caller must specify some Resources.
> As such, this patch deprecates some nested container APIs
> and replaces them with more generically named APIs.
> 
> This applies to the Launch, Wait, Kill, and Remove
> (nested) container APIs.
> 
> 
> Diffs
> -----
> 
>   include/mesos/agent/agent.proto 7c8c8a7d8298e91e4e002327b3b27d4c74b5cbae 
>   include/mesos/v1/agent/agent.proto 3e199124b23fa027232790d99370fe2f33660096 
> 
> 
> Diff: https://reviews.apache.org/r/60890/diff/3/
> 
> 
> Testing
> -------
> 
> make
> 
> See later patches in chain.
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>


Re: Review Request 60890: Defined API for launching standalone containers.

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




include/mesos/agent/agent.proto
Lines 230 (patched)
<https://reviews.apache.org/r/60890/#comment265443>

    Can you also docuemnt the HTTP code. For instance, that's the HTTP code if container does not exists?



include/mesos/agent/agent.proto
Lines 235 (patched)
<https://reviews.apache.org/r/60890/#comment265444>

    Ditto on document HTTP code.



include/mesos/agent/agent.proto
Lines 244 (patched)
<https://reviews.apache.org/r/60890/#comment265445>

    Ditto on document HTTP code.


- Jie Yu


On Oct. 16, 2017, 11:41 p.m., Joseph Wu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60890/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2017, 11:41 p.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-7305
>     https://issues.apache.org/jira/browse/MESOS-7305
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Launching a standalone container is very similar to launching a
> nested container, except that the caller must specify some Resources.
> As such, this patch deprecates some nested container APIs
> and replaces them with more generically named APIs.
> 
> This applies to the Launch, Wait, Kill, and Remove
> (nested) container APIs.
> 
> 
> Diffs
> -----
> 
>   include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
>   include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 
> 
> 
> Diff: https://reviews.apache.org/r/60890/diff/4/
> 
> 
> Testing
> -------
> 
> make
> 
> See later patches in chain.
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>


Re: Review Request 60890: Defined API for launching standalone containers.

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

> On Nov. 2, 2017, 3:56 p.m., Joseph Wu wrote:
> > include/mesos/agent/agent.proto
> > Lines 253-255 (patched)
> > <https://reviews.apache.org/r/60890/diff/5/?file=1879160#file1879160line253>
> >
> >     Leaving this up for discussion:
> >     
> >     The existing call (`RemoveNestedContainer`) either returns 200 or 500, so for backwards compatibility, `RemoveContainer` does the same.
> >     
> >     On the other hand, returning a 404 may be somewhat difficult as `Containerizer::remove` returns a `Future<Nothing>`.  Other methods like `::launch`, `::wait`, or `::kill` all a magic value if the container doesn't exist.

Can you add a TODO. I think we should add a magic value for `remove` interface as well!


- Jie


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


On Nov. 2, 2017, 3:50 p.m., Joseph Wu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60890/
> -----------------------------------------------------------
> 
> (Updated Nov. 2, 2017, 3:50 p.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-7305
>     https://issues.apache.org/jira/browse/MESOS-7305
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Launching a standalone container is very similar to launching a
> nested container, except that the caller must specify some Resources.
> As such, this patch deprecates some nested container APIs
> and replaces them with more generically named APIs.
> 
> This applies to the Launch, Wait, Kill, and Remove
> (nested) container APIs.
> 
> 
> Diffs
> -----
> 
>   include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
>   include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 
> 
> 
> Diff: https://reviews.apache.org/r/60890/diff/5/
> 
> 
> Testing
> -------
> 
> make
> 
> See later patches in chain.
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>


Re: Review Request 60890: Defined API for launching standalone containers.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60890/#review189922
-----------------------------------------------------------




include/mesos/agent/agent.proto
Lines 253-255 (patched)
<https://reviews.apache.org/r/60890/#comment267147>

    Leaving this up for discussion:
    
    The existing call (`RemoveNestedContainer`) either returns 200 or 500, so for backwards compatibility, `RemoveContainer` does the same.
    
    On the other hand, returning a 404 may be somewhat difficult as `Containerizer::remove` returns a `Future<Nothing>`.  Other methods like `::launch`, `::wait`, or `::kill` all a magic value if the container doesn't exist.


- Joseph Wu


On Nov. 2, 2017, 8:50 a.m., Joseph Wu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60890/
> -----------------------------------------------------------
> 
> (Updated Nov. 2, 2017, 8:50 a.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-7305
>     https://issues.apache.org/jira/browse/MESOS-7305
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Launching a standalone container is very similar to launching a
> nested container, except that the caller must specify some Resources.
> As such, this patch deprecates some nested container APIs
> and replaces them with more generically named APIs.
> 
> This applies to the Launch, Wait, Kill, and Remove
> (nested) container APIs.
> 
> 
> Diffs
> -----
> 
>   include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
>   include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 
> 
> 
> Diff: https://reviews.apache.org/r/60890/diff/5/
> 
> 
> Testing
> -------
> 
> make
> 
> See later patches in chain.
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>


Re: Review Request 60890: Defined API for launching standalone containers.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60890/
-----------------------------------------------------------

(Updated Nov. 13, 2017, 5:22 p.m.)


Review request for mesos, Gilbert Song and Jie Yu.


Changes
-------

Comment changes.  Added a beefy section for `RemoveContainer` and deleted some comments in the deprecated calls to remove some duplication.


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


Repository: mesos


Description
-------

Launching a standalone container is very similar to launching a
nested container, except that the caller must specify some Resources.
As such, this patch deprecates some nested container APIs
and replaces them with more generically named APIs.

This applies to the Launch, Wait, Kill, and Remove
(nested) container APIs.


Diffs (updated)
-----

  include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
  include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 


Diff: https://reviews.apache.org/r/60890/diff/6/

Changes: https://reviews.apache.org/r/60890/diff/5-6/


Testing
-------

make

See later patches in chain.


Thanks,

Joseph Wu


Re: Review Request 60890: Defined API for launching standalone containers.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60890/
-----------------------------------------------------------

(Updated Nov. 2, 2017, 8:50 a.m.)


Review request for mesos, Gilbert Song and Jie Yu.


Changes
-------

Added HTTP response codes to the comments.  Also copy-pasted a missing comment from the unversioned proto of WaitNestedContainer to the versioned proto.


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


Repository: mesos


Description
-------

Launching a standalone container is very similar to launching a
nested container, except that the caller must specify some Resources.
As such, this patch deprecates some nested container APIs
and replaces them with more generically named APIs.

This applies to the Launch, Wait, Kill, and Remove
(nested) container APIs.


Diffs (updated)
-----

  include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
  include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 


Diff: https://reviews.apache.org/r/60890/diff/5/

Changes: https://reviews.apache.org/r/60890/diff/4-5/


Testing
-------

make

See later patches in chain.


Thanks,

Joseph Wu


Re: Review Request 60890: Defined API for launching standalone containers.

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




include/mesos/agent/agent.proto
Lines 437-440 (patched)
<https://reviews.apache.org/r/60890/#comment265441>

    You need a rebase. jpeach recently added some new fields for `WaitNestedContainer`. If you want to deprecate `WAIT_NESTED_CONTAINER`, you'll have to make sure it has feature parity.


- Jie Yu


On Oct. 16, 2017, 11:41 p.m., Joseph Wu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60890/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2017, 11:41 p.m.)
> 
> 
> Review request for mesos, Gilbert Song and Jie Yu.
> 
> 
> Bugs: MESOS-7305
>     https://issues.apache.org/jira/browse/MESOS-7305
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Launching a standalone container is very similar to launching a
> nested container, except that the caller must specify some Resources.
> As such, this patch deprecates some nested container APIs
> and replaces them with more generically named APIs.
> 
> This applies to the Launch, Wait, Kill, and Remove
> (nested) container APIs.
> 
> 
> Diffs
> -----
> 
>   include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
>   include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 
> 
> 
> Diff: https://reviews.apache.org/r/60890/diff/4/
> 
> 
> Testing
> -------
> 
> make
> 
> See later patches in chain.
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>


Re: Review Request 60890: Defined API for launching standalone containers.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60890/
-----------------------------------------------------------

(Updated Oct. 16, 2017, 4:41 p.m.)


Review request for mesos, Gilbert Song and Jie Yu.


Changes
-------

Rebased and addressed top-level/standalone wording nit.


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

Defined API for launching standalone containers.


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


Repository: mesos


Description
-------

Launching a standalone container is very similar to launching a
nested container, except that the caller must specify some Resources.
As such, this patch deprecates some nested container APIs
and replaces them with more generically named APIs.

This applies to the Launch, Wait, Kill, and Remove
(nested) container APIs.


Diffs (updated)
-----

  include/mesos/agent/agent.proto 4df3dcef4bd1d42cb8b4955e290bd38038355e46 
  include/mesos/v1/agent/agent.proto e99d23d55a0951f2ed728360e103d83ea5a1ad7f 


Diff: https://reviews.apache.org/r/60890/diff/4/

Changes: https://reviews.apache.org/r/60890/diff/3-4/


Testing
-------

make

See later patches in chain.


Thanks,

Joseph Wu