[ 
https://issues.apache.org/jira/browse/MESOS-8279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328209#comment-16328209
 ] 

Qian Zhang commented on MESOS-8279:
-----------------------------------

commit 9585a2173970589f91858301c66479827c1370a9
Author: Qian Zhang 
Date: Wed Jan 10 21:26:45 2018 +0800

Updated `ROOT_TaskSandboxPersistentVolume` to check `/files` endpoint.
 
 Review: [https://reviews.apache.org/r/65070]

 

commit e126254edd6abdad7f765dfa97ac8f695c88aca7
Author: Qian Zhang 
Date: Fri Jan 5 23:33:44 2018 +0800

Made task's volume directory visible in the /files endpoints.
 
 In MESOS-7225, we made a task can access any volumes specified in its
 disk resources from its own sandbox by introducing a workaround to the
 default executor, i.e., add a `SANDBOX_PATH` volume with type `PARENT`
 to the corresponding nested container. It will be translated into a bind
 mount in the nested container's mount namespace, thus not visible in the
 host mount namespace, that means the task's volume directory can not be
 visible in Mesos UI since it operates in the host mount namespace.
 
 In this patch, to make the task's volume directory visible in Mesos UI,
 we attached the executor's volume directory to it, so when users browse
 task's volume directory in Mesos UI, what they actually browse is the
 executor's volume directory. Note when calling `Files::attach()`, the
 third argument `authorized` is not specified, that is because it is
 already specified when we do the attach for the executor's sandbox and
 it is also applied to the executor's tasks.
 
 Review: https://reviews.apache.org/r/64978

> Persistent volumes are not visible in Mesos UI using default executor on 
> Linux.
> -------------------------------------------------------------------------------
>
>                 Key: MESOS-8279
>                 URL: https://issues.apache.org/jira/browse/MESOS-8279
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 1.2.2, 1.3.1, 1.4.1
>            Reporter: Jie Yu
>            Assignee: Qian Zhang
>            Priority: Major
>
> The reason is because on Linux, if multiple containers in a default executor 
> want to share a persistent volume, it'll use SANDBOX_PATH volume source with 
> type PARENT. This will be translated into a bind mount in the nested 
> container's mount namespace, thus not visible in the host mount namespace. 
> Mesos UI operates in the host mount namespace.
> One potential solution for that is to create a symlink (instead of just a 
> mkdir) in the sandbox. The symlink will be shadowed by the bind mount in the 
> nested container, but in the host mount namespace, it'll points to the 
> corresponding persistent volume.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to