You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Klaus Ma <kl...@gmail.com> on 2016/02/23 13:19:38 UTC

Re: Review Request 42390: Fixed fetching uris when slave is running inside a container.

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


Ship it!




Ship It!

- Klaus Ma


On Jan. 20, 2016, 10:12 p.m., Shuai Lin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42390/
> -----------------------------------------------------------
> 
> (Updated Jan. 20, 2016, 10:12 p.m.)
> 
> 
> Review request for mesos and Timothy Chen.
> 
> 
> Bugs: MESOS-4249
>     https://issues.apache.org/jira/browse/MESOS-4249
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This still requires the slave work dir is a mounted volume, otherwise
> the slave has no way to fetch into the task container's sandbox.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/docker.cpp da19975c1f1e59fab0a96ebd9aa815bba2a35ece 
> 
> Diff: https://reviews.apache.org/r/42390/diff/
> 
> 
> Testing
> -------
> 
> - Start a master, then start the slave inside a docker container, with the work_dir being a mounted volume
> - Start a simple framework, which, on receiving the first offer, launches a task with a uri in the command info
> - When the task container is launched, check the file is fetched into the sandbox
> ```sh
> $ docker exec <task-container-id> ls /mnt/mesos/sandbox
> robots.txt
> stderr
> stdout
> ```
> 
> I have collected the scripts I use in testing in [this gist](https://gist.github.com/lins05/14455e92f37e91fd46ff)
> 
> 
> Thanks,
> 
> Shuai Lin
> 
>