You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Andrei Budnik <ab...@mesosphere.com> on 2018/08/14 17:26:59 UTC
Review Request 68348: Fixed wrong `mnt` namespace detection for
non-command executor tasks.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68348/
-----------------------------------------------------------
Review request for mesos, Alexander Rukletsov, Gilbert Song, Jie Yu, and Kevin Klues.
Bugs: MESOS-9116
https://issues.apache.org/jira/browse/MESOS-9116
Repository: mesos
Description
-------
Previously, we were calling `getMountNamespaceTarget()` not only in
case of the command executor but in all other cases too, including
the default executor. That might lead to various subtle bugs, caused by
wrong detection of `mnt` namespace target. This patch fixes the issue
by setting a parent PID as `mnt` namespace target in case of
non-command executor task.
Diffs
-----
src/slave/containerizer/mesos/containerizer.cpp 98129d006cda9b65804b518619b6addc8990410a
Diff: https://reviews.apache.org/r/68348/diff/1/
Testing
-------
1. sudo make check (Fedora 25)
2. internal CI
Thanks,
Andrei Budnik
Re: Review Request 68348: Fixed wrong `mnt` namespace detection for
non-command executor tasks.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68348/#review207552
-----------------------------------------------------------
Fix it, then Ship it!
Maybe mention in "testing done" the newly added `ROOT_CGROUPS_LaunchNestedDebugAfterUnshareMntNamespace` test?
src/slave/containerizer/mesos/containerizer.cpp
Line 1943 (original), 1943 (patched)
<https://reviews.apache.org/r/68348/#comment290942>
s/container/parentContainer
src/slave/containerizer/mesos/containerizer.cpp
Lines 1952 (patched)
<https://reviews.apache.org/r/68348/#comment290943>
s/enter task's/enter the task's
- Alexander Rukletsov
On Aug. 14, 2018, 5:26 p.m., Andrei Budnik wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68348/
> -----------------------------------------------------------
>
> (Updated Aug. 14, 2018, 5:26 p.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Gilbert Song, Jie Yu, and Kevin Klues.
>
>
> Bugs: MESOS-9116
> https://issues.apache.org/jira/browse/MESOS-9116
>
>
> Repository: mesos
>
>
> Description
> -------
>
> Previously, we were calling `getMountNamespaceTarget()` not only in
> case of the command executor but in all other cases too, including
> the default executor. That might lead to various subtle bugs, caused by
> wrong detection of `mnt` namespace target. This patch fixes the issue
> by setting a parent PID as `mnt` namespace target in case of
> non-command executor task.
>
>
> Diffs
> -----
>
> src/slave/containerizer/mesos/containerizer.cpp 98129d006cda9b65804b518619b6addc8990410a
>
>
> Diff: https://reviews.apache.org/r/68348/diff/2/
>
>
> Testing
> -------
>
> 1. sudo make check (Fedora 25)
> 2. internal CI
>
>
> Thanks,
>
> Andrei Budnik
>
>
Re: Review Request 68348: Fixed wrong `mnt` namespace detection for
non-command executor tasks.
Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68348/#review207492
-----------------------------------------------------------
FAIL: Some of the unit tests failed. Please check the relevant logs.
Reviews applied: `['68256', '68257', '68408', '68348']`
Failed command: `Start-MesosCITesting`
All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/artifacts/mesos-reviewbot-testing/2183/mesos-review-68348
Relevant logs:
- [mesos-tests.log](http://dcos-win.westus.cloudapp.azure.com/artifacts/mesos-reviewbot-testing/2183/mesos-review-68348/logs/mesos-tests.log):
```
I0817 13:38:26.737844 204300 hierarchical.cpp:306] Added framework dccdb30e-13ac-4438-a2a6-6383d864e26a-0000
E0817 13:38:27.927847 141904 slave.cpp:7269] EXIT with status 1: Failed to perform recovery: Collect failed: Docker ps batch failed Collect failed: Failed to create subprocess 'docker -H npipe:////./pipe/docker_engine inspect mesos-dfa8e1ba-f235-45b6-9b1c-b5b4275c9eb4': Failed to call `CreateProcess`: cmd.exe /c "docker -H npipe:////./pipe/docker_engine inspect mesos-dfa8e1ba-f235-45b6-9b1c-b5b4275c9eb4"