mesos git commit: Added python-mesos-http scheduler api client to docs.

2017-06-13 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 77d507578 -> 734bed023 Added python-mesos-http scheduler api client to docs. I propose the following scheduler python lib as external library to use Mesos HTTP API. This closes #217 Project: http://git-wip-us.apache.org/repos/asf/mesos/r

mesos-site git commit: Added README.

2017-06-09 Thread vinodkone
Repository: mesos-site Updated Branches: refs/heads/master [created] c2997216b Added README. Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/c2997216 Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/c

[3/3] mesos git commit: Added unit tests to verify offers are suppressed based on registration.

2017-06-05 Thread vinodkone
Added unit tests to verify offers are suppressed based on registration. Review: https://reviews.apache.org/r/57818/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5dd1dd3b Tree: http://git-wip-us.apache.org/repos/asf/mesos/t

[1/3] mesos git commit: Added `suppressed_roles` field in `SUBSCRIBE`.

2017-06-05 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 588bb0b9f -> 5dd1dd3b0 Added `suppressed_roles` field in `SUBSCRIBE`. This field is a subset of roles the framework registered as for which the framework does not want any resources offere to. Review: https://reviews.apache.org/r/57815/

[2/3] mesos git commit: Offers not sent for suppressed roles as indicated in `SUBSCRIBE`.

2017-06-05 Thread vinodkone
Offers not sent for suppressed roles as indicated in `SUBSCRIBE`. If the `SUBSCRIBE` indicates a subset of roles to be suppressed during framework (re)registration, the allocator does not offer resources for those roles to such frameworks. Note that this functionality is added for `v1::SUBSCRIBE`

mesos git commit: Attach latest symlink when executor is registered.

2017-06-05 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master cb4dc7643 -> 588bb0b9f Attach latest symlink when executor is registered. This will assist framework developers in making features that need to access the latest sandbox when hitting various operator API endpoints. Review: https://reviews.

[1/3] mesos git commit: Added test for agent ping timeout during agent recovery.

2017-06-01 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 1afc364c0 -> f6c2fdb65 Added test for agent ping timeout during agent recovery. This patch adds a new test, `SlaveRecoveryTest.PingTimeoutDuringRecovery`, which verifies that the agent will reply to pings from the master while it is perform

[3/3] mesos git commit: Added a test to verify executor driver message dropping behavior.

2017-06-01 Thread vinodkone
Added a test to verify executor driver message dropping behavior. This patch adds a test which verifies that the executor driver will drop RunTaskMessages when it is not connected to the agent. Review: https://reviews.apache.org/r/59583/ Project: http://git-wip-us.apache.org/repos/asf/mesos/rep

[2/3] mesos git commit: Added a test to verify the agent flag 'executor_reregistration_timeout'.

2017-06-01 Thread vinodkone
Added a test to verify the agent flag 'executor_reregistration_timeout'. This patch adds a test to verify the correct behavior of the agent flag 'executor_reregistration_timeout. Review: https://reviews.apache.org/r/59545/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http:

mesos git commit: Resolved a TODO that depended on a newer version of gtest.

2017-05-30 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 80f13bfd0 -> c61e592d7 Resolved a TODO that depended on a newer version of gtest. Review: https://reviews.apache.org/r/59581/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/

mesos git commit: Made the executor driver drop some messages when not connected.

2017-05-26 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 2ca43f5af -> efb774cd9 Made the executor driver drop some messages when not connected. This patch updates the executor driver to drop RunTaskMessages, FrameworkMessages, and StatusUpdateAcknowledgements when it is not connected to the agent

mesos git commit: Introduced executor reconnect retries on the agent.

2017-05-26 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 74c61ceba -> 2ca43f5af Introduced executor reconnect retries on the agent. PID-based v0 executors using Mesos libraries >= 1.1.2 always re-link with the agent upon receiving the reconnect message. This avoids the executor replying on a half

mesos git commit: Updated website for 1.0.2, 1.0.3 and 1.0.4.

