You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Qian Zhang <zh...@gmail.com> on 2017/08/07 15:12:05 UTC
Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest.ROOT_PidNamespace`.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/
-----------------------------------------------------------
Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
Repository: mesos
Description
-------
In this test, we used the command `stat -c %i /proc/self/ns/pid` to
get the current process's pid namespace inode, that is not correct
since `/proc/self/ns/pid` is a symbol link, we should get the inode
that the link references rather than the link itself. So we need to
add a `-L` option in the `stat` command.
Diffs
-----
src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
Diff: https://reviews.apache.org/r/61463/diff/1/
Testing
-------
Thanks,
Qian Zhang
Re: Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest.ROOT_PidNamespace`.
Posted by Qian Zhang <zh...@gmail.com>.
> On Aug. 8, 2017, 8:05 a.m., Gastón Kleiman wrote:
> > src/tests/containerizer/isolator_tests.cpp
> > Line 176 (original), 176 (patched)
> > <https://reviews.apache.org/r/61463/diff/1/?file=1790647#file1790647line176>
> >
> > `/proc/self/ns/ipc` is also a symlink, should we change this line too?
Good catch!
- Qian
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/#review182344
-----------------------------------------------------------
On Aug. 7, 2017, 11:12 p.m., Qian Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61463/
> -----------------------------------------------------------
>
> (Updated Aug. 7, 2017, 11:12 p.m.)
>
>
> Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> In this test, we used the command `stat -c %i /proc/self/ns/pid` to
> get the current process's pid namespace inode, that is not correct
> since `/proc/self/ns/pid` is a symbol link, we should get the inode
> that the link references rather than the link itself. So we need to
> add a `-L` option in the `stat` command.
>
>
> Diffs
> -----
>
> src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
>
>
> Diff: https://reviews.apache.org/r/61463/diff/1/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qian Zhang
>
>
Re: Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest.ROOT_PidNamespace`.
Posted by Gastón Kleiman <ga...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/#review182344
-----------------------------------------------------------
Fix it, then Ship it!
src/tests/containerizer/isolator_tests.cpp
Line 176 (original), 176 (patched)
<https://reviews.apache.org/r/61463/#comment258215>
`/proc/self/ns/ipc` is also a symlink, should we change this line too?
- Gastón Kleiman
On Aug. 7, 2017, 3:12 p.m., Qian Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61463/
> -----------------------------------------------------------
>
> (Updated Aug. 7, 2017, 3:12 p.m.)
>
>
> Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> In this test, we used the command `stat -c %i /proc/self/ns/pid` to
> get the current process's pid namespace inode, that is not correct
> since `/proc/self/ns/pid` is a symbol link, we should get the inode
> that the link references rather than the link itself. So we need to
> add a `-L` option in the `stat` command.
>
>
> Diffs
> -----
>
> src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
>
>
> Diff: https://reviews.apache.org/r/61463/diff/1/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qian Zhang
>
>
Re: Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest.ROOT_PidNamespace`.
Posted by Gilbert Song <so...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/#review182343
-----------------------------------------------------------
Ship it!
Ship It!
- Gilbert Song
On Aug. 7, 2017, 8:12 a.m., Qian Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61463/
> -----------------------------------------------------------
>
> (Updated Aug. 7, 2017, 8:12 a.m.)
>
>
> Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> In this test, we used the command `stat -c %i /proc/self/ns/pid` to
> get the current process's pid namespace inode, that is not correct
> since `/proc/self/ns/pid` is a symbol link, we should get the inode
> that the link references rather than the link itself. So we need to
> add a `-L` option in the `stat` command.
>
>
> Diffs
> -----
>
> src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
>
>
> Diff: https://reviews.apache.org/r/61463/diff/1/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qian Zhang
>
>
Re: Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest`.
Posted by Gilbert Song <so...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/#review182741
-----------------------------------------------------------
Ship it!
Ship It!
- Gilbert Song
On Aug. 8, 2017, 2:43 a.m., Qian Zhang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61463/
> -----------------------------------------------------------
>
> (Updated Aug. 8, 2017, 2:43 a.m.)
>
>
> Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> In this test, we used the command `stat -c %i` to get the current
> process's pid/ipc namespace inode, that is not correct since
> `/proc/self/ns/pid` and `/proc/self/ns/ipc` are symbol links, we
> should get the inode that the link references rather than the link
> itself. So we need to add a `-L` option in the `stat` command.
>
>
> Diffs
> -----
>
> src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
>
>
> Diff: https://reviews.apache.org/r/61463/diff/2/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Qian Zhang
>
>
Re: Review Request 61463: Fixed a bug in the test
`NamespacesIsolatorTest`.
Posted by Qian Zhang <zh...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61463/
-----------------------------------------------------------
(Updated Aug. 8, 2017, 5:43 p.m.)
Review request for mesos, Gastón Kleiman, Gilbert Song, Jie Yu, Kevin Klues, and Vinod Kone.
Changes
-------
Addressed comments.
Summary (updated)
-----------------
Fixed a bug in the test `NamespacesIsolatorTest`.
Repository: mesos
Description (updated)
-------
In this test, we used the command `stat -c %i` to get the current
process's pid/ipc namespace inode, that is not correct since
`/proc/self/ns/pid` and `/proc/self/ns/ipc` are symbol links, we
should get the inode that the link references rather than the link
itself. So we need to add a `-L` option in the `stat` command.
Diffs (updated)
-----
src/tests/containerizer/isolator_tests.cpp f3c541c92f8ecc5c12356363bbbf3561d3b75230
Diff: https://reviews.apache.org/r/61463/diff/2/
Changes: https://reviews.apache.org/r/61463/diff/1-2/
Testing
-------
Thanks,
Qian Zhang