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 2017/09/18 12:27:14 UTC

Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/
-----------------------------------------------------------

Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.


Bugs: MESOS-4812
    https://issues.apache.org/jira/browse/MESOS-4812


Repository: mesos


Description
-------

Mesos can enter namespaces via `setns` for launched subprocesses, hence
we got rid of `docker exec` for command health checks. This change
leads to more stable command health checks by making them independent
from docker daemon that might hang. Also, this commit fixes the issue
with incorrect escaping of quote characters in command health checks.


Diffs
-----

  src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
  src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 


Diff: https://reviews.apache.org/r/62381/diff/1/


Testing
-------

internal CI


Thanks,

Andrei Budnik


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185548
-----------------------------------------------------------



FAIL: Mesos tests failed to build.

Reviews applied: `['62381']`

Failed command: `cmake.exe --build . --target mesos-tests --config Debug`

All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381

Relevant logs:

- [mesos-tests-build-cmake-stdout.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381/logs/mesos-tests-build-cmake-stdout.log):

```


"C:\mesos\src\tests\mesos-tests.vcxproj" (default target) (1) ->
"C:\mesos\src\checks\mesos-tcp-connect.vcxproj" (default target) (26) ->
  C:\mesos\mesos\src\checks\tcp_connect.cpp(93): warning C4244: 'initializing': conversion from 'SOCKET' to 'int', possible loss of data [C:\mesos\src\checks\mesos-tcp-connect.vcxproj]


"C:\mesos\src\tests\mesos-tests.vcxproj" (default target) (1) ->
"C:\mesos\src\tests\test-helper.vcxproj" (default target) (28) ->
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(56): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\active_user_test_helper.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(436): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\active_user_test_helper.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(56): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\http_server_test_helper.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(436): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\http_server_test_helper.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\src\tests\resources_utils.cpp(93): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(56): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\flags.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(436): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\flags.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(56): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\utils.cpp) [C:\mesos\src\tests\test-helper.vcxproj]
  C:\mesos\mesos\3rdparty\stout\include\stout/windows/os.hpp(436): warning C4996: 'GetVersionExW': was declared deprecated (compiling source file C:\mesos\mesos\src\tests\utils.cpp) [C:\mesos\src\tests\test-helper.vcxproj]


"C:\mesos\src\tests\mesos-tests.vcxproj" (default target) (1) ->
"C:\mesos\src\docker\mesos-docker-executor.vcxproj" (default target) (24) ->
(ClCompile target) -> 
  C:\mesos\mesos\src\linux/ns.hpp(22): fatal error C1189: #error:  "linux/ns.hpp is only available on Linux systems." [C:\mesos\src\docker\mesos-docker-executor.vcxproj]

    141 Warning(s)
    1 Error(s)

Time Elapsed 00:38:37.69
```

- [mesos-tests-CMakeOutput.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381/logs/mesos-tests-CMakeOutput.log):

```
  Creating directory "C:\mesos\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_2e741.dir\Debug\cmTC_2e741.tlog\".

InitializeBuildStatus:

  Creating "cmTC_2e741.dir\Debug\cmTC_2e741.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_CXX11 /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_2e741.dir\Debug\" /Fd"cmTC_2e741.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue C:\mesos\CMakeFiles\CMakeTmp\src.cxx

  Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_CXX11 /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_2e741.dir\Debug\" /Fd"cmTC_2e741.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue C:\mesos\CMakeFiles\CMakeTmp\src.cxx

  src.cxx

  

Link:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\mesos\CMakeFiles\CMakeTmp\Debug\cmTC_2e741.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/mesos/CMakeFiles/CMakeTmp/Debug/cmTC_2e741.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/mesos/CMakeFiles/CMakeTmp/Debug/cmTC_2e741.lib" /MACHINE:X64  /machine:x64 cmTC_2e741.dir\Debug\src.obj

  cmTC_2e741.vcxproj -> C:\mesos\CMakeFiles\CMakeTmp\Debug\cmTC_2e741.exe

  cmTC_2e741.vcxproj -> C:/mesos/CMakeFiles/CMakeTmp/Debug/cmTC_2e741.pdb (Full PDB)

FinalizeBuildStatus:

  Deleting file "cmTC_2e741.dir\Debug\cmTC_2e741.tlog\unsuccessfulbuild".

  Touching "cmTC_2e741.dir\Debug\cmTC_2e741.tlog\cmTC_2e741.lastbuildstate".

Done Building Project "C:\mesos\CMakeFiles\CMakeTmp\cmTC_2e741.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:02.06


Source file was:
int main() { return 0; }
```

- [mesos-tests-CMakeError.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381/logs/mesos-tests-CMakeError.log):

