mesos git commit: Enhanced error message for invalid duration units.

2016-05-30 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 002c1fe93 -> a1712bd30 Enhanced error message for invalid duration units. Review: https://reviews.apache.org/r/46093/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Updated comments, docs, and TODO referring to 0.29.

2016-06-16 Thread alexr
Repository: mesos Updated Branches: refs/heads/master a7a87329c -> d43cfc14d Updated comments, docs, and TODO referring to 0.29. Review: https://reviews.apache.org/r/48785/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/2] mesos git commit: Fixed chronos link in documentation.

2016-06-16 Thread alexr
Fixed chronos link in documentation. The previous link 'airbnb/chronos' is just a mirrow of 'mesos/airbnb'. Review: https://reviews.apache.org/r/48787/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d43cfc14 Tree:

[1/2] mesos git commit: Explained why fields in the acts.Entity must be required.

2016-06-20 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 7d27e3ace -> e7bf541c9 Explained why fields in the acts.Entity must be required. Review: https://reviews.apache.org/r/48936/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Made authorization.md consistent in respect to columns width.

2016-06-27 Thread alexr
Repository: mesos Updated Branches: refs/heads/master b431db793 -> 07f1aeab7 Made authorization.md consistent in respect to columns width. Review: https://reviews.apache.org/r/49254/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/4] mesos git commit: Fixed indentation in CHANGELOG.

2016-04-06 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 87b515910 -> dd29b2bcb Fixed indentation in CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2116615f Tree:

[1/2] mesos git commit: Updated comments in allocator tests for consistency.

2016-04-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 06defcb9b -> 656702960 Updated comments in allocator tests for consistency. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2a9e7697 Tree:

[2/2] mesos git commit: Replaced empty hashmaps with {} in allocator tests.

2016-04-13 Thread alexr
Replaced empty hashmaps with {} in allocator tests. Review: https://reviews.apache.org/r/44334/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/65670296 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/65670296 Diff:

[1/2] mesos git commit: Moved variable declarations closer to where they are used.

2016-04-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 656702960 -> c23932d57 Moved variable declarations closer to where they are used. We usually declare related variables closer to each other to increase code readability. Review: https://reviews.apache.org/r/44335/ Project:

[2/2] mesos git commit: Removed numeric suffixes where appropriate in allocator tests.

2016-04-13 Thread alexr
Removed numeric suffixes where appropriate in allocator tests. We should not enumerate variables if the corresponding instance is the only one of such type in the test. Review: https://reviews.apache.org/r/44336/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Updated error messages in weights handler.

2016-04-11 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 75f65bd33 -> 7d9a5b564 Updated error messages in weights handler. While writing log or error messages we adhere the following style: - No period at the end (there are exceptions though, e.g., one is when constructing request

[2/2] mesos git commit: Removed request body from some error responses in quota handler.

2016-04-11 Thread alexr
Removed request body from some error responses in quota handler. When an error is not related to the whole request (e.g., parsing, converting to protobuf), but to its part (e.g., unknown role), it seems unnecessary to include the complete request body into the error response. Review:

mesos git commit: Fixed logic error in mesos-execute.

2016-04-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master c23932d57 -> d88c9f977 Fixed logic error in mesos-execute. Review: https://reviews.apache.org/r/46102/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d88c9f97 Tree:

[3/3] mesos git commit: Introduced kill task delay in mesos-execute.

2016-04-12 Thread alexr
Introduced kill task delay in mesos-execute. Adds a flag that specifies a delay after which the task should be killed. If set, a kill task request is scheduled to be sent after TASK_RUNNING status update has been received. Also adds support for TASK_KILLING capability. Review:

[1/3] mesos git commit: Extended logging for task status updates in mesos-execute.

2016-04-12 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 0426ffbbf -> 371072e97 Extended logging for task status updates in mesos-execute. Review: https://reviews.apache.org/r/45925/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/3] mesos git commit: Cleaned up flag descriptions in mesos-execute.

2016-04-12 Thread alexr
mmand."); add(, "shell", @@ -96,67 +96,68 @@ public: "treated as executable value and arguments (TODO).", true); +// TODO(alexr): Once MESOS-4882 lands, elaborate on what `command` can +// mean: an executable, a shell command, an

[09/10] mesos git commit: Speeded up SchedulerTest.Decline.

2016-04-12 Thread alexr
Speeded up SchedulerTest.Decline. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43321/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a326e71b Tree:

[06/10] mesos git commit: Speeded up MasterTest.RecoverResources.

2016-04-12 Thread alexr
Speeded up MasterTest.RecoverResources. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43514/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2989e90d Tree:

[05/10] mesos git commit: Speeded up MasterTest.OfferTimeout.

2016-04-12 Thread alexr
Speeded up MasterTest.OfferTimeout. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43517/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/424b1050 Tree:

[01/10] mesos git commit: Speeded up MasterAllocatorTest.SlaveLost test.

2016-04-12 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 371072e97 -> a326e71b7 Speeded up MasterAllocatorTest.SlaveLost test. Set the `executor_shutdown_grace_period` to a small value so that the agent does not wait for executors to clean up for too long. Review:

[03/10] mesos git commit: Speeded up MasterTest.LaunchCombinedOfferTest.

2016-04-12 Thread alexr
Speeded up MasterTest.LaunchCombinedOfferTest. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43516/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b7770c6e Tree:

[08/10] mesos git commit: Speeded up OversubscriptionTest.RemoveCapabilitiesOnSchedulerFailover.

2016-04-12 Thread alexr
Speeded up OversubscriptionTest.RemoveCapabilitiesOnSchedulerFailover. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43522/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[02/10] mesos git commit: Speeded up RecoverTest.AutoInitialization.

2016-04-12 Thread alexr
Speeded up RecoverTest.AutoInitialization. Advance the clock to avoid waiting for a retry delay used by log replicas in recovery protocol. Review: https://reviews.apache.org/r/43524/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[04/10] mesos git commit: Speeded up MasterTest.MasterInfoOnReElection.

2016-04-12 Thread alexr
Speeded up MasterTest.MasterInfoOnReElection. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43515/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f9a068d0 Tree:

[07/10] mesos git commit: Speeded up OversubscriptionTest.UpdateAllocatorOnSchedulerFailover.

2016-04-12 Thread alexr
Speeded up OversubscriptionTest.UpdateAllocatorOnSchedulerFailover. Advance the clock to trigger a batch allocation instantly. Review: https://reviews.apache.org/r/43521/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/4] mesos git commit: Added a path to the upgrade test script.

2016-04-06 Thread alexr
Added a path to the upgrade test script. In Mesos 0.28.0, MESOS-3608 changed the MESOS_BUILD_DIR environment variable in the test framework to MESOS_HELPER_DIR, and the location of the path itself. This patch updates the upgrade script to accommodate both environment variables. Review:

[3/4] mesos git commit: Updated the comment for launching tasks and accepting offers.

2016-04-06 Thread alexr
Updated the comment for launching tasks and accepting offers. If the task does not pass validation, its resources are considered declined. Review: https://reviews.apache.org/r/45039/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[4/4] mesos git commit: Fixed a typo in fetcher doc.

2016-04-06 Thread alexr
Fixed a typo in fetcher doc. https://github.com/apache/mesos/pull/96 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/dd29b2bc Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/dd29b2bc Diff:

[1/3] mesos git commit: Replaced EXIT(1) with EXIT(EXIT_FAILURE).

2016-03-24 Thread alexr
Repository: mesos Updated Branches: refs/heads/master b87f01b85 -> 1a9fd2a07 Replaced EXIT(1) with EXIT(EXIT_FAILURE). Review: https://reviews.apache.org/r/8 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1a9fd2a0

[2/3] mesos git commit: Replaced EXIT(1) with EXIT(EXIT_FAILURE) in libprocess.

2016-03-24 Thread alexr
Replaced EXIT(1) with EXIT(EXIT_FAILURE) in libprocess. Review: https://reviews.apache.org/r/7 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e1c9ec4b Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e1c9ec4b

[3/3] mesos git commit: Replaced EXIT(1) with EXIT(EXIT_FAILURE) in stout.

2016-03-24 Thread alexr
Replaced EXIT(1) with EXIT(EXIT_FAILURE) in stout. Review: https://reviews.apache.org/r/6 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bbe76382 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bbe76382 Diff:

[4/9] mesos git commit: Added a test for executor shutdown grace period.

2016-03-24 Thread alexr
Added a test for executor shutdown grace period. Review: https://reviews.apache.org/r/44994/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/201ab8f3 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/201ab8f3 Diff:

[1/9] mesos git commit: Made `shutdown_grace_period` configurable in `ExecutorInfo`.

2016-03-24 Thread alexr
K_LOST` updates for any remaining active tasks of this executor. +// +// NOTE: The executor must not assume that it will always be allotted +// the full grace period, as the agent may decide to allot a shorter +// period and failures / forcible terminations may occur. +// +

[3/9] mesos git commit: Enabled mocking on `TestContainerizer::destroy`.

2016-03-24 Thread alexr
Enabled mocking on `TestContainerizer::destroy`. Review: https://reviews.apache.org/r/44991/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4aba78e8 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4aba78e8 Diff:

[8/9] mesos git commit: Introduced `KillPolicy` protobuf.

2016-03-24 Thread alexr
Introduced `KillPolicy` protobuf. Describes a kill policy for a task. Currently does not express different policies (e.g. hitting HTTP endpoints), only controls how long to wait between graceful and forcible task kill. Review: https://reviews.apache.org/r/44656/ Project:

[5/9] mesos git commit: Added validation for executor's shutdown grace period.

2016-03-24 Thread alexr
Added validation for executor's shutdown grace period. Review: https://reviews.apache.org/r/44854/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/52cba1d5 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/52cba1d5

[9/9] mesos git commit: Removed unused signal escalation constant.

2016-03-24 Thread alexr
Removed unused signal escalation constant. Review: https://reviews.apache.org/r/44658/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/39acb0a6 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/39acb0a6 Diff:

[2/9] mesos git commit: Reordered function declarations in `TestContainerizer`.

2016-03-24 Thread alexr
Reordered function declarations in `TestContainerizer`. The common pattern is to follow the order in the parent class. Review: https://reviews.apache.org/r/44992/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d322aa95

[7/9] mesos git commit: Added validation for task's kill policy.

2016-03-24 Thread alexr
Added validation for task's kill policy. Review: https://reviews.apache.org/r/44707/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1fe6221a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1fe6221a Diff:

[6/9] mesos git commit: Used `KillPolicy` and shutdown grace period in command executor.

2016-03-24 Thread alexr
, the executor's +// shutdown grace period is used, which is set to some default value. +// +// NOTE: We leave a small buffer of time to do the forced kill, otherwise +// the agent may destroy the container before we can send `TASK_KILLED`. +// +// TODO(alexr): Remo

mesos git commit: Corrected a typo in containerizer docs.

2016-04-05 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 509c32f32 -> 135c3ada2 Corrected a typo in containerizer docs. Replace "Entrypy" with "Entrypt". Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/135c3ada Tree:

[2/4] mesos git commit: Fixed a common typo in libprocess.

2016-03-30 Thread alexr
Fixed a common typo in libprocess. Though common, "occured" is incorrect spelling. Review: https://reviews.apache.org/r/45476/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ddefe798 Tree:

[3/4] mesos git commit: Fixed a common typo in stout.

2016-03-30 Thread alexr
Fixed a common typo in stout. Though common, "occured" is incorrect spelling. Review: https://reviews.apache.org/r/45477/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d4e270f4 Tree:

[1/4] mesos git commit: Fixed typos in isolator test comments.

2016-03-30 Thread alexr
Repository: mesos Updated Branches: refs/heads/master c0c16c7f1 -> 9308a3b33 Fixed typos in isolator test comments. Review: https://reviews.apache.org/r/45475/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/cd5da90c

[4/4] mesos git commit: Fixed a common typo.

2016-03-30 Thread alexr
Fixed a common typo. Though common, "occured" is incorrect spelling. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9308a3b3 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9308a3b3 Diff:

[3/6] mesos git commit: Used `KillPolicy` and shutdown grace period in docker executor.

2016-03-31 Thread alexr
;< endl; +// Currently, 'docker->run' uses the reaper internally, hence we need +// to account for the reap interval. We also leave a small buffer of +// time to do the forced kill, otherwise the agent may destroy the +// container before we can send `TASK_KILLED`. +//

[5/6] mesos git commit: WIP: mesos-execute.

2016-03-31 Thread alexr
(); if (shell) { @@ -271,7 +280,12 @@ protected: commandInfo->set_value(command.get()); } else { // TODO(gilbert): Treat 'command' as executable value and arguments. + // TODO(alexr): Add support for arguments. + commandInfo->set_shell(fa

[1/6] mesos git commit: Refactored command executor's shutdown logic.

2016-03-31 Thread alexr
xecutor manages a single task, we -// shutdown completely when we receive a killTask. -shutdown(driver); +// Default grace period is set to 3s for backwards compatibility. +// +// TODO(alexr): Replace it with a more meaningful default, e.g. +// `shutdownGracePeriod` af

[6/6] mesos git commit: Added Hamburg Mesos User Group to community page.

2016-03-31 Thread alexr
Added Hamburg Mesos User Group to community page. Review: https://reviews.apache.org/r/45539/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a3d29b9c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a3d29b9c Diff:

[2/6] mesos git commit: Refactored docker executor's shutdown logic.

2016-03-31 Thread alexr
Refactored docker executor's shutdown logic. Even though the docker executor manages a single task, killTask() and shutdown() differ in time period the executor has to finalize. If a killTask is issued, the executor may use as much time as needed to wait for the underlying container (not

[4/6] mesos git commit: Deprecated the `docker_stop_timeout` flag.

2016-03-31 Thread alexr
in the docker container.\n"); +// TODO(alexr): Remove this after the deprecation cycle (started in 0.29). add(_timeout, "stop_timeout", "The duration for docker to wait after stopping a running container\n" -"before it kills that containe

mesos git commit: Revert "WIP: mesos-execute."

2016-03-31 Thread alexr
// TODO(gilbert): Treat 'command' as executable value and arguments. - // TODO(alexr): Add support for arguments. - commandInfo->set_shell(false); - - commandInfo->set_value(command.get()); - commandInfo->add_arguments()->assign(command.get());

mesos git commit: Updated a note about quota limit in the documentation.

2016-04-01 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 5d2cec1f3 -> 0319ce779 Updated a note about quota limit in the documentation. Review: https://reviews.apache.org/r/45577/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Fixed a typo in "future.hpp".

2016-03-29 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 299f07a4e -> d002ae2b1 Fixed a typo in "future.hpp". Review: https://reviews.apache.org/r/45424/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d002ae2b Tree:

mesos git commit: Corrected a typo in the allocator tests.

2016-03-29 Thread alexr
Repository: mesos Updated Branches: refs/heads/master d002ae2b1 -> 8d2368c66 Corrected a typo in the allocator tests. Review: https://reviews.apache.org/r/44333/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8d2368c6

[2/3] mesos git commit: Changed non-ascii characters to their ascii equivalent.

2016-04-04 Thread alexr
Changed non-ascii characters to their ascii equivalent. Review: https://reviews.apache.org/r/45660/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/905f99e4 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/905f99e4

[1/3] mesos git commit: Added a commit hook for checking non-printable characters.

2016-04-04 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 5ff13bece -> fec6bf17e Added a commit hook for checking non-printable characters. This patch adds an addition check in mesos-style.py to check for non-printable characters. It scans .cpp, .hpp, .cc, .h files and reports an error if

[3/3] mesos git commit: Changed non-ascii characters to their ascii equivalent in stout.

2016-04-04 Thread alexr
Changed non-ascii characters to their ascii equivalent in stout. Review: https://reviews.apache.org/r/45659/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2cac927c Tree:

mesos git commit: Passed argument by const-ref in command executor's escalated().

2016-04-22 Thread alexr
Repository: mesos Updated Branches: refs/heads/master fa7ca953c -> c5c0386ae Passed argument by const-ref in command executor's escalated(). Review: https://reviews.apache.org/r/46567/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Removed unused include in quota_handler.cpp.

2016-04-29 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 14418aa44 -> 1550ef479 Removed unused include in quota_handler.cpp. Review: https://reviews.apache.org/r/46763/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Removed unused header include in libprocess.

2016-04-29 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 1550ef479 -> c9dc0eb87 Removed unused header include in libprocess. Review: https://reviews.apache.org/r/46826/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Fixed compilation issue by introducing a separate variable.

2016-04-27 Thread alexr
Repository: mesos Updated Branches: refs/heads/master fbbcc6af6 -> d7ea5b87a Fixed compilation issue by introducing a separate variable. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d7ea5b87 Tree:

[2/2] mesos git commit: Added authorization to agents' `/monitor/statistics` endpoints.

2016-04-27 Thread alexr
Added authorization to agents' `/monitor/statistics` endpoints. Review: https://reviews.apache.org/r/46319/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fbbcc6af Tree:

[1/2] mesos git commit: Enabled authorization of endpoints on agents.

2016-04-27 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 321cd2aa6 -> fbbcc6af6 Enabled authorization of endpoints on agents. Add a method that checks with the authorizer whether a GET request shall be granted. Use this method to authorize '/flags' endpoint. Review:

mesos git commit: Added 0.28.1 download link to the stable releases page.

2016-04-27 Thread alexr
Repository: mesos Updated Branches: refs/heads/master bfedb4b57 -> 321cd2aa6 Added 0.28.1 download link to the stable releases page. https://github.com/apache/mesos/pull/97 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Removed deprecated annotation for values in a protobuf enum.

2016-05-18 Thread alexr
Repository: mesos Updated Branches: refs/heads/master b7e50fe8b -> 4248b3c3a Removed deprecated annotation for values in a protobuf enum. Support for deprecated annotation for enums was added in protobuf 2.6. Since we should be compatible with 2.5, refrain from using the feature. Project:

mesos git commit: Added authorization to agent's '/containers' endpoint.

2016-05-19 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 71e5099c5 -> 6224c8c7b Added authorization to agent's '/containers' endpoint. Used `GET_ENDPOINT_WITH_PATH` coarse-grained authz on agent's '/containers' endpoint to enable authorization on this endpoint. Updated docs and tests as well.

mesos git commit: Documented quota authorization changes.

2016-05-19 Thread alexr
Repository: mesos Updated Branches: refs/heads/master fc4507da5 -> 71e5099c5 Documented quota authorization changes. Review: https://reviews.apache.org/r/47400/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/71e5099c

[4/4] mesos git commit: Corrected a typo in slave authorization tests.

2016-05-09 Thread alexr
Corrected a typo in slave authorization tests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0104e734 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0104e734 Diff:

[3/4] mesos git commit: Documented the agent '/flags' endpoint.

2016-05-09 Thread alexr
Documented the agent '/flags' endpoint. Review: https://reviews.apache.org/r/46936/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3207c8b8 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3207c8b8 Diff:

[2/4] mesos git commit: Documented the agent '/metrics/snapshot' endpoint.

2016-05-09 Thread alexr
Documented the agent '/metrics/snapshot' endpoint. Review: https://reviews.apache.org/r/46935/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8e482f36 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8e482f36 Diff:

[1/4] mesos git commit: Added a missing blank line in "slave/http.cpp".

2016-05-09 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 0f25c7b94 -> 0104e7349 Added a missing blank line in "slave/http.cpp". Review: https://reviews.apache.org/r/47116/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Fixed ReplicaTest.Restore by ensuring a single connection to leveldb.

2016-05-10 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 57c3b24ef -> 49e1586d6 Fixed ReplicaTest.Restore by ensuring a single connection to leveldb. By design only a single process can access leveldb at a time. In this test, two instances of log replica try to open a connection at the same

mesos git commit: Updated master authn and authz endpoint documentation.

2016-05-12 Thread alexr
Repository: mesos Updated Branches: refs/heads/master b87fafc57 -> 3bd9ccf0c Updated master authn and authz endpoint documentation. Add authorization entry for "/flags" and regenerate the documentation, which includes authentication support for "/api/v1/scheduler". Project:

[1/4] mesos git commit: Documented that "/api/v1/scheduler" should be authenticated.

2016-05-12 Thread alexr
Repository: mesos Updated Branches: refs/heads/master e3ec91a10 -> b87fafc57 Documented that "/api/v1/scheduler" should be authenticated. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8854990e Tree:

[4/4] mesos git commit: Added a TODO in `Slave::Http::authorizeEndpoint()`.

2016-05-12 Thread alexr
oint". We're only interested // in the part after "/slave(n)" and tokenize the path accordingly. + // + // TODO(alexr): Refactor this into a helper function in `Slave::Http` so + // that other endpoints can reuse it. In the long run, absolute paths for + // endpoins should be sup

[3/4] mesos git commit: Renamed SlaveAuthorizationTest test fixture for consistency.

2016-05-12 Thread alexr
Renamed SlaveAuthorizationTest test fixture for consistency. Similar test fixture in master tests is called `MasterAuthorizerTest`. Rename `SlaveAuthorizationTest` to `SlaveAuthorizerTest` for consistency. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/4] mesos git commit: Added authorization of the '/flags' master endpoint.

2016-05-12 Thread alexr
Added authorization of the '/flags' master endpoint. Access to the '/flags' master endpoint is authorized using the 'GET_ENDPOINT_WITH_PATH' action. Review: https://reviews.apache.org/r/46784/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Added authorization for GET '/quota' master endpoint.

2016-05-17 Thread alexr
ew of the collection to avoid conflicts. + vector quotaInfos; + quotaInfos.reserve(master->quotas.size()); - // Create an entry (including role and resources) for each quota. foreachvalue (const Quota& quota, master->quotas) { -status.add_infos()->CopyFrom(quota.info); +quot

[2/2] mesos git commit: Cleaned up logs and ordering in "quota_handler.cpp".

2016-05-17 Thread alexr
p; quota, master->quotas) { +quotaInfos.push_back(quota.info); + } + + // Create a list of authorization actions for each role we may return. + // + // TODO(alexr): Use an authorization filter here once they are available. + list<Future> authorizedRoles; + foreach (const QuotaInfo& info,

mesos git commit: Corrected indentation in master quota tests.

2016-05-17 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 6e4f70b7a -> 0b3fc3efb Corrected indentation in master quota tests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0b3fc3ef Tree:

mesos git commit: Fixed erroneous `CHECK` in the HTTP command executor.

2016-05-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master bd9d20897 -> d20e54428 Fixed erroneous `CHECK` in the HTTP command executor. There might be instances when a command might get completed and is not required to have an explicit `Kill` request e.g., "echo hello world" etc. Unfortunately,

mesos git commit: Authenticated the agent's '/containers' endpoint.

2016-05-16 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 769701ce3 -> c4873eac1 Authenticated the agent's '/containers' endpoint. Review: https://reviews.apache.org/r/47061/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Corrected using order in "local/authorizer.cpp".

2016-05-16 Thread alexr
Repository: mesos Updated Branches: refs/heads/master c4873eac1 -> 039ab1fff Corrected using order in "local/authorizer.cpp". Mesos uses case-insensitive ordering of `using`. Review: https://reviews.apache.org/r/47401/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[3/3] mesos git commit: Removed unnecessary process::USAGE using declarations.

2016-05-13 Thread alexr
Removed unnecessary process::USAGE using declarations. MESOS-3239 has deemed providing usage information in endpoint help unnecessary and removed invocations of `process::USAGE()`. Corresponding using directives are no longer necessary. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo

[2/3] mesos git commit: Added missing documentation for authentication-enabled endpoints.

2016-05-13 Thread alexr
Added missing documentation for authentication-enabled endpoints. Review: https://reviews.apache.org/r/47314/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2e3707f2 Tree:

[1/3] mesos git commit: Documented that some libprocess endpoints should be authenticated.

2016-05-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master d20e54428 -> 88a43dfac Documented that some libprocess endpoints should be authenticated. Review: https://reviews.apache.org/r/47313/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Added Football Radar to Powered by Mesos list.

2016-05-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 88a43dfac -> 92fea3c32 Added Football Radar to Powered by Mesos list. This closes #103 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/92fea3c3 Tree:

mesos git commit: Refactored endpoint extraction from URL path.

2016-05-13 Thread alexr
ture Slave::Http::authorizeEndpoint( -const Request& httpRequest, -const Option& principal) const +Try Slave::Http::extractEndpoint(const process::http::URL& url) const { - if (slave->authorizer.isNone()) { -return true; - } - // Paths are of the form "/slave(n)

mesos git commit: Updated release guide to recommend regenerating endpoint help.

2016-05-18 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 54339eb0e -> f7d91ba2f Updated release guide to recommend regenerating endpoint help. Review: https://reviews.apache.org/r/47532/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Updated authorization.md to reflect recent changes.

2016-05-18 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 9f63d95f3 -> 54339eb0e Updated authorization.md to reflect recent changes. The API of the authorization has been changing over the last few versions. This patch updates the documentation taking those changes into account. Review:

[2/2] mesos git commit: Re-generated documentation for endpoints to include recent changes.

2016-05-18 Thread alexr
Re-generated documentation for endpoints to include recent changes. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/54339eb0 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/54339eb0 Diff:

mesos git commit: Used UPDATE_QUOTA_WITH_ROLE for both quota set and remove.

2016-05-18 Thread alexr
Repository: mesos Updated Branches: refs/heads/master f7d91ba2f -> a28917f18 Used UPDATE_QUOTA_WITH_ROLE for both quota set and remove. To consolidate authorization actions for quota, we introduce a new authorization action `UPDATE_QUOTA_WITH_ROLE` and corresponding ACL. They new action and

mesos git commit: Updated `createFrameworkInfo()` in hierarchical_allocator_tests.cpp.

2016-05-13 Thread alexr
Repository: mesos Updated Branches: refs/heads/master c0ab7f91d -> bd9038c2d Updated `createFrameworkInfo()` in hierarchical_allocator_tests.cpp. Adds support for framework capabilities in `createFrameworkInfo()`. Review: https://reviews.apache.org/r/42386/ Project:

[1/3] mesos git commit: Synced endpoint documentation by running generation script.

2016-05-02 Thread alexr
Repository: mesos Updated Branches: refs/heads/master 4f9040db6 -> f8de4f48b Synced endpoint documentation by running generation script. https://reviews.apache.org/r/46472/ introduced some manual changed to the endpoint documentation. This review syncs the actual endpoint documentation with

mesos git commit: Corrected formatting in framework development guide doc.

2016-05-05 Thread alexr
Repository: mesos Updated Branches: refs/heads/master a138e2246 -> bd929e645 Corrected formatting in framework development guide doc. This change includes: * Wrap text on 80 chars for consistency and readability; * Wrap argument list on '(' for consistency with "scheduler.hpp"; *

[2/2] mesos git commit: Removed extra blank line in "strings_tests.cpp".

2016-05-05 Thread alexr
Removed extra blank line in "strings_tests.cpp". Review: https://reviews.apache.org/r/43555/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/593dcbbc Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/593dcbbc Diff:

[1/2] mesos git commit: Fixed include sections style.

2016-05-05 Thread alexr
Repository: mesos Updated Branches: refs/heads/master bd929e645 -> 593dcbbca Fixed include sections style. Updates incorrectly formatted mesos include sections. Includes should be partioned into sections by subfolders. Review: https://reviews.apache.org/r/47019/ Project:

[4/4] mesos git commit: Updated HTTP command executor to support kill policy in Kill event.

2016-05-10 Thread alexr
ional double grace_period_seconds = 6 [default = 10.0]; + // TODO(alexr): Add an optional `KillPolicy` that should be used + // if the task is killed because of a health check failure. + // Command health check. optional CommandInfo command = 7; } http://git-wip-us.apache.org/repos/asf/mesos/b

[3/4] mesos git commit: Propagated KillPolicy in kill task from scheduler to executor.

2016-05-10 Thread alexr
Propagated KillPolicy in kill task from scheduler to executor. Review: https://reviews.apache.org/r/46323/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d6f22b6f Tree:

  1   2   3   4   5   6   7   8   9   10   >