[
https://issues.apache.org/jira/browse/MESOS-8279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317514#comment-16317514
]
Qian Zhang commented on MESOS-8279:
-----------------------------------
[~vinodkone] proposed a solution: calling {{Files::attach()}} to attach the
executor's PV directory to the task's PV directory, so when users browse
task's volume directory in Mesos UI, what they actually browse is the
executor's volume directory.
Here is the RR:
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
>
> 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
(v6.4.14#64029)