```
PrepareForBuild:

  Creating directory "cmTC_99f6d.dir\Debug\".

  Creating directory "C:\mesos\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_99f6d.dir\Debug\cmTC_99f6d.tlog\".

InitializeBuildStatus:

  Creating "cmTC_99f6d.dir\Debug\cmTC_99f6d.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /Gm- /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_99f6d.dir\Debug\" /Fd"cmTC_99f6d.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue C:\mesos\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /Gm- /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_99f6d.dir\Debug\" /Fd"cmTC_99f6d.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue C:\mesos\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  CheckIncludeFile.c

  

C:\mesos\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\mesos\CMakeFiles\CMakeTmp\cmTC_99f6d.vcxproj]

Done Building Project "C:\mesos\CMakeFiles\CMakeTmp\cmTC_99f6d.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\mesos\CMakeFiles\CMakeTmp\cmTC_99f6d.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\mesos\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\mesos\CMakeFiles\CMakeTmp\cmTC_99f6d.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:01.62



```

- Mesos Reviewbot Windows


On Sept. 18, 2017, 12:27 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 12:27 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/1/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185570
-----------------------------------------------------------



Patch looks great!

Reviews applied: [62381]

Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh

- Mesos Reviewbot


On Sept. 18, 2017, 12:27 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 12:27 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/1/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185690
-----------------------------------------------------------



Patch looks great!

Reviews applied: [62381]

Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh

- Mesos Reviewbot


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185622
-----------------------------------------------------------



FAIL: Some Mesos tests failed.

Reviews applied: `['62381']`

Failed command: `C:\mesos\src\mesos-tests.exe --verbose`

All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381

Relevant logs:

- [mesos-tests-stdout.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381/logs/mesos-tests-stdout.log):

```
[ RUN      ] ContentType/SchedulerTest.SchedulerReconnect/0
[       OK ] ContentType/SchedulerTest.SchedulerReconnect/0 (239 ms)
[ RUN      ] ContentType/SchedulerTest.SchedulerReconnect/1
[       OK ] ContentType/SchedulerTest.SchedulerReconnect/1 (257 ms)
[----------] 30 tests from ContentType/SchedulerTest (25468 ms total)

[----------] 2 tests from ContentTypeAndSSLConfig/SchedulerSSLTest
[ RUN      ] ContentTypeAndSSLConfig/SchedulerSSLTest.RunTaskAndTeardown/0
[       OK ] ContentTypeAndSSLConfig/SchedulerSSLTest.RunTaskAndTeardown/0 (952 ms)
[ RUN      ] ContentTypeAndSSLConfig/SchedulerSSLTest.RunTaskAndTeardown/1
[       OK ] ContentTypeAndSSLConfig/SchedulerSSLTest.RunTaskAndTeardown/1 (1018 ms)
[----------] 2 tests from ContentTypeAndSSLConfig/SchedulerSSLTest (2049 ms total)

[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0 (144 ms)
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1 (154 ms)
[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest (333 ms total)

[----------] Global test environment tear-down
[==========] 627 tests from 66 test cases ran. (346444 ms total)
[  PASSED  ] 626 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ContentType/MasterAPITest.EventAuthorizationFiltering/1, where GetParam() = application/json

 1 FAILED TEST
  YOU HAVE 174 DISABLED TESTS

```

- [mesos-tests-stderr.log](http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/62381/logs/mesos-tests-stderr.log):

```
I0918 20:15:15.129381 20048 master.cpp:8418] Removing framework 1d91d741-8216-4725-96b3-9211950d051a-0000 (default)
I0918 20:15:15.130378 20048 master.cpp:3267] Deactivating framework 1d91d741-8216-4725-96b3-9211950d051a-0000 (default)
I0918 20:15:15.130378 19020 hierarchical.cpp:412] Deactivated framework 1d91d741-8216-4725-96b3-9211950d051a-0000
I0918 20:15:15.130378 17216 slave.cpp:3235] Shutting down framework 1d91d741-8216-4725-96b3-9211950d051a-0000
I0918 20:15:15.130378 20048 master.cpp:8993] Updating the state of task e2e6acbd-c12d-4aaf-b75a-ab9fcb6cb2d0 of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I0918 20:15:15.131378 17216 slave.cpp:5731] Shutting down executor 'default' of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 (via HTTP)
I0918 20:15:15.139425 20048 master.cpp:9087] Removing task e2e6acbd-c12d-4aaf-b75a-ab9fcb6cb2d0 with resources [{"allocation_info":{"role":"*"},"name":"cpus","scalar":{"value":2.0},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"mem","scalar":{"value":1024.0},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"disk","scalar":{"value":1024.0},"type":"SCALAR"},{"allocation_info":{"role":"*"},"name":"ports","ranges":{"range":[{"begin":31000,"end":32000}]},"type":"RANGES"}] of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 on agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0918 20:15:15.158382 20048 master.cpp:9116] Removing executor 'default' with resources [] of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 on agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0918 20:15:15.161382 19988 hierarchical.cpp:355] Removed framework 1d91d741-8216-4725-96b3-9211950d051a-0000
E0918 20:15:15.162381 19692 scheduler.cpp:649] End-Of-File received from master. The master closed the event stream
I0918 20:15:15.172384 19692 scheduler.cpp:444] Re-detecting master
I0918 20:15:15.174382 19020 scheduler.cpp:470] New master detected at master@10.3.1.5:51096
I0918 20:15:15.188383 19988 slave.cpp:5407] Executor 'default' of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 exited with status 0
I0918 20:15:15.188383 19988 slave.cpp:5511] Cleaning up executor 'default' of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 (via HTTP)
W0918 20:15:15.188383 19692 master.cpp:7021] Ignoring unknown exited executor 'default' of framework 1d91d741-8216-4725-96b3-9211950d051a-0000 on agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0918 20:15:15.188383 19908 gc.cpp:91] Scheduling 'C:\Users\mesos\AppData\Local\Temp\2\TomYjK\slaves\1d91d741-8216-4725-96b3-9211950d051a-S0\frameworks\1d91d741-8216-4725-96b3-9211950d051a-0000\executors\default\runs\5ca05c5f-a8d4-4a2a-a42e-5ebb5853191a' for gc 6.99998624555556days in the future
I0918 20:15:15.188383 19988 slave.cpp:5607] Cleaning up framework 1d91d741-8216-4725-96b3-9211950d051a-0000
I0918 20:15:15.236774 19692 status_update_manager.cpp:285] Closing status update streams for framework 1d91d741-8216-4725-96b3-9211950d051a-0000
I0918 20:15:15.236774 19908 gc.cpp:91] Scheduling 'C:\Users\mesos\AppData\Local\Temp\2\TomYjK\slaves\1d91d741-8216-4725-96b3-9211950d051a-S0\frameworks\1d91d741-8216-4725-96b3-9211950d051a-0000\executors\default' for gc 6.99998624555556days in the future
I0918 20:15:15.237795 19908 gc.cpp:91] Scheduling 'C:\Users\mesos\AppData\Local\Temp\2\TomYjK\slaves\1d91d741-8216-4725-96b3-9211950d051a-S0\frameworks\1d91d741-8216-4725-96b3-9211950d051a-0000' for gc 6.99998568547556days in the future
I0918 20:15:15.237795 19988 slave.cpp:861] Agent terminating
I0918 20:15:15.238782 19020 master.cpp:1321] Agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I0918 20:15:15.249435 19020 master.cpp:3304] Disconnecting agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0918 20:15:15.249781 19020 master.cpp:3323] Deactivating agent 1d91d741-8216-4725-96b3-9211950d051a-S0 at slave(254)@10.3.1.5:51096 (mesos-bld-s1.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0918 20:15:15.249781 19692 hierarchical.cpp:690] Agent 1d91d741-8216-4725-96b3-9211950d051a-S0 deactivated
I0918 20:15:15.271785 19392 master.cpp:1163] Master terminating
I0918 20:15:15.275784 19988 hierarchical.cpp:626] Removed agent 1d91d741-8216-4725-96b3-9211950d051a-S0
W0918 20:15:15.284785 19392 master.hpp:2761] Failed to close HTTP pipe for 1d91d741-8216-4725-96b3-9211950d051a-0000 (default)
I0918 20:15:15.960824 19968 process.cpp:1068] Failed to accept socket: future discarded
```

- Mesos Reviewbot Windows


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Andrei Budnik <ab...@mesosphere.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review186559
-----------------------------------------------------------




src/docker/executor.cpp
Line 609 (original)
<https://reviews.apache.org/r/62381/#comment263114>

    `docker exec` is needed for Windows.


- Andrei Budnik


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Andrew Schwartzmeyer, Gaston Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Andrei Budnik <ab...@mesosphere.com>.

> On Sept. 19, 2017, 11:13 p.m., Gastón Kleiman wrote:
> > src/tests/health_check_tests.cpp
> > Lines 1121 (patched)
> > <https://reviews.apache.org/r/62381/diff/2/?file=1828610#file1828610line1139>
> >
> >     I think that we have to use `TEST_F_TEMP_DISABLED_ON_WINDOWS` here.

This test passes on Windows. Is it really necessary to use `TEST_F_TEMP_DISABLED_ON_WINDOWS`?


- Andrei


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185744
-----------------------------------------------------------


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Andrew Schwartzmeyer, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Andrei Budnik <ab...@mesosphere.com>.

> On Sept. 19, 2017, 11:13 p.m., Gastón Kleiman wrote:
> > src/docker/executor.cpp
> > Line 590 (original), 596 (patched)
> > <https://reviews.apache.org/r/62381/diff/2/?file=1828609#file1828609line596>
> >
> >     We should check with Andrew Schwarztmeyer to see what to do on Windows.
> 
> Alexander Rukletsov wrote:
>     And at least shorten the scope of the #ifdef to filtering available namespaces.

Why we should shorten it? Do we expect that Windows will support namespaces someday?


- Andrei


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185744
-----------------------------------------------------------


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Gaston Kleiman <ga...@mesosphere.io>.

> On Sept. 19, 2017, 4:13 p.m., Gaston Kleiman wrote:
> > src/tests/health_check_tests.cpp
> > Lines 1121 (patched)
> > <https://reviews.apache.org/r/62381/diff/2/?file=1828610#file1828610line1139>
> >
> >     I think that we have to use `TEST_F_TEMP_DISABLED_ON_WINDOWS` here.
> 
> Andrei Budnik wrote:
>     This test passes on Windows. Is it really necessary to use `TEST_F_TEMP_DISABLED_ON_WINDOWS`?

Ok, I didn't know if/how Docker works on Windows, dropping this issue =).


- Gaston


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185744
-----------------------------------------------------------


On Sept. 18, 2017, 10:21 a.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 10:21 a.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Andrew Schwartzmeyer, Gaston Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Alexander Rukletsov <ru...@gmail.com>.

> On Sept. 19, 2017, 11:13 p.m., Gastón Kleiman wrote:
> > src/docker/executor.cpp
> > Line 590 (original), 596 (patched)
> > <https://reviews.apache.org/r/62381/diff/2/?file=1828609#file1828609line596>
> >
> >     We should check with Andrew Schwarztmeyer to see what to do on Windows.

And at least shorten the scope of the #ifdef to filtering available namespaces.


- Alexander


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185744
-----------------------------------------------------------


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Gastón Kleiman <ga...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/#review185744
-----------------------------------------------------------




src/docker/executor.cpp
Line 590 (original), 596 (patched)
<https://reviews.apache.org/r/62381/#comment262096>

    We should check with Andrew Schwarztmeyer to see what to do on Windows.



src/tests/health_check_tests.cpp
Lines 1121 (patched)
<https://reviews.apache.org/r/62381/#comment262097>

    I think that we have to use `TEST_F_TEMP_DISABLED_ON_WINDOWS` here.



src/tests/health_check_tests.cpp
Lines 1162 (patched)
<https://reviews.apache.org/r/62381/#comment262094>

    s/EXPECT_NE(0u, offers.get().size());/ASSERT_FALSE(offers->>empty());/


- Gastón Kleiman


On Sept. 18, 2017, 5:21 p.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62381/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2017, 5:21 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.
> 
> 
> Bugs: MESOS-4812
>     https://issues.apache.org/jira/browse/MESOS-4812
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Mesos can enter namespaces via `setns` for launched subprocesses, hence
> we got rid of `docker exec` for command health checks. This change
> leads to more stable command health checks by making them independent
> from docker daemon that might hang. Also, this commit fixes the issue
> with incorrect escaping of quote characters in command health checks.
> 
> 
> Diffs
> -----
> 
>   src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
>   src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 
> 
> 
> Diff: https://reviews.apache.org/r/62381/diff/2/
> 
> 
> Testing
> -------
> 
> internal CI
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>


Re: Review Request 62381: Removed `docker exec` when performing health checks in docker executor.

Posted by Andrei Budnik <ab...@mesosphere.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62381/
-----------------------------------------------------------

(Updated Sept. 18, 2017, 5:21 p.m.)


Review request for mesos, Alexander Rukletsov, Gastón Kleiman, haosdent huang, and Lukas Loesche.


Changes
-------

Fixed build on Mac and Windows.


Bugs: MESOS-4812
    https://issues.apache.org/jira/browse/MESOS-4812


Repository: mesos


Description
-------

Mesos can enter namespaces via `setns` for launched subprocesses, hence
we got rid of `docker exec` for command health checks. This change
leads to more stable command health checks by making them independent
from docker daemon that might hang. Also, this commit fixes the issue
with incorrect escaping of quote characters in command health checks.


Diffs (updated)
-----

  src/docker/executor.cpp e9949f652cd8527991ebfdfbf14e68b4c958fe79 
  src/tests/health_check_tests.cpp f4b50b1cb505084f64bf2dd279d9189ca65c8cdc 


Diff: https://reviews.apache.org/r/62381/diff/2/

Changes: https://reviews.apache.org/r/62381/diff/1-2/


Testing
-------

internal CI


Thanks,

Andrei Budnik