2017-05-16 Thread vinodkone
,97 @@ +--- +layout: post +title: Apache Mesos 1.0.2 Released +permalink: /blog/mesos-1-0-2-released/ +published: true +post_author: + display_name: Vinod Kone + twitter: vinodkone +tags: Release +--- + +The latest Mesos release, 1.0.2, is now available for [download](http://mesos.apache.org/downlo

mesos git commit: Fixed a fd-related build on Windows.

2017-05-12 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master b45603000 -> c98f96522 Fixed a fd-related build on Windows. Review: https://reviews.apache.org/r/59248 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c98f9652 Tree: h

mesos git commit: Add new MUG for Tokyo.

2017-05-09 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 2108836fc -> d2afca0b7 Add new MUG for Tokyo. I just add the new Tokyo in Japan MUG in communities by Shingo.Kitayama. This closes #212 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos

[mesos] Git Push Summary

2017-05-04 Thread vinodkone
Repository: mesos Updated Tags: refs/tags/1.0.4 [created] 4154f66d6

svn commit: r19466 - in /release/mesos/1.0.4: ./ mesos-1.0.4.tar.gz mesos-1.0.4.tar.gz.asc mesos-1.0.4.tar.gz.md5

2017-05-04 Thread vinodkone
Author: vinodkone Date: Thu May 4 19:29:40 2017 New Revision: 19466 Log: Adding mesos-1.0.4. Added: release/mesos/1.0.4/ release/mesos/1.0.4/mesos-1.0.4.tar.gz (with props) release/mesos/1.0.4/mesos-1.0.4.tar.gz.asc release/mesos/1.0.4/mesos-1.0.4.tar.gz.md5 Added: release

[2/2] mesos git commit: Exposed full unreserved resources in /slaves endpoint on master.

2017-05-04 Thread vinodkone
Exposed full unreserved resources in /slaves endpoint on master. The JSON key for this information is "unreserved_resources_full". Review: https://reviews.apache.org/r/58940 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d0

[1/2] mesos git commit: Exposed full unreserved resources in /state endpoint on agent.

2017-05-04 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master e8fefeab7 -> f158e03bb Exposed full unreserved resources in /state endpoint on agent. The JSON key for this information is "unreserved_resources_full". Review: https://reviews.apache.org/r/58941 Project: http://git-wip-us.apache.org/repo

svn commit: r19444 - in /dev/mesos/1.0.4-rc2: ./ mesos-1.0.4.tar.gz mesos-1.0.4.tar.gz.asc mesos-1.0.4.tar.gz.md5

2017-05-02 Thread vinodkone
Author: vinodkone Date: Tue May 2 19:02:41 2017 New Revision: 19444 Log: Adding mesos-1.0.4-rc2. Added: dev/mesos/1.0.4-rc2/ dev/mesos/1.0.4-rc2/mesos-1.0.4.tar.gz (with props) dev/mesos/1.0.4-rc2/mesos-1.0.4.tar.gz.asc dev/mesos/1.0.4-rc2/mesos-1.0.4.tar.gz.md5 Added: dev

[mesos] Git Push Summary

2017-05-02 Thread vinodkone
Repository: mesos Updated Tags: refs/tags/1.0.4-rc2 [created] 4154f66d6

mesos git commit: Fixed a link in the upgrade documentation.

2017-04-27 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master c70215029 -> fd163c20c Fixed a link in the upgrade documentation. This patch fixes a broken link in the upgrade documentation. Review: https://reviews.apache.org/r/58810/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Fixed typo in slave.cpp.

2017-04-26 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 87b793dbb -> 6670c0709 Fixed typo in slave.cpp. s/found mount/find mount/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6670c070 Tree: http://git-wip-us.apache.org/r

mesos git commit: Print failure reason when socket accept failed.

2017-04-26 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 8990ebbf3 -> c2b91a92e Print failure reason when socket accept failed. Review: https://reviews.apache.org/r/58557/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c2b9

mesos git commit: Print corresponding address when socket shutdown.

2017-04-26 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master e121ef6fe -> 8990ebbf3 Print corresponding address when socket shutdown. Print corresponding address when socket shutdown. Default just print socket 'fd',it's not convenient to find corresponding address. Project: http://git-wip-us.apache

[2/2] mesos git commit: Updated the high availability doc about ZK session timeout.

2017-04-24 Thread vinodkone
Updated the high availability doc about ZK session timeout. Review: https://reviews.apache.org/r/58506/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/97b2507a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/97b2507a

[1/2] mesos git commit: Passed `--zk_session_timeout` to ZK master contender and detector.

2017-04-24 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master d1c6173ab -> 97b2507aa Passed `--zk_session_timeout` to ZK master contender and detector. Currently `ZooKeeperMasterContender` and `ZooKeeperMasterDetector` use hardcoded session timeouts and do not respect `--zk_session_timeout` option. Th

[2/2] mesos git commit: Added executor authentication and authorization to the CHANGELOG.

2017-04-24 Thread vinodkone
Added executor authentication and authorization to the CHANGELOG. This patch adds MESOS-6365 to the CHANGELOG. This ticket corresponds to the addition of authentication and authorization for HTTP executors. Review: https://reviews.apache.org/r/58626/ Project: http://git-wip-us.apache.org/repos/

[1/2] mesos git commit: Updated the upgrade documentation for executor authentication.

2017-04-24 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 16697c1a8 -> 7a98a0139 Updated the upgrade documentation for executor authentication. This patch updates the upgrade documentation to inform users that enabling the `--authenticate_http_executors` and `--executor_secret_key` agent flags aft

mesos git commit: Fixed a typo in zookeeper_test_server.cpp.

2017-04-24 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 2f4c71a5e -> 16697c1a8 Fixed a typo in zookeeper_test_server.cpp. s/his/this/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/16697c1a Tree: http://git-wip-us.apache.o

mesos git commit: Updated code and docs to use gender neutral pronoun.

2017-04-24 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 00569bfcf -> 2f4c71a5e Updated code and docs to use gender neutral pronoun. Used "singular they" based on Chromium's gender neutral code guideline. Review: https://reviews.apache.org/r/58683 Project: http://git-wip-us.apache.org/repos/as

[1/2] mesos git commit: Added test for failed HTTP executor authentication.

2017-04-21 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 3f5b2c90c -> 02d8426a3 Added test for failed HTTP executor authentication. This patch adds a new test, `SlaveTest.HTTPExecutorBadAuthentication`, which verifies that an HTTP executor cannot subscribe or launch nested containers when it prov

[2/2] mesos git commit: Added documentation for executor authorization.

2017-04-21 Thread vinodkone
Added documentation for executor authorization. This patch adds documentation regarding the implicit authorization of HTTP executors. Review: https://reviews.apache.org/r/58625/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commi

[8/8] mesos git commit: Enabled authorization in default executor check tests.

2017-04-21 Thread vinodkone
Enabled authorization in default executor check tests. This patch enables authorization in the check and health check tests which use the default executor. Simple permissive ACLs are set, forcing the local authorizer to be loaded which allows us to test the implicit executor authorization code for

[6/8] mesos git commit: Added a new agent authorization test which runs a task group.

2017-04-21 Thread vinodkone
Added a new agent authorization test which runs a task group. This patch adds a new test, `SlaveAuthorizerTest.AuthorizeRunTaskGroup`, which verifies that task groups can be launched when executor authentication is required and the local authorizer is loaded. Review: https://reviews.apache.org/r/

[2/8] mesos git commit: Allowed the local authorizer to accept subjects with no value.

2017-04-21 Thread vinodkone
Allowed the local authorizer to accept subjects with no value. This patch updates checks in the local authorizer to allow subjects which specify `claims` instead of a `value`. Review: https://reviews.apache.org/r/58252/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://g

[7/8] mesos git commit: Added tests for failed executor authorization.

2017-04-21 Thread vinodkone
Added tests for failed executor authorization. This patch adds new tests to verify that HTTP executors cannot subscribe or launch nested containers when HTTP executor authentication is enabled, authorization is enabled, and they do not provide a valid executor authentication token Review: https:/

[4/8] mesos git commit: Added implicit executor authorization to the agent operator API.

2017-04-21 Thread vinodkone
Added implicit executor authorization to the agent operator API. This patch updates the agent handlers for the LAUNCH_, WAIT_, and KILL_NESTED_CONTAINER calls of the operator API to set the `container_id` field within the authorization object, facilitating implicit executor authorization. Review:

[3/8] mesos git commit: Added a ContainerID to 'ObjectApprover::Object'.

2017-04-21 Thread vinodkone
Added a ContainerID to 'ObjectApprover::Object'. This patch adds a new member, `container_id` to the `ObjectApprover::Object` to facilitate implicit executor authorization. Review: https://reviews.apache.org/r/58253/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-

[5/8] mesos git commit: Added implicit authorization to the agent executor API.

2017-04-21 Thread vinodkone
Added implicit authorization to the agent executor API. This patch updates the agent handler for the executor API to verify the FrameworkID and ExecutorID contained within the executor's `Principal`, if present. This effectively performs implicit authorization of executor calls. Review: https://r

[1/8] mesos git commit: Changed 'Principal.claims' to a hashmap.

2017-04-21 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master ab6afe86d -> 3f5b2c90c Changed 'Principal.claims' to a hashmap. This patch changes the `claims` member of the authentication `Principal` struct from a `std::map` to a `hashmap`, so that we can make use of the `contains()` helper during auth

mesos git commit: Fixed a potential deadlock in the 'CombinedAuthenticator'.

2017-04-18 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 2f90b70b5 -> cd927874e Fixed a potential deadlock in the 'CombinedAuthenticator'. This patch fixes a bug in `CombinedAuthenticator.authenticate()`. Previously, the function registered a callback on the results of `Authenticator::authenticat

[1/2] mesos git commit: Added a new overload of 'StartSlave'.

2017-04-18 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master f253811c8 -> 2f90b70b5 Added a new overload of 'StartSlave'. This patch adds a new overload of the `StartSlave` test helper which accepts just a `MasterDetector`, an ID, and flags. Review: https://reviews.apache.org/r/58321/ Project: htt

[2/2] mesos git commit: Added an upgrade test for executor authentication.

2017-04-18 Thread vinodkone
Added an upgrade test for executor authentication. This patch adds a new test, `SlaveTest.RestartSlaveRequireExecutorAuthentication`, which ensures that an executor which is launched with the '--executor_secret_key' flag set but the '--authenticate_http_executors' flag not set will be able to subs

mesos git commit: Added a TODO for implicit scheduler authorization.

2017-04-18 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master b939f185f -> f253811c8 Added a TODO for implicit scheduler authorization. This patch adds a TODO to the master's HTTP scheduler API related to MESOS-7399. Review: https://reviews.apache.org/r/58507/ Project: http://git-wip-us.apache.org/

svn commit: r19183 - in /dev/mesos/1.0.4-rc1: ./ mesos-1.0.4.tar.gz mesos-1.0.4.tar.gz.asc mesos-1.0.4.tar.gz.md5

2017-04-17 Thread vinodkone
Author: vinodkone Date: Mon Apr 17 22:42:55 2017 New Revision: 19183 Log: Adding mesos-1.0.4-rc1. Added: dev/mesos/1.0.4-rc1/ dev/mesos/1.0.4-rc1/mesos-1.0.4.tar.gz (with props) dev/mesos/1.0.4-rc1/mesos-1.0.4.tar.gz.asc dev/mesos/1.0.4-rc1/mesos-1.0.4.tar.gz.md5 Added: dev

[mesos] Git Push Summary

2017-04-17 Thread vinodkone
Repository: mesos Updated Tags: refs/tags/1.0.4-rc1 [created] 71e41f166

mesos git commit: Updated Mesos version to 1.0.4.

2017-04-17 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/1.0.x 84118f177 -> 71e41f166 Updated Mesos version to 1.0.4. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/71e41f16 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7

[5/5] mesos git commit: Updated check tests to authenticate with agent operator API.

2017-04-13 Thread vinodkone
Updated check tests to authenticate with agent operator API. This patch updates the check tests to enable authentication on the agent operator API when Mesos has been built with SSL. Review: https://reviews.apache.org/r/58374/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: h

[1/5] mesos git commit: Updated 'HealthChecker' to authenticate with the agent.

2017-04-13 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 8bbe70041 -> 6cf2536c2 Updated 'HealthChecker' to authenticate with the agent. This patch updates the `HealthChecker` to permit initialization with an authorization header, which it will provide to the agent operator API for authentication

[3/5] mesos git commit: Updated default executor to pass authorization header to checkers.

2017-04-13 Thread vinodkone
Updated default executor to pass authorization header to checkers. This patch updates the default executor to pass the executor's authorization header to the `Checker` and `HealthChecker` libraries when an authentication token is present in the environment. Review: https://reviews.apache.org/r/58

[2/5] mesos git commit: Updated 'Checker' to authenticate with agent operator API.

2017-04-13 Thread vinodkone
Updated 'Checker' to authenticate with agent operator API. This patch updates the `Checker` to permit initialization with an authorization header, which it will provide to the agent operator API for authentication when present. Review: https://reviews.apache.org/r/58373/ Project: http://git-wip

[4/5] mesos git commit: Updated a health checker test to enable executor authentication.

2017-04-13 Thread vinodkone
Updated a health checker test to enable executor authentication. This patch updates the test `HealthCheckTest.DefaultExecutorCommandHealthCheck` to enable authentication on the agent operator API when Mesos has been built with SSL. Review: https://reviews.apache.org/r/58370/ Project: http://git

[2/2] mesos git commit: Updated tests to set '--executor_secret_key' as a path.

2017-04-13 Thread vinodkone
Updated tests to set '--executor_secret_key' as a path. This patch updates the test code to generate a secret key file and set the agent '--executor_secret_key' flag with its path. Review: https://reviews.apache.org/r/58328/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: htt

[1/2] mesos git commit: Changed '--executor_secret_key' agent flag to accept a path.

2017-04-13 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master f73f29bd3 -> 8bbe70041 Changed '--executor_secret_key' agent flag to accept a path. This patch changes the agent flag '--executor_secret_key' to accept a path, so that the secret will not be leaked in logs. Review: https://reviews.apache.o

mesos git commit: Added MESOS-6606 and MESOS-7008 to CHANGELOG for 1.0.4.

2017-04-12 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/1.0.x 17ac0240a -> f5721b520 Added MESOS-6606 and MESOS-7008 to CHANGELOG for 1.0.4. Also removed MESOS-7008 from 1.0.3 CHANGELOG which was incorrect. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.or

mesos git commit: Added MESOS-6606 and MESOS-7008 to CHANGELOG for 1.0.4.

2017-04-12 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master ad1323b03 -> 301347ce9 Added MESOS-6606 and MESOS-7008 to CHANGELOG for 1.0.4. Also removed MESOS-7008 from 1.0.3 CHANGELOG which was incorrect. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.o

mesos git commit: Fixed the ordering of the stream operator overload for RLimitInfo.

2017-04-06 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 764fa2cbe -> 5d77c5bcb Fixed the ordering of the stream operator overload for RLimitInfo. This patch moves the declaration of the `operator<<` overload for the `RLimitInfo` protobuf message to be consistent with the ordering of its definiti

[3/4] mesos git commit: Added executor authentication to the docs.

2017-04-06 Thread vinodkone
Added executor authentication to the docs. Review: https://reviews.apache.org/r/57667/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7dd3b6d1 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7dd3b6d1 Diff: http://git

[4/4] mesos git commit: Updated documentation for multiple HTTP authenticators.

2017-04-06 Thread vinodkone
Updated documentation for multiple HTTP authenticators. Review: https://reviews.apache.org/r/57663/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/764fa2cb Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/764fa2cb Dif

[2/4] mesos git commit: Added further tests for executor secret generation.

2017-04-06 Thread vinodkone
Added further tests for executor secret generation. This patch adds two further tests for executor secret generation, `SlaveTest.RunTaskGroupReferenceTypeSecret` and `SlaveTest.RunTaskGroupFailedSecretAfterShutdown`. Review: https://reviews.apache.org/r/57925/ Project: http://git-wip-us.apache.

[1/4] mesos git commit: Added 'shutdownExecutor' methods to the mock agent.

2017-04-06 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master b92a46f06 -> 764fa2cbe Added 'shutdownExecutor' methods to the mock agent. This patch adds both mocked and unmocked `shutdownExecutor` methods to the mock agent to facilitate testing of failure scenarios related to executor secret generatio

[3/3] mesos git commit: Added a test for the 'CombinedAuthenticator'.

2017-03-15 Thread vinodkone
Added a test for the 'CombinedAuthenticator'. This patch adds a unit test to verify the functionality of the `CombinedAuthenticator`. The new test is called `CombinedAuthenticatorTest.MultipleAuthenticators`. Review: https://reviews.apache.org/r/56475/ Project: http://git-wip-us.apache.org/repo

[1/3] mesos git commit: Added the 'CombinedAuthenticator'.

2017-03-15 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 306e379be -> a68e1f28d Added the 'CombinedAuthenticator'. This patch adds a new default authenticator, the `CombinedAuthenticator`, which can load multiple authenticators. It calls installed authenticators serially, returning the first succ

[2/3] mesos git commit: Enabled loading multiple HTTP authenticators in Mesos.

2017-03-15 Thread vinodkone
Enabled loading multiple HTTP authenticators in Mesos. This patch updates the Mesos code to allow master and agent to load multiple HTTP authenticator modules. Review: https://reviews.apache.org/r/56476/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache

mesos git commit: Sorted enum values in `authorizer.proto` by numerical order.

2017-03-14 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master fa7f4090a -> cd40c419a Sorted enum values in `authorizer.proto` by numerical order. Aliasing is allowed in `org.apache.mesos.authorization.Actions`, so the values have to be kept in numerical order in order to prevent accidental aliasing.

mesos git commit: Added a missing header to fix 'make distcheck'.

2017-03-13 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master f37c51dfb -> a52dfcb82 Added a missing header to fix 'make distcheck'. process/jwt.hpp was missing. Review: https://reviews.apache.org/r/57562/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.o

[3/6] mesos git commit: Added support for JSON Web Tokens.

2017-03-13 Thread vinodkone
Added support for JSON Web Tokens. JSON Web Tokens can be used to create claim-based access tokens and is typically used for HTTP authentication. This implementation is intended for internal use, e.g. Mesos is supposed to only parse tokens that it also created. It doesn't fully comply with RFC 751

[6/6] mesos git commit: Implemented a JWT secret generator.

2017-03-13 Thread vinodkone
Implemented a JWT secret generator. This can be used to create a 'Secret' from a 'Principal'. The resulting secret will provide a JWT. Review: https://reviews.apache.org/r/56754/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/comm

[4/6] mesos git commit: Implemented the JWT authenticator.

2017-03-13 Thread vinodkone
Implemented the JWT authenticator. This HTTP authenticator extracts a JWT from the requests' authorization header using the 'Bearer' schema and validates it against a secret using HMAC SHA256. The 'sub' claim of the JWT is the extracted principal, all other claims will be additional labels of the

[1/6] mesos git commit: Added a URL-safe base64 implementation.

2017-03-13 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master ec319931c -> f37c51dfb Added a URL-safe base64 implementation. Base64 has many variants that use different alphabets for encoding. "Base 64 Encoding with URL and Filename Safe Alphabet" is a variant described in RFC 4648. This variant is us

[2/6] mesos git commit: Added a HMAC SHA256 generator.

2017-03-13 Thread vinodkone
Added a HMAC SHA256 generator. HMAC SHA256 can be used to create or verify message signatures. Review: https://reviews.apache.org/r/5/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f1d0a1c2 Tree: http://git-wip-us.apac

[5/6] mesos git commit: Added the SecretGenerator module interface.

2017-03-13 Thread vinodkone
Added the SecretGenerator module interface. This interface will be used by agents to create credentials for the default executor. Review: https://reviews.apache.org/r/56757/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/68

mesos git commit: Clarified a comment for 'Principal' in libprocess.

2017-03-09 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 626fcde91 -> ff4bdbbe8 Clarified a comment for 'Principal' in libprocess. This patch fixes a comment to correctly assert that at least one of the two members of the `Principal` struct _must_ be set. Review: https://reviews.apache.org/r/574

[2/2] mesos git commit: Updated default executor tests to exclusively use v1 protos.

2017-03-07 Thread vinodkone
Updated default executor tests to exclusively use v1 protos. Now all the tests in this file use v1 protos. Review: https://reviews.apache.org/r/57058 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f38a3f18 Tree: http://git-

[1/2] mesos git commit: Updated default executor tests.

2017-03-07 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 623e46791 -> 499173d39 Updated default executor tests. Reorganized so that objects are defined closer to their usage. Review: https://reviews.apache.org/r/57059 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://gi

[2/3] mesos git commit: Support 'v1::createCallAccept()' helper with multi operations.

2017-03-06 Thread vinodkone
Support 'v1::createCallAccept()' helper with multi operations. Multiple offer operations should be supported for 'Accept' call. Review: https://reviews.apache.org/r/57185/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/93ea

[1/3] mesos git commit: Fixed bugs in tests/mesos.hpp helpers.

2017-03-06 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 072638d25 -> 0a9bfe193 Fixed bugs in tests/mesos.hpp helpers. Segfault may occur on two function with v1 scenario: 1. createPersistentVolume(). 2. createDiskResource(). These are due to the use of common 'Resources::parse()'. This patch fix

[3/3] mesos git commit: Added unit test for persistent volume using default executor.

2017-03-06 Thread vinodkone
Added unit test for persistent volume using default executor. This unit test verifies that the task group launched in the default executor can access the persistent volume on the executor level by using 'volume/sandbox_path' isolator. The test is parameterized as the following three cases: 1. pos

[04/14] mesos git commit: Updated master validation code to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated master validation code to use the 'Principal' type. This patch updates master validation code to make use of the `Principal` type instead of an `Option principal`. Review: https://reviews.apache.org/r/56901/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-w

[10/14] mesos git commit: Updated master handlers to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated master handlers to use the 'Principal' type. This patch updates the HTTP endpoint handlers in the master process to accept the `Principal` type instead of an `Option& principal`. Review: https://reviews.apache.org/r/56813/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commi

[08/14] mesos git commit: Updated agent handlers to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated agent handlers to use the 'Principal' type. This patch updates the HTTP endpoint handlers in the agent process to accept the `Principal` type instead of an `Option& principal`. Review: https://reviews.apache.org/r/56812/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[11/14] mesos git commit: Updated libprocess tests to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated libprocess tests to use the 'Principal' type. This patch updates the HTTP-related libprocess tests to use authenticated handlers which accept the `Principal` type instead of an `Option principal`. Review: https://reviews.apache.org/r/56624/ Project: http://git-wip-us.apache.org/repos/as

[01/14] mesos git commit: Implemented the 'Principal' type in libprocess.

2017-03-06 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 5ac6e1563 -> 072638d25 Implemented the 'Principal' type in libprocess. This patch adds a new struct, `Principal`, to libprocess to represent an authenticated entity in the system. The new type contains a string `value` and a map containing

[12/14] mesos git commit: Added a new libprocess test for invalid principals.

2017-03-06 Thread vinodkone
Added a new libprocess test for invalid principals. This patch adds `HttpAuthenticationTest.InvalidPrincipal` to libprocess to verify that requests return a 500 status code when the authenticator fails to return a valid principal. Review: https://reviews.apache.org/r/57298/ Project: http://git-

[14/14] mesos git commit: Added default parameter value to master validation function.

2017-03-06 Thread vinodkone
Added default parameter value to master validation function. The master's validation function for RESERVE operations previously did not set a default parameter value for its final optional parameter, requiring callsites to explicitly specify `None()`. This patch adds the default value. Review: ht

[09/14] mesos git commit: Updated master handlers to use the 'Principal' type.

2017-03-06 Thread vinodkone
http://git-wip-us.apache.org/repos/asf/mesos/blob/da47646e/src/master/weights_handler.cpp -- diff --git a/src/master/weights_handler.cpp b/src/master/weights_handler.cpp index d8047f2..453bf37 100644 --- a/src/master/weights_handle

[07/14] mesos git commit: Updated 'Files' handlers to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated 'Files' handlers to use the 'Principal' type. This patch updates the HTTP endpoint handlers in the Mesos `Files` process to accept the `Principal` type instead of an `Option& principal`. Review: https://reviews.apache.org/r/56619/ Project: http://git-wip-us.apache.org/repos/asf/mesos/re

[02/14] mesos git commit: Updated libprocess handlers to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated libprocess handlers to use the 'Principal' type. This patch updates the HTTP endpoint handlers in libprocess to make use of the `Principal` type instead of an `Option& principal`. Review: https://reviews.apache.org/r/56617/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Comm

[05/14] mesos git commit: Fixed a bug in master and agent handler authorization logic.

2017-03-06 Thread vinodkone
Fixed a bug in master and agent handler authorization logic. This patch fixes a bug where endpoint handlers would not correctly handle the case in which authorization is enabled when authentication is disabled. In this case, the handlers would send a default-constructed `authorization::Subject` to

[13/14] mesos git commit: Updated Mesos tests to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated Mesos tests to use the 'Principal' type. This patch updates the Mesos tests to use authenticated handlers which accept the `Principal` type instead of an `Option principal`. Review: https://reviews.apache.org/r/56621/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: ht

[03/14] mesos git commit: Updated common Mesos code to use the 'Principal' type.

2017-03-06 Thread vinodkone
Updated common Mesos code to use the 'Principal' type. This patch updates common Mesos HTTP-related helpers, as well as the `authorization::Subject` protobuf message, to make use of the `Principal` type instead of an `Option principal`. Review: https://reviews.apache.org/r/56618/ Project: http:

[06/14] mesos git commit: Removed unnecessary 'using' statement in master HTTP code.

2017-03-06 Thread vinodkone
Removed unnecessary 'using' statement in master HTTP code. `MetricsProcess` was previously declared in 'src/master/http.cpp', but it is not currently used in that file. This patch removes the declaration. Review: https://reviews.apache.org/r/57153/ Project: http://git-wip-us.apache.org/repos/as

mesos git commit: Clarified naming rules in C++ style guide.

2017-03-01 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 0d717e08e -> 6e57f67af Clarified naming rules in C++ style guide. This patch clarifies the differences in naming rules between Mesos application code and the libprocess/stout libraries. It also updates Wikipedia links to point to more instr

mesos git commit: Minor fixes to operator API doc.

2017-02-17 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master d8b88e7f6 -> e7f17037b Minor fixes to operator API doc. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e7f17037 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree

mesos git commit: Documented all the API calls for Operator HTTP API.

2017-02-17 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/1.2.x 1230ba2bb -> 5b810aaeb Documented all the API calls for Operator HTTP API. Review: https://reviews.apache.org/r/50974/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5

mesos git commit: Documented all the API calls for Operator HTTP API.

2017-02-17 Thread vinodkone
Repository: mesos Updated Branches: refs/heads/master 0725e1bdb -> 788c7dcec Documented all the API calls for Operator HTTP API. Review: https://reviews.apache.org/r/50974/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/

[4/5] mesos git commit: Removed all instances of '.Times(1)' from Mesos tests.

2017-02-17 Thread vinodkone
Removed all instances of '.Times(1)' from Mesos tests. Using `.Times(1)` with `EXPECT_CALL` is redundant, as this is implied by default. This patch removes all such remaining occurrences from the Mesos tests. Review: https://reviews.apache.org/r/56187/ Project: http://git-wip-us.apache.org/repo

[5/5] mesos git commit: Removed all instances of '.Times(1)' from libprocess tests.

2017-02-17 Thread vinodkone
Removed all instances of '.Times(1)' from libprocess tests. Using `.Times(1)` with `EXPECT_CALL` is redundant, as this is implied by default. This patch removes all such remaining occurrences from the libprocess tests. Review: https://reviews.apache.org/r/56188/ Project: http://git-wip-us.apach

[2/5] mesos git commit: Added a 'SECRET' type to the 'Environment' protobuf message.

2017-02-17 Thread vinodkone
Added a 'SECRET' type to the 'Environment' protobuf message. This patch adds a field of type `Secret` to the `Environment` protobuf message, enabling the passing of secrets into the environments of executors and tasks. Additional validation and test code is added as well. Review: https://reviews.

<    1   2   3   4   5   6   7   8   9   10   >