[3/4] mesos git commit: Fixed agent to correctly handle kill task of unregistered executor.

2016-10-07 Thread anand
Fixed agent to correctly handle kill task of unregistered executor. This change brings in the same logic we had introduced for driver based executors to shut them down if all of their tasks have been killed before the executor could initially register (MESOS-5380). Note that the executors still ne

[1/4] mesos git commit: Updated `TaskUpdated` event to send `TaskStatus`.

2016-10-07 Thread anand
Repository: mesos Updated Branches: refs/heads/master d16f53d5a -> 1fe48d388 Updated `TaskUpdated` event to send `TaskStatus`. This change modifies the `TaskUpdated` event in the v1 Operator API to also send the status of task corresponding to the last status update acknowledged by the schedul

[4/4] mesos git commit: Minor test logic cleanup for HTTP based executor tests.

2016-10-07 Thread anand
Minor test logic cleanup for HTTP based executor tests. The executor erroneously tried to subscribe with the agent after launching a task. This won't work post the fix for MESOS-6322. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/

[2/4] mesos git commit: Fixed an incorrect comment for `AGENT_ADDED` event.

2016-10-07 Thread anand
Fixed an incorrect comment for `AGENT_ADDED` event. Review: https://reviews.apache.org/r/52644/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a910c755 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a910c755 Diff: h

[1/2] mesos git commit: Refactored the test case `ROOT_CGROUPS_PERF_RollForward`.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master b9e72327f -> d16f53d5a Refactored the test case `ROOT_CGROUPS_PERF_RollForward`. * Wait for `TASK_RUNNING` to check task status. * Update the legacy comments. * Move to cgroups_isolator_tests.cpp. * Speed up the recovery of the agent. Revi

[2/2] mesos git commit: Fixed a potential flaky linux filesystem isolator test.

2016-10-07 Thread jieyu
Fixed a potential flaky linux filesystem isolator test. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d16f53d5 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d16f53d5 Diff: http://git-wip-us.apache.org/repos/asf/mes

mesos git commit: Refactored the agent 'launcher' flag to always have a value.

2016-10-07 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/1.0.x 68366a7ac -> 4a529e922 Refactored the agent 'launcher' flag to always have a value. NOTE: Cherry picked this because without it the build breaks due to a no-longer-valid `flags.load` overload usage in local.cpp. Review: https://reviews.apac

mesos git commit: Updated the document link of 'Image Provisioning Design'.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 171d214af -> b9e72327f Updated the document link of 'Image Provisioning Design'. Review: https://reviews.apache.org/r/52395/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/c

mesos git commit: Removed a redundant space from Appc fetcher.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master a3b968153 -> 171d214af Removed a redundant space from Appc fetcher. Review: https://reviews.apache.org/r/52499/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/171d214

mesos git commit: Updated the way we bring up loopback for a container on a CNI network.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master e7a5e3db0 -> a3b968153 Updated the way we bring up loopback for a container on a CNI network. Earlier we were setting up the `pre_exec_command` for the executor with `ifconfig lo up`. This had a drawback that it assumes that PATH set for th

mesos git commit: Fixed the failed LinuxFilesystemIsolatorTests.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 0f97117ba -> e7a5e3db0 Fixed the failed LinuxFilesystemIsolatorTests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e7a5e3db Tree: http://git-wip-us.apache.org/repos/

[1/3] mesos git commit: Improved mesos.proto comments for partition-aware frameworks.

2016-10-07 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master bb8b14456 -> 0f97117ba Improved mesos.proto comments for partition-aware frameworks. Review: https://reviews.apache.org/r/52632/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mes

[3/3] mesos git commit: Synchronized unversioned and v1 mesos.proto.

2016-10-07 Thread vinodkone
Synchronized unversioned and v1 mesos.proto. Review: https://reviews.apache.org/r/52634/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0f97117b Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0f97117b Diff: http://g

[2/3] mesos git commit: Fixed typo in comment.

2016-10-07 Thread vinodkone
Fixed typo in comment. Review: https://reviews.apache.org/r/52633/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6c69a3c8 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6c69a3c8 Diff: http://git-wip-us.apache.org/r

mesos git commit: Fixed a race in the master when updating oversubscribed resources.

2016-10-07 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master 513bdf040 -> bb8b14456 Fixed a race in the master when updating oversubscribed resources. The reason that we need `updateSlave` first and then rescind offer is because of a race condition case: there may be a batch allocation triggered betw

mesos git commit: Added an initial benchmark test for filtering Resources.

2016-10-07 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master ecbac4350 -> 513bdf040 Added an initial benchmark test for filtering Resources. This benchmark test is using nonRevocable, revocable, unreserved and reserved APIs to benchmark the API for filtering Resources. Review: https://reviews.apache

mesos git commit: Fixed a comment typo in resources benchmark test.

2016-10-07 Thread bmahler
Repository: mesos Updated Branches: refs/heads/master 66fa1b615 -> ecbac4350 Fixed a comment typo in resources benchmark test. Review: https://reviews.apache.org/r/52599/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ec

[08/10] mesos git commit: Moved a few test helpers to the common header.

2016-10-07 Thread jieyu
Moved a few test helpers to the common header. Review: https://reviews.apache.org/r/52546 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1c27db56 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1c27db56 Diff: http://

[02/10] mesos git commit: Used unmountAll to replace the original shell script.

2016-10-07 Thread jieyu
Used unmountAll to replace the original shell script. Review: https://reviews.apache.org/r/52572 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f3c574d8 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f3c574d8 Diff:

[01/10] mesos git commit: Parameterized the image volume tests for nested containers.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 4ea9651aa -> 66fa1b615 Parameterized the image volume tests for nested containers. Review: https://reviews.apache.org/r/52574 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/

[10/10] mesos git commit: Moved image volume related tests to a separate file.

2016-10-07 Thread jieyu
Moved image volume related tests to a separate file. Review: https://reviews.apache.org/r/52547 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/131beaec Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/131beaec Diff: h

[06/10] mesos git commit: Renamed the filesystem isolator tests file name.

2016-10-07 Thread jieyu
Renamed the filesystem isolator tests file name. Review: https://reviews.apache.org/r/52541 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bafcbf72 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bafcbf72 Diff: http:

[05/10] mesos git commit: Renamed the filesystem isolator tests file name.

2016-10-07 Thread jieyu
http://git-wip-us.apache.org/repos/asf/mesos/blob/bafcbf72/src/tests/containerizer/linux_filesystem_isolator_tests.cpp -- diff --git a/src/tests/containerizer/linux_filesystem_isolator_tests.cpp b/src/tests/containerizer/linux_fil

[09/10] mesos git commit: Removed some redundant cleanup code in linux filesystem isolator.

2016-10-07 Thread jieyu
Removed some redundant cleanup code in linux filesystem isolator. Review: https://reviews.apache.org/r/52573 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a3fd1459 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a3f

[04/10] mesos git commit: Reordered filesystem isolator tests.

2016-10-07 Thread jieyu
Reordered filesystem isolator tests. This is a pure code movement. Moved all the end to end tests to the bottom of the file. Review: https://reviews.apache.org/r/52538 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/351d2326

[07/10] mesos git commit: Refactored and simplified LinuxFilesystemIsolatorTests.

2016-10-07 Thread jieyu
Refactored and simplified LinuxFilesystemIsolatorTests. Review: https://reviews.apache.org/r/52539 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a089d4a7 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a089d4a7 Diff

[03/10] mesos git commit: Converted the SandboxEnvironmentVariable test to an end to end test.

2016-10-07 Thread jieyu
Converted the SandboxEnvironmentVariable test to an end to end test. Review: https://reviews.apache.org/r/52540 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7ffc48f2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/

[4/5] mesos git commit: Reorganized includes in containerizer.

2016-10-07 Thread jieyu
Reorganized includes in containerizer. Review: https://reviews.apache.org/r/52081/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f6a25360 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f6a25360 Diff: http://git-wip

[5/5] mesos git commit: Introduced Linux capabilities support for Mesos executor.

2016-10-07 Thread jieyu
Introduced Linux capabilities support for Mesos executor. This change introduces Linux capability-based security the Mesos exector. A new flag `capabilities` is introduced to optionally specify the capabilities tasks launched by the Mesos executor are allowed to use. Review: https://reviews.apach

[2/5] mesos git commit: Added `ping` to test linux rootfs.

2016-10-07 Thread jieyu
Added `ping` to test linux rootfs. Review: https://reviews.apache.org/r/51931/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e7d1f536 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e7d1f536 Diff: http://git-wip-us.

[3/5] mesos git commit: Supported merging the launch command from isolators.

2016-10-07 Thread jieyu
Supported merging the launch command from isolators. Previously, we only allow one isolator to specify the launch command for the container. This is not ideal because multiple isolators might want to add some flags to the command executor. For instance, the 'docker/runtime' isolator wants to speci

[1/5] mesos git commit: Created an isolator for Linux capabilities.

2016-10-07 Thread jieyu
Repository: mesos Updated Branches: refs/heads/master 4773b27dc -> 4ea9651aa Created an isolator for Linux capabilities. Review: https://reviews.apache.org/r/50271/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4ea9651a

[1/2] mesos git commit: Made `FlagsBase::extract` publicly accessible.

2016-10-07 Thread tillt
Repository: mesos Updated Branches: refs/heads/1.0.x 6773b8ffe -> 68366a7ac Made `FlagsBase::extract` publicly accessible. This function contains important business logic on how environment variables are interpreted (keys are largely case-insensitive, and duplicates are dropped in a certain or

[2/2] mesos git commit: Avoided modifying process environment.

2016-10-07 Thread tillt
Avoided modifying process environment. This code modified the process environment in order to support upgrading on the fly from old-style libprocess SSL variables \`SSL\_\` to \`LIBPROCESS_SSL\_\`. Modifying the process environment at this point is not safe as other actors might concurrently read

mesos git commit: Fixed typos in resources.hpp headers.

2016-10-07 Thread alexr
Repository: mesos Updated Branches: refs/heads/master acbebcc6f -> 4773b27dc Fixed typos in resources.hpp headers. Review: https://reviews.apache.org/r/52628/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4773b27d Tree:

[1/2] mesos git commit: Made `FlagsBase::extract` publicly accessible.

2016-10-07 Thread tillt
Repository: mesos Updated Branches: refs/heads/master 8ad489f90 -> acbebcc6f Made `FlagsBase::extract` publicly accessible. This function contains important business logic on how environment variables are interpreted (keys are largely case-insensitive, and duplicates are dropped in a certain o

[2/2] mesos git commit: Avoided modifying process environment.

2016-10-07 Thread tillt
Avoided modifying process environment. This code modified the process environment in order to support upgrading on the fly from old-style libprocess SSL variables \`SSL\_\` to \`LIBPROCESS_SSL\_\`. Modifying the process environment at this point is not safe as other actors might concurrently read

mesos git commit: Fixed Python bindings build error.

2016-10-07 Thread tillt
Repository: mesos Updated Branches: refs/heads/master 891becb82 -> 8ad489f90 Fixed Python bindings build error. Moved Python related configuration steps down below all others. Now \`PYTHON_LDFLAGS\` captures all required \`LDFLAGS\`. Review: https://reviews.apache.org/r/52162/ Project: http