You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Benjamin Bannier <be...@mesosphere.io> on 2018/03/13 17:26:27 UTC

Review Request 66037: Enabled agent resource provider capability by default.

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

Review request for mesos, Jie Yu and Jan Schlicht.


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


Repository: mesos


Description
-------

This patch add `RESOURCE_PROVIDER` to the list of default-enabled
agent capabilities. In addition we also adjust tests to accommodate
the change in the agent registration protocol this triggers.


Diffs
-----

  src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
  src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
  src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
  src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
  src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
  src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
  src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
  src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
  src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 


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


Testing
-------

`sudo make check`


Thanks,

Benjamin Bannier


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



PASS: Mesos patch 66037 was successfully built and tested.

Reviews applied: `['66037']`

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

- Mesos Reviewbot Windows


On March 13, 2018, 5:26 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 13, 2018, 5:26 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/1/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Jan Schlicht <ja...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/#review199662
-----------------------------------------------------------



Looks great, thanks for making the capability the default!


src/tests/persistent_volume_tests.cpp
Lines 726-727 (original), 663-664 (patched)
<https://reviews.apache.org/r/66037/#comment280045>

    In the context of this test case, `updateSlaveMessage2` is enough information to expect offers and `slaveReregistered` can be removed.



src/tests/persistent_volume_tests.cpp
Line 749 (original), 687 (patched)
<https://reviews.apache.org/r/66037/#comment280048>

    Remove this.



src/tests/persistent_volume_tests.cpp
Lines 1651-1652 (original), 1591-1592 (patched)
<https://reviews.apache.org/r/66037/#comment280046>

    See above, `slaveReregistered` can be removed.



src/tests/persistent_volume_tests.cpp
Line 1668 (original), 1609 (patched)
<https://reviews.apache.org/r/66037/#comment280047>

    Remove this.



src/tests/reservation_tests.cpp
Lines 21 (patched)
<https://reviews.apache.org/r/66037/#comment280041>

    Put this above `#include <iostream>` to keep the includes sorted.



src/tests/slave_tests.cpp
Line 1610 (original)
<https://reviews.apache.org/r/66037/#comment280042>

    Why do you remove this contains check?


- Jan Schlicht


On March 14, 2018, 2:09 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 14, 2018, 2:09 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp e81d6ed25984c14e4143a048848c96e44e4f16e4 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp c8997ec41fe0c3e02b0f6ab205c9009205c992da 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/2/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



FAIL: Some of the unit tests failed. Please check the relevant logs.

Reviews applied: `['66037']`

Failed command: `Start-MesosCITesting`

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

Relevant logs:

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

```
[ RUN      ] TimeTest.Output
[       OK ] TimeTest.Output (0 ms)
[----------] 4 tests from TimeTest (5 ms total)

[----------] 3 tests from TimeSeriesTest
[ RUN      ] TimeSeriesTest.Set
[       OK ] TimeSeriesTest.Set (1 ms)
[ RUN      ] TimeSeriesTest.Sparsify
[       OK ] TimeSeriesTest.Sparsify (2 ms)
[ RUN      ] TimeSeriesTest.Truncate
[       OK ] TimeSeriesTest.Truncate (2 ms)
[----------] 3 tests from TimeSeriesTest (6 ms total)

[----------] 3 tests from JWTTest
[ RUN      ] JWTTest.Parse
[       OK ] JWTTest.Parse (9 ms)
[ RUN      ] JWTTest.Create
[       OK ] JWTTest.Create (1 ms)
[ RUN      ] JWTTest.Stringify
[       OK ] JWTTest.Stringify (0 ms)
[----------] 3 tests from JWTTest (14 ms total)

[----------] 1 test from SSL
[ RUN      ] SSL.Disabled
[       OK ] SSL.Disabled (10 ms)
[----------] 1 test from SSL (11 ms total)

[----------] 17 tests from SSLTest
[ RUN      ] SSLTest.SSLSocket
```

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

```
ABORT: (D:\DCOS\mesos\mesos\3rdparty\libprocess\include\process/ssl/gtest.hpp:171): Could not generate certificate: Failed to set common name: X509_NAME_add_entry_by_txt
```

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

```
[       OK ] ContentType/SchedulerTest.Revive/1 (343 ms)
[ RUN      ] ContentType/SchedulerTest.Suppress/0
[       OK ] ContentType/SchedulerTest.Suppress/0 (338 ms)
[ RUN      ] ContentType/SchedulerTest.Suppress/1
[       OK ] ContentType/SchedulerTest.Suppress/1 (354 ms)
[ RUN      ] ContentType/SchedulerTest.NoOffersWithAllRolesSuppressed/0
[       OK ] ContentType/SchedulerTest.NoOffersWithAllRolesSuppressed/0 (328 ms)
[ RUN      ] ContentType/SchedulerTest.NoOffersWithAllRolesSuppressed/1
[       OK ] ContentType/SchedulerTest.NoOffersWithAllRolesSuppressed/1 (380 ms)
[ RUN      ] ContentType/SchedulerTest.NoOffersOnReregistrationWithAllRolesSuppressed/0
[       OK ] ContentType/SchedulerTest.NoOffersOnReregistrationWithAllRolesSuppressed/0 (414 ms)
[ RUN      ] ContentType/SchedulerTest.NoOffersOnReregistrationWithAllRolesSuppressed/1
[       OK ] ContentType/SchedulerTest.NoOffersOnReregistrationWithAllRolesSuppressed/1 (420 ms)
[ RUN      ] ContentType/SchedulerTest.Message/0
[       OK ] ContentType/SchedulerTest.Message/0 (440 ms)
[ RUN      ] ContentType/SchedulerTest.Message/1
[       OK ] ContentType/SchedulerTest.Message/1 (417 ms)
[ RUN      ] ContentType/SchedulerTest.Request/0
[       OK ] ContentType/SchedulerTest.Request/0 (148 ms)
[ RUN      ] ContentType/SchedulerTest.Request/1
[       OK ] ContentType/SchedulerTest.Request/1 (158 ms)
[ RUN      ] ContentType/SchedulerTest.SchedulerReconnect/0
[       OK ] ContentType/SchedulerTest.SchedulerReconnect/0 (112 ms)
[ RUN      ] ContentType/SchedulerTest.SchedulerReconnect/1
[       OK ] ContentType/SchedulerTest.SchedulerReconnect/1 (108 ms)
[----------] 32 tests from ContentType/SchedulerTest (18823 ms total)

[----------] 4 tests from ContentTypeAndSSLConfig/SchedulerSSLTest
[ RUN      ] ContentTypeAndSSLConfig/SchedulerSSLTest.RunTaskAndTeardown/0
```

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

```
I0314 14:07:07.654297  3784 scheduler.cpp:311] Using default 'basic' HTTP authenticatee
I0314 14:07:07.656338 12320 scheduler.cpp:494] New master detected at master@10.3.1.8:51772
I0314 14:07:07.664337  7720 scheduler.cpp:468] Re-detecting master
I0314 14:07:07.667351  7720 scheduler.cpp:494] New master detected at master@10.3.1.8:51772
I0314 14:07:07.676403 12488 scheduler.cpp:472] Lost leading master
I0314 14:07:07.683341  5936 master.cpp:1131] Master terminating
I0314 14:07:07.712404  5936 cluster.cpp:172] Creating default 'local' authorizer
I0314 14:07:07.721438 13376 master.cpp:458] Master 9ea0ed67-5c4f-451b-b74c-9ac609fb2c07 (win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) started on 10.3.1.8:51772
I0314 14:07:07.721438 13376 master.cpp:460] Flags at startup: --acls="" --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate_agents="true" --authenticate_frameworks="true" --authenticate_http_frameworks="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authenticators="crammd5" --authorizers="local" --credentials="C:\Users\mesos\AppData\Local\Temp\ybrErC\credentials" --filter_gpu_resources="true" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --http_framework_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_unreachable_tasks_per_framework="1000" --port="5050" --quiet="false" --recovery_agent_removal_limit="100%" --registry="in_memory"
  --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="100secs" --registry_strict="false" --require_agent_domain="false" --root_submissions="true" --user_sorter="drf" --version="false" --webui_dir="/webui" --work_dir="C:\Users\mesos\AppData\Local\Temp\ybrErC\master" --zk_session_timeout="10secs"
I0314 14:07:07.725404 13376 master.cpp:509] Master only allowing authenticated frameworks to register
I0314 14:07:07.725404 13376 master.cpp:515] Master only allowing authenticated agents to register
I0314 14:07:07.725404 13376 master.cpp:521] Master only allowing authenticated HTTP frameworks to register
I0314 14:07:07.725404 13376 credentials.hpp:37] Loading credentials for authentication from 'C:\Users\mesos\AppData\Local\Temp\ybrErC\credentials'
I0314 14:07:07.726438 13376 master.cpp:565] Using default 'crammd5' authenticator
I0314 14:07:07.726438 13376 http.cpp:1045] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readonly'
I0314 14:07:07.727445 13376 http.cpp:1045] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readwrite'
I0314 14:07:07.728423 13376 http.cpp:1045] Creating default 'basic' HTTP authenticator for realm 'mesos-master-scheduler'
I0314 14:07:07.729409 13376 master.cpp:644] Authorization enabled
I0314 14:07:07.739419  7720 master.cpp:2114] Elected as the leading master!
I0314 14:07:07.739419  7720 master.cpp:1673] Recovering from registrar
I0314 14:07:07.742404 10672 registrar.cpp:391] Successfully fetched the registry (0B) in 2.985216ms
I0314 14:07:07.742404 10672 registrar.cpp:495] Applied 1 operations in 0ns; attempting to update the registry
I0314 14:07:07.744438 12488 registrar.cpp:552] Successfully updated the registry in 2.03392ms
I0314 14:07:07.744438 12488 registrar.cpp:424] Successfully recovered registrar
I0314 14:07:07.745442 13356 master.cpp:1787] Recovered 0 agents from the registry (239B); allowing 10mins for agents to reregister
I0314 14:07:07.753403  5936 scheduler.cpp:188] Version: 1.6.0
I0314 14:07:07.754407  2176 scheduler.cpp:311] Using default 'basic' HTTP authenticatee
I0314 14:07:07.756404 13828 scheduler.cpp:494] New master detected at master@10.3.1.8:51772
I0314 14:07:07.765444 13376 schedulABORT: (D:\DCOS\mesos\mesos\3rdparty\libprocess\include\process/ssl/gtest.hpp:171): Could not generate certificate: Failed to set common name: X509_NAME_add_entry_by_txt
```

- Mesos Reviewbot Windows


On March 14, 2018, 1:09 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 14, 2018, 1:09 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp e81d6ed25984c14e4143a048848c96e44e4f16e4 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp c8997ec41fe0c3e02b0f6ab205c9009205c992da 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/2/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 14, 2018, 1:09 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 14, 2018, 1:09 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp e81d6ed25984c14e4143a048848c96e44e4f16e4 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp c8997ec41fe0c3e02b0f6ab205c9009205c992da 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/2/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Jan Schlicht <ja...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/#review199864
-----------------------------------------------------------


Ship it!




Ship It!

- Jan Schlicht


On March 21, 2018, 3:58 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 21, 2018, 3:58 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp 36c72db8d851d813fa739a8bf267f07d1b76ca3d 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/3/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 23, 2018, 3:07 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 3:07 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/4/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



FAIL: Some of the unit tests failed. Please check the relevant logs.

Reviews applied: `['66037']`

Failed command: `Start-MesosCITesting`

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

Relevant logs:

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

```
[       OK ] Endpoint/SlaveEndpointTest.NoAuthorizer/2 (107 ms)
[----------] 9 tests from Endpoint/SlaveEndpointTest (995 ms total)

[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0 (32 ms)
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1 (39 ms)
[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest (73 ms total)

[----------] 1 test from IsolationFlag/CpuIsolatorTest
[ RUN      ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0
[       OK ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0 (788 ms)
[----------] 1 test from IsolationFlag/CpuIsolatorTest (808 ms total)

[----------] 1 test from IsolationFlag/MemoryIsolatorTest
[ RUN      ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0
[       OK ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0 (844 ms)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest (864 ms total)

[----------] Global test environment tear-down
[==========] 949 tests from 94 test cases ran. (444603 ms total)
[  PASSED  ] 948 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CommandExecutorCheckTest.CommandCheckTimeout

 1 FAILED TEST
  YOU HAVE 215 DISABLED TESTS

```

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

```
I0323 17:53:19.197788  1636 master.cpp:10446] Updating the state of task 2f6cc332-5b9f-4265-be86-93afde624a59 of framework 70c7fb63-a527-4f24-85c0-e374f56eec71-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I0323 17:53:19.197788  6416 slave.cpp:3873] Shutting down framework 70c7fb63-a527-4f24-85c0-e374f56eec71-0000
I0323 17:53:19.199072  6416 slave.cpp:6566] Shutting down executor '2f6cc332-5b9f-4265-be86-93afde624a59' of framework 70c7fb63-a527-4f24-85c0-e374f56eec71-0000 at executor(1)@10.3.1.5:52025
I0323 17:53:19.200773  6416 slave.cpp:919] Agent terminating
I0323 17:53:19.200773  1636 master.cpp:10545] Removing task 2f6cc332-5b9f-4265-be86-93afde624a59 with resources cpus(allocated: *):4; mem(allocated: *):2048; disk(allocated: *):1024; ports(allocated: *):[31000-32000] of framework 70cI0323 17:53:19.002023  7080 exec.cpp:162] Version: 1.6.0
I0323 17:53:19.029784  5744 exec.cpp:236] Executor registered on agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0
I0323 17:53:19.034785  8864 executor.cpp:176] Received SUBSCRIBED event
I0323 17:53:19.038785  8864 executor.cpp:180] Subscribed executor on winbldsrv-02.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net
I0323 17:53:19.039785  8864 executor.cpp:176] Received LAUNCH event
I0323 17:53:19.044785  8864 executor.cpp:648] Starting task 2f6cc332-5b9f-4265-be86-93afde624a59
I0323 17:53:19.133824  8864 executor.cpp:483] Running 'D:\DCOS\mesos\src\mesos-containerizer.exe launch <POSSIBLY-SENSITIVE-DATA>'
I0323 17:53:19.161787  8864 executor.cpp:661] Forked command at 2528
I0323 17:53:19.201773  7032 exec.cpp:445] Executor asked to shutdown
I0323 17:53:19.201773  8084 executor.cpp:176] Received SHUTDOWN event
I0323 17:53:19.201773  8084 executor.cpp:758] Shutting down
I0323 17:53:19.201773  8084 executor.cpp:868] Sending SIGTERM to process tree at pid 27fb63-a527-4f24-85c0-e374f56eec71-0000 on agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0 at slave(418)@10.3.1.5:52004 (winbldsrv-02.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
W0323 17:53:19.200773  6416 slave.cpp:3869] Ignoring shutdown framework 70c7fb63-a527-4f24-85c0-e374f56eec71-0000 because it is terminating
I0323 17:53:19.203778  1636 master.cpp:1295] Agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0 at slave(418)@10.3.1.5:52004 (winbldsrv-02.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I0323 17:53:19.203778  1636 master.cpp:3283] Disconnecting agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0 at slave(418)@10.3.1.5:52004 (winbldsrv-02.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0323 17:53:19.204780  1636 master.cpp:3302] Deactivating agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0 at slave(418)@10.3.1.5:52004 (winbldsrv-02.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0323 17:53:19.204780  8348 containerizer.cpp:2338] Destroying container f687c34d-d387-4641-b5d2-31ddb5a84b8a in RUNNING state
I0323 17:53:19.204780  1632 hierarchical.cpp:344] Removed framework 70c7fb63-a527-4f24-85c0-e374f56eec71-0000
I0323 17:53:19.205795  8348 containerizer.cpp:2952] Transitioning the state of container f687c34d-d387-4641-b5d2-31ddb5a84b8a from RUNNING to DESTROYING
I0323 17:53:19.205795  1632 hierarchical.cpp:766] Agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0 deactivated
I0323 17:53:19.205795  8348 launcher.cpp:156] Asked to destroy container f687c34d-d387-4641-b5d2-31ddb5a84b8a
I0323 17:53:19.310585  2128 containerizer.cpp:2791] Container f687c34d-d387-4641-b5d2-31ddb5a84b8a has exited
I0323 17:53:19.342588  8372 master.cpp:1137] Master terminating
I0323 17:53:19.344549  8276 hierarchical.cpp:609] Removed agent 70c7fb63-a527-4f24-85c0-e374f56eec71-S0
I0323 17:53:19.767558  5964 process.cpp:929] Stopped the socket accept loop
```

- Mesos Reviewbot Windows


On March 23, 2018, 8:07 a.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 8:07 a.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/4/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Benjamin Bannier <be...@mesosphere.io>.

> On March 23, 2018, 6:29 p.m., Gaston Kleiman wrote:
> > src/tests/scheduler_tests.cpp
> > Lines 1121-1136 (patched)
> > <https://reviews.apache.org/r/66037/diff/4/?file=1986441#file1986441line1132>
> >
> >     Nit: this might be a matter of taste, but I think that the following is easier to follow:
> >     
> >     ```
> >     slaveFlags.agent_features = SlaveCapabilities();
> >     foreach (const SlaveInfo::Capability slaveCapability &,
> >              slave::AGENT_CAPABILITIES()) {
> >       if (capability.type() != SlaveInfo::Capability::RESOURCE_PROVIDER) {
> >         slaveFlags.agent_features->add_capability()->CopyFrom(slaveCapability);
> >       }
> >     }
> >     ```

Agree that this is a matter of taste, we however more like the flavor you suggest in the Mesos code base. Thanks!


- Benjamin


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


On March 23, 2018, 7:46 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 7:46 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/5/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Gaston Kleiman <ga...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/#review199898
-----------------------------------------------------------



I only looked at https://reviews.apache.org/r/66037/diff/3-4/, because the rest was reviewed by Jan.

I think that it looks good, I only added a comment regarding style, but I am also OK with the current version.


src/tests/scheduler_tests.cpp
Lines 1121-1136 (patched)
<https://reviews.apache.org/r/66037/#comment280410>

    Nit: this might be a matter of taste, but I think that the following is easier to follow:
    
    ```
    slaveFlags.agent_features = SlaveCapabilities();
    foreach (const SlaveInfo::Capability slaveCapability &,
             slave::AGENT_CAPABILITIES()) {
      if (capability.type() != SlaveInfo::Capability::RESOURCE_PROVIDER) {
        slaveFlags.agent_features->add_capability()->CopyFrom(slaveCapability);
      }
    }
    ```


- Gaston Kleiman


On March 23, 2018, 8:07 a.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 8:07 a.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/4/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Jan Schlicht <ja...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/#review199954
-----------------------------------------------------------


Ship it!




Thanks @gaston for the simplified `AGENT_CAPABILITIES` loop. Looks great!

- Jan Schlicht


On March 23, 2018, 7:46 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 7:46 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/6/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 23, 2018, 11:46 a.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 11:46 a.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/5/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 23, 2018, 6:46 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 6:46 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/6/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



FAIL: Some of the unit tests failed. Please check the relevant logs.

Reviews applied: `['66037']`

Failed command: `Start-MesosCITesting`

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

Relevant logs:

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

```
[       OK ] Endpoint/SlaveEndpointTest.NoAuthorizer/2 (114 ms)
[----------] 9 tests from Endpoint/SlaveEndpointTest (1053 ms total)

[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0 (35 ms)
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1 (39 ms)
[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest (76 ms total)

[----------] 1 test from IsolationFlag/CpuIsolatorTest
[ RUN      ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0
[       OK ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0 (745 ms)
[----------] 1 test from IsolationFlag/CpuIsolatorTest (769 ms total)

[----------] 1 test from IsolationFlag/MemoryIsolatorTest
[ RUN      ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0
[       OK ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0 (837 ms)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest (866 ms total)

[----------] Global test environment tear-down
[==========] 949 tests from 94 test cases ran. (449971 ms total)
[  PASSED  ] 948 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CommandExecutorCheckTest.CommandCheckTimeout

 1 FAILED TEST
  YOU HAVE 215 DISABLED TESTS

```

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

```
I0323 19:42:47.792302  5576 exec.cpp:236] Executor registered on agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0
I0323 19:42:47.797531  6656 executor.cpp:176] Received SUBSCRIBED event
I0323 19:42:47.802337  6656 executor.cpp:180] Subscribed executor on winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net
I0323 19:42:47.803324  6656 executor.cpp:176] Received LAUNCH event
I0323 19:42:47.808326  6656 executor.cpp:648] Starting task 277bf998-d847-47eb-8e43-ea9393b18fb3
I0323 19:42:47.896325  6656 executor.cpp:483] Running 'D:\DCOS\mesos\src\mesos-containerizer.exe launch <POSSIBLY-SENSITIVE-DATA>'
I0323 19:42:47.928294  6656 executor.cpp:661] Forked command at 8124
I0323 19:42:47.955308  2640 exec.cpp:445] Executor asked to shutdown
I0323 19:42:47.956300  6252 executor.cpp:176] Received SHUTDOWN event
I0323 19:42:47.956300  6252 executor.cpp:758] Shutting down
I0323 19:42:47.956300  6252 executor.cpp:868] Sending SIGTERM to process tree at pid 828-9bfb-4718-ad49-0bdee66b35af-0000
I0323 19:42:47.953287  6368 master.cpp:10446] Updating the state of task 277bf998-d847-47eb-8e43-ea9393b18fb3 of framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I0323 19:42:47.953287  7276 slave.cpp:3873] Shutting down framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000
I0323 19:42:47.954342  7276 slave.cpp:6566] Shutting down executor '277bf998-d847-47eb-8e43-ea9393b18fb3' of framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000 at executor(1)@10.3.1.8:52192
I0323 19:42:47.955308  8740 slave.cpp:919] Agent terminating
W0323 19:42:47.955308  8740 slave.cpp:3869] Ignoring shutdown framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000 because it is terminating
I0323 19:42:47.957293  6368 master.cpp:10545] Removing task 277bf998-d847-47eb-8e43-ea9393b18fb3 with resources cpus(allocated: *):4; mem(allocated: *):2048; disk(allocated: *):1024; ports(allocated: *):[31000-32000] of framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000 on agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0 at slave(418)@10.3.1.8:52171 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0323 19:42:47.959293  4732 containerizer.cpp:2338] Destroying container 0a3b0824-6fec-4b27-96ea-1389b81d05d1 in RUNNING state
I0323 19:42:47.959293  4732 containerizer.cpp:2952] Transitioning the state of container 0a3b0824-6fec-4b27-96ea-1389b81d05d1 from RUNNING to DESTROYING
I0323 19:42:47.960304  6368 master.cpp:1295] Agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0 at slave(418)@10.3.1.8:52171 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I0323 19:42:47.960304  6368 master.cpp:3283] Disconnecting agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0 at slave(418)@10.3.1.8:52171 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0323 19:42:47.960304  6368 master.cpp:3302] Deactivating agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0 at slave(418)@10.3.1.8:52171 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0323 19:42:47.960304  1196 hierarchical.cpp:344] Removed framework 43e18e28-9bfb-4718-ad49-0bdee66b35af-0000
I0323 19:42:47.960304  4732 launcher.cpp:156] Asked to destroy container 0a3b0824-6fec-4b27-96ea-1389b81d05d1
I0323 19:42:47.961297  1196 hierarchical.cpp:766] Agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0 deactivated
I0323 19:42:48.049037  6416 containerizer.cpp:2791] Container 0a3b0824-6fec-4b27-96ea-1389b81d05d1 has exited
I0323 19:42:48.080016  8740 master.cpp:1137] Master terminating
I0323 19:42:48.084020  4040 hierarchical.cpp:609] Removed agent 43e18e28-9bfb-4718-ad49-0bdee66b35af-S0
I0323 19:42:48.428062  6456 process.cpp:929] Stopped the socket accept loop
```

- Mesos Reviewbot Windows


On March 23, 2018, 6:46 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 6:46 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/5/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



FAIL: Some of the unit tests failed. Please check the relevant logs.

Reviews applied: `['66037']`

Failed command: `Start-MesosCITesting`

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

Relevant logs:

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

```
[       OK ] Endpoint/SlaveEndpointTest.NoAuthorizer/2 (115 ms)
[----------] 9 tests from Endpoint/SlaveEndpointTest (1051 ms total)

[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0 (33 ms)
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1 (39 ms)
[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest (75 ms total)

[----------] 1 test from IsolationFlag/CpuIsolatorTest
[ RUN      ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0
[       OK ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0 (903 ms)
[----------] 1 test from IsolationFlag/CpuIsolatorTest (930 ms total)

[----------] 1 test from IsolationFlag/MemoryIsolatorTest
[ RUN      ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0
[       OK ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0 (838 ms)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest (864 ms total)

[----------] Global test environment tear-down
[==========] 949 tests from 94 test cases ran. (457701 ms total)
[  PASSED  ] 948 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CommandExecutorCheckTest.CommandCheckTimeout

 1 FAILED TEST
  YOU HAVE 215 DISABLED TESTS

```

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

```
I0326 08:55:38.026978 13508 slave.cpp:3873] Shutting down framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000
I0326 08:55:38.026978  7236 master.cpp:10446] Updating the state of task 71080b7f-7f75-4578I0326 08:55:37.829004 13748 exec.cpp:162] Version: 1.6.0
I0326 08:55:37.856005  6868 exec.cpp:236] Executor registered on agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0
I0326 08:55:37.859998  9328 executor.cpp:176] Received SUBSCRIBED event
I0326 08:55:37.864964  9328 executor.cpp:180] Subscribed executor on winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net
I0326 08:55:37.865962  9328 executor.cpp:176] Received LAUNCH event
I0326 08:55:37.871958  9328 executor.cpp:648] Starting task 71080b7f-7f75-4578-a707-fab1ba50166a
I0326 08:55:37.961958  9328 executor.cpp:483] Running 'D:\DCOS\mesos\src\mesos-containerizer.exe launch <POSSIBLY-SENSITIVE-DATA>'
I0326 08:55:37.998031  9328 executor.cpp:661] Forked command at 6052
I0326 08:55:38.028975  7336 exec.cpp:445] Executor asked to shutdown
I0326 08:55:38.029963 12652 executor.cpp:176] Received SHUTDOWN event
I0326 08:55:38.029963 12652 executor.cpp:758] Shutting down
I0326 08:55:38.029963 12652 executor.cpp:868] Sending SIGTERM to process tree at pid 6-a707-fab1ba50166a of framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I0326 08:55:38.026978 13508 slave.cpp:6566] Shutting down executor '71080b7f-7f75-4578-a707-fab1ba50166a' of framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000 at executor(1)@10.3.1.8:50953
I0326 08:55:38.028003 13508 slave.cpp:919] Agent terminating
W0326 08:55:38.028975 13508 slave.cpp:3869] Ignoring shutdown framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000 because it is terminating
I0326 08:55:38.029963  7236 master.cpp:10545] Removing task 71080b7f-7f75-4578-a707-fab1ba50166a with resources cpus(allocated: *):4; mem(allocated: *):2048; disk(allocated: *):1024; ports(allocated: *):[31000-32000] of framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000 on agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0 at slave(418)@10.3.1.8:50932 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0326 08:55:38.031980 13508 containerizer.cpp:2338] Destroying container dbbd8ed3-8f4b-408c-bf17-064fbac1c121 in RUNNING state
I0326 08:55:38.032986 13508 containerizer.cpp:2952] Transitioning the state of container dbbd8ed3-8f4b-408c-bf17-064fbac1c121 from RUNNING to DESTROYING
I0326 08:55:38.032986  7236 master.cpp:1295] Agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0 at slave(418)@10.3.1.8:50932 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I0326 08:55:38.032986  7236 master.cpp:3283] Disconnecting agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0 at slave(418)@10.3.1.8:50932 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0326 08:55:38.034072 13508 launcher.cpp:156] Asked to destroy container dbbd8ed3-8f4b-408c-bf17-064fbac1c121
I0326 08:55:38.034072  7236 master.cpp:3302] Deactivating agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0 at slave(418)@10.3.1.8:50932 (winbldsrv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0326 08:55:38.034072 13284 hierarchical.cpp:344] Removed framework 6098759a-7b43-4825-af52-a3712cdf9d49-0000
I0326 08:55:38.034072 13284 hierarchical.cpp:766] Agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0 deactivated
I0326 08:55:38.075989  6472 containerizer.cpp:2791] Container dbbd8ed3-8f4b-408c-bf17-064fbac1c121 has exited
I0326 08:55:38.108960  9996 master.cpp:1137] Master terminating
I0326 08:55:38.110956  5632 hierarchical.cpp:609] Removed agent 6098759a-7b43-4825-af52-a3712cdf9d49-S0
I0326 08:55:38.510030 13380 process.cpp:929] Stopped the socket accept loop
```

- Mesos Reviewbot Windows


On March 23, 2018, 6:46 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 23, 2018, 6:46 p.m.)
> 
> 
> Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
>   src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
>   src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
>   src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/6/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Benjamin Bannier <be...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/
-----------------------------------------------------------

(Updated March 23, 2018, 7:46 p.m.)


Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.


Changes
-------

Addressed Gaston's comment.


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


Repository: mesos


Description
-------

This patch add `RESOURCE_PROVIDER` to the list of default-enabled
agent capabilities. In addition we also adjust tests to accommodate
the change in the agent registration protocol this triggers. We rely
on masters ignoring redundant `UpdateSlaveMessage`s.


Diffs (updated)
-----

  src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
  src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
  src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
  src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
  src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
  src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
  src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
  src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
  src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
  src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
  src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
  src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
  src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
  src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
  support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
  support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 


Diff: https://reviews.apache.org/r/66037/diff/5/

Changes: https://reviews.apache.org/r/66037/diff/4-5/


Testing
-------

`sudo make check`


Thanks,

Benjamin Bannier


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Benjamin Bannier <be...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/
-----------------------------------------------------------

(Updated March 23, 2018, 4:07 p.m.)


Review request for mesos, Gaston Kleiman, Jie Yu, and Jan Schlicht.


Changes
-------

Rebased.


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


Repository: mesos


Description
-------

This patch add `RESOURCE_PROVIDER` to the list of default-enabled
agent capabilities. In addition we also adjust tests to accommodate
the change in the agent registration protocol this triggers. We rely
on masters ignoring redundant `UpdateSlaveMessage`s.


Diffs (updated)
-----

  src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
  src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
  src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
  src/tests/master_tests.cpp 85a509a14d1e96f10b65d7df854cf83de3fa48f6 
  src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
  src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
  src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
  src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
  src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
  src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
  src/tests/scheduler_tests.cpp 1b9b39f7bf6ed69a4fd7a6c4735f55c53aaf6140 
  src/tests/slave_recovery_tests.cpp 4a5860c37c63ae1338734e62db2066033e899fc9 
  src/tests/slave_tests.cpp 028cd32c7043eba4e6f2045956471bd0bf42371c 
  src/tests/storage_local_resource_provider_tests.cpp 49aa4ffa0d518c49f6061d572d8c7900c31600a4 
  support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
  support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 


Diff: https://reviews.apache.org/r/66037/diff/4/

Changes: https://reviews.apache.org/r/66037/diff/3-4/


Testing
-------

`sudo make check`


Thanks,

Benjamin Bannier


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



FAIL: Some of the unit tests failed. Please check the relevant logs.

Reviews applied: `['66037']`

Failed command: `Start-MesosCITesting`

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

Relevant logs:

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

```
[----------] 9 tests from Endpoint/SlaveEndpointTest (1050 ms total)

[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/0 (33 ms)
[ RUN      ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1
[       OK ] ContainerizerType/DefaultContainerDNSFlagTest.ValidateFlag/1 (37 ms)
[----------] 2 tests from ContainerizerType/DefaultContainerDNSFlagTest (72 ms total)

[----------] 1 test from IsolationFlag/CpuIsolatorTest
[ RUN      ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0
[       OK ] IsolationFlag/CpuIsolatorTest.ROOT_UserCpuUsage/0 (828 ms)
[----------] 1 test from IsolationFlag/CpuIsolatorTest (854 ms total)

[----------] 1 test from IsolationFlag/MemoryIsolatorTest
[ RUN      ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0
[       OK ] IsolationFlag/MemoryIsolatorTest.ROOT_MemUsage/0 (842 ms)
[----------] 1 test from IsolationFlag/MemoryIsolatorTest (872 ms total)

[----------] Global test environment tear-down
[==========] 934 tests from 92 test cases ran. (895298 ms total)
[  PASSED  ] 932 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] DockerContainerizerHealthCheckTest.ROOT_DOCKER_DockerHealthStatusChange
[  FAILED  ] DockerContainerizerHealthCheckTest.ROOT_DOCKER_DockerHealthyTaskWithQuotedCommand

 2 FAILED TESTS
  YOU HAVE 215 DISABLED TESTS

```

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

```
I0321 16:04:58.378947 10916 slave.cpp:3877] Shutting down framework cd921afd-56b5-43fI0321 16:04:58.190953  3604 exec.cpp:162] Version: 1.6.0
I0321 16:04:58.218164 11024 exec.cpp:236] Executor registered on agent cd921afd-56b5-43ff-832f-165219f49492-S0
I0321 16:04:58.222959  3808 executor.cpp:176] Received SUBSCRIBED event
I0321 16:04:58.227955  3808 executor.cpp:180] Subscribed executor on win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net
I0321 16:04:58.227955  3808 executor.cpp:176] Received LAUNCH event
I0321 16:04:58.232954  3808 executor.cpp:648] Starting task 8d6faf52-86d1-490d-b534-81c1f0596866
I0321 16:04:58.314949  3808 executor.cpp:483] Running 'D:\DCOS\mesos\src\mesos-containerizer.exe launch <POSSIBLY-SENSITIVE-DATA>'
I0321 16:04:58.342972  3808 executor.cpp:661] Forked command at 8028
I0321 16:04:58.380944  2388 exec.cpp:445] Executor asked to shutdown
I0321 16:04:58.381948 10440 executor.cpp:176] Received SHUTDOWN event
I0321 16:04:58.381948 10440 executor.cpp:758] Shutting down
I0321 16:04:58.381948 10440 executor.cpp:868] Sending SIGTERM to process tree at pidf-832f-165219f49492-0000
I0321 16:04:58.378947  6452 master.cpp:10255] Updating the state of task 8d6faf52-86d1-490d-b534-81c1f0596866 of framework cd921afd-56b5-43ff-832f-165219f49492-0000 (latest state: TASK_KILLED, status update state: TASK_KILLED)
I0321 16:04:58.379948 10916 slave.cpp:6570] Shutting down executor '8d6faf52-86d1-490d-b534-81c1f0596866' of framework cd921afd-56b5-43ff-832f-165219f49492-0000 at executor(1)@10.3.1.8:54785
I0321 16:04:58.379948 10916 slave.cpp:923] Agent terminating
W0321 16:04:58.380944 10916 slave.cpp:3873] Ignoring shutdown framework cd921afd-56b5-43ff-832f-165219f49492-0000 because it is terminating
I0321 16:04:58.381948  6452 master.cpp:10354] Removing task 8d6faf52-86d1-490d-b534-81c1f0596866 with resources cpus(allocated: *):4; mem(allocated: *):2048; disk(allocated: *):1024; ports(allocated: *):[31000-32000] of framework cd921afd-56b5-43ff-832f-165219f49492-0000 on agent cd921afd-56b5-43ff-832f-165219f49492-S0 at slave(405)@10.3.1.8:52952 (win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0321 16:04:58.385038 12160 containerizer.cpp:2338] Destroying container fde2eefd-605f-464f-93d4-e015b998ffc4 in RUNNING state
I0321 16:04:58.385038 12160 containerizer.cpp:2952] Transitioning the state of container fde2eefd-605f-464f-93d4-e015b998ffc4 from RUNNING to DESTROYING
I0321 16:04:58.385960 12160 launcher.cpp:156] Asked to destroy container fde2eefd-605f-464f-93d4-e015b998ffc4
I0321 16:04:58.385960  6452 master.cpp:1297] Agent cd921afd-56b5-43ff-832f-165219f49492-S0 at slave(405)@10.3.1.8:52952 (win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net) disconnected
I0321 16:04:58.387295  6452 master.cpp:3278] Disconnecting agent cd921afd-56b5-43ff-832f-165219f49492-S0 at slave(405)@10.3.1.8:52952 (win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0321 16:04:58.387950  6452 master.cpp:3297] Deactivating agent cd921afd-56b5-43ff-832f-165219f49492-S0 at slave(405)@10.3.1.8:52952 (win-bld-srv-01.zq4gs31qjdiunm1ryi1452nvnh.dx.internal.cloudapp.net)
I0321 16:04:58.387950  8836 hierarchical.cpp:344] Removed framework cd921afd-56b5-43ff-832f-165219f49492-0000
I0321 16:04:58.390944 10620 hierarchical.cpp:766] Agent cd921afd-56b5-43ff-832f-165219f49492-S0 deactivated
I0321 16:04:58.480996 12256 containerizer.cpp:2791] Container fde2eefd-605f-464f-93d4-e015b998ffc4 has exited
I0321 16:04:58.513967 13428 master.cpp:1139] Master terminating
I0321 16:04:58.516953  3236 hierarchical.cpp:609] Removed agent cd921afd-56b5-43ff-832f-165219f49492-S0
I0321 16:04:59.264991  5996 process.cpp:929] Stopped the socket accept loop
```

- Mesos Reviewbot Windows


On March 21, 2018, 2:58 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 21, 2018, 2:58 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp 36c72db8d851d813fa739a8bf267f07d1b76ca3d 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/3/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 21, 2018, 4:58 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 21, 2018, 4:58 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers. We rely
> on masters ignoring redundant `UpdateSlaveMessage`s.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
>   src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp 36c72db8d851d813fa739a8bf267f07d1b76ca3d 
>   src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
>   support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
>   support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/3/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Benjamin Bannier <be...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/
-----------------------------------------------------------

(Updated March 21, 2018, 3:58 p.m.)


Review request for mesos, Jie Yu and Jan Schlicht.


Changes
-------

Addressed comments from Jan.


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


Repository: mesos


Description
-------

This patch add `RESOURCE_PROVIDER` to the list of default-enabled
agent capabilities. In addition we also adjust tests to accommodate
the change in the agent registration protocol this triggers. We rely
on masters ignoring redundant `UpdateSlaveMessage`s.


Diffs (updated)
-----

  src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
  src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
  src/tests/api_tests.cpp 7e9233eae8d06a2513f71a17c429d04b9017154c 
  src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
  src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
  src/tests/persistent_volume_endpoints_tests.cpp b9dbb96da5dc89b658f1618fb3a8b2fcc6b9f1b9 
  src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
  src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
  src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
  src/tests/resource_provider_manager_tests.cpp 718436e1c62ba3115a4408540b8d745a6f48cbfe 
  src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
  src/tests/slave_tests.cpp 36c72db8d851d813fa739a8bf267f07d1b76ca3d 
  src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
  support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
  support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 


Diff: https://reviews.apache.org/r/66037/diff/3/

Changes: https://reviews.apache.org/r/66037/diff/2-3/


Testing
-------

`sudo make check`


Thanks,

Benjamin Bannier


Re: Review Request 66037: Enabled agent resource provider capability by default.

Posted by Benjamin Bannier <be...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66037/
-----------------------------------------------------------

(Updated March 14, 2018, 2:09 p.m.)


Review request for mesos, Jie Yu and Jan Schlicht.


Changes
-------

Removed more now dead code.


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


Repository: mesos


Description (updated)
-------

This patch add `RESOURCE_PROVIDER` to the list of default-enabled
agent capabilities. In addition we also adjust tests to accommodate
the change in the agent registration protocol this triggers. We rely
on masters ignoring redundant `UpdateSlaveMessage`s.


Diffs (updated)
-----

  src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
  src/tests/agent_resource_provider_config_api_tests.cpp bd5312b71f500a3572362a39f22d742c621762cf 
  src/tests/api_tests.cpp e81d6ed25984c14e4143a048848c96e44e4f16e4 
  src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
  src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
  src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
  src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
  src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
  src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
  src/tests/resource_provider_manager_tests.cpp c8997ec41fe0c3e02b0f6ab205c9009205c992da 
  src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
  src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
  src/tests/storage_local_resource_provider_tests.cpp 264d42b57fe1a8ea04c1de0a10112878c7b45d39 
  support/mesos-mini/Dockerfile f9bcdb59d233ddfa0a4523c84057c630d1d636a0 
  support/mesos-mini/mesos/agent_features.json a66852aff91e4b0c9ea996123cb6466a5ee0a050 


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

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


Testing
-------

`sudo make check`


Thanks,

Benjamin Bannier


Re: Review Request 66037: Enabled agent resource provider capability by default.

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



Patch looks great!

Reviews applied: [66037]

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

- Mesos Reviewbot


On March 13, 2018, 5:26 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66037/
> -----------------------------------------------------------
> 
> (Updated March 13, 2018, 5:26 p.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-8647
>     https://issues.apache.org/jira/browse/MESOS-8647
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch add `RESOURCE_PROVIDER` to the list of default-enabled
> agent capabilities. In addition we also adjust tests to accommodate
> the change in the agent registration protocol this triggers.
> 
> 
> Diffs
> -----
> 
>   src/slave/constants.cpp 9b60bd0e808aab272039239db95bee71a3d910ab 
>   src/tests/master_tests.cpp 909565188afbe1398dcaa7d69d3a6872dcdcdb78 
>   src/tests/oversubscription_tests.cpp 564405743cbf5805e79c04c7b37df505e988d984 
>   src/tests/persistent_volume_endpoints_tests.cpp ebdc409842ce36396ce7d7bc8d45f23db1eb1973 
>   src/tests/persistent_volume_tests.cpp 924d8458e54e34a49c99593482b5908c5f7c7a48 
>   src/tests/reservation_endpoints_tests.cpp 51146ea04fcd04efd489386be861415e2a066606 
>   src/tests/reservation_tests.cpp 8d8e9c8390e65187269bd194bb322bbdff88e0bd 
>   src/tests/slave_recovery_tests.cpp c856752fe1dc3f5b45adb21b65a736116184e10a 
>   src/tests/slave_tests.cpp c2afaa573039e25fb59496765e6717e7643a692f 
> 
> 
> Diff: https://reviews.apache.org/r/66037/diff/1/
> 
> 
> Testing
> -------
> 
> `sudo make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>