[
https://issues.apache.org/jira/browse/MESOS-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639902#comment-13639902
]
Jonathan Boulle commented on MESOS-349:
---------------------------------------
Well, when the slave tries to GC the sandbox, it fails if there are any mounts
within the sandbox (e.g. rm -rf against a bind-mounted /proc will never
succeed).
Forcibly unmounting anything mounted within the sandbox, before the tree
cleanup, is exactly what I meant - since the GC is basically a "purge with
prejudice" operation, it seems like a reasonable addition to me.
> remove mounts when garbage collecting tasks
> -------------------------------------------
>
> Key: MESOS-349
> URL: https://issues.apache.org/jira/browse/MESOS-349
> Project: Mesos
> Issue Type: Improvement
> Components: slave
> Reporter: Jonathan Boulle
> Priority: Minor
>
> It would be extremely helpful if the GC process on a slave (which is
> currently effectively just an {{rm -rf}}) could also remove mounts within the
> executor sandbox.
> This would allow sandboxes to incorporate mounts from different filesystems,
> for example, or to utilise chroots (which require various mounts to function
> properly - e.g. {{/proc}} and {{/sys}} on Linux) - and still be cleaned up by
> the mesos slave without any external intervention.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira