[
https://issues.apache.org/jira/browse/MESOS-7770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083059#comment-16083059
]
Jie Yu commented on MESOS-7770:
-------------------------------
commit c3632f67df4435f4dc3d9cb2d4d50db63aa8bcf8
Author: Gilbert Song <[email protected]>
Date: Tue Jul 11 14:14:31 2017 -0700
Added unit tests for persistent volume and host volume conflict issue.
Review: https://reviews.apache.org/r/60750/
commit 2106fc7a2fd5f54e4a6454ba3cf7de023f732561
Author: Gilbert Song <[email protected]>
Date: Tue Jul 11 14:14:28 2017 -0700
Fixed persistent volume and host volume conflict issue.
This is the fix for MESOS-7770. Basically, if a persistent volume
and a host volume are both specified and the source path of the
host volume is the same as the container path of the persistent
volume, then the persistent volume will be skipped and is not
mounted correctly. We should precisely check the mount table
to determine whether the persistent volume is mounted or not.
If not mounted, make sure we do mount the persistent volume.
Review: https://reviews.apache.org/r/60729/
> Persistent volume might not be mounted if there is a sandbox volume whose
> source is the same as the target of the persistent volume.
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MESOS-7770
> URL: https://issues.apache.org/jira/browse/MESOS-7770
> Project: Mesos
> Issue Type: Bug
> Components: containerization
> Affects Versions: 1.1.2, 1.2.1, 1.3.0
> Reporter: Jie Yu
> Assignee: Gilbert Song
> Priority: Critical
> Labels: mesosphere, persistent-volumes
>
> This issue is only for Mesos Containerizer.
> If the source of a sandbox volume is a relative path, we'll create the
> directory in the sandbox in Isolator::prepare method:
> https://github.com/apache/mesos/blob/1.3.x/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp#L480-L485
> And then, we'll try to mount persistent volumes. However, because of this
> TODO in the code:
> https://github.com/apache/mesos/blob/1.3.x/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp#L726-L739
> We'll skip mounting the persistent volume. That will cause a silent failure.
> This is important because the workaround we suggest folks to solve MESOS-4016
> is to use an additional sandbox volume.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)