aurora.git
2 years agoUpdating .auroraversion to release version 0.5.0-incubating. rel/0.5.0-incubating
Kevin Sweeney [Fri, 1 Aug 2014 17:25:06 +0000 (10:25 -0700)] 
Updating .auroraversion to release version 0.5.0-incubating.

2 years agoAURORA-607:release script is broken
Jake Farrell [Fri, 1 Aug 2014 17:13:28 +0000 (10:13 -0700)] 
AURORA-607:release script is broken

Updates release script to promote a voted on rc to an official release.

Testing Done:
./build-support/release/release -r 2

I have not tested the actual promotion of the rc to release, as this
is the first official ASF release of Apache Aurora I saved that for
Kevin to do

Steps to publish the 0.5.0 release with this script:
* git checkout 0.5.0-rc2
* apply this patch
* comment out dirty tree exit condition, line 89 of ./build-support/release/release
* test with: ./build-support/release/release -r 2
* rm -rf dist
* publish with: ./build-support/release/release -r 2 -p

Bugs closed: aurora-607

Reviewed at https://reviews.apache.org/r/24173/

2 years agoUpdating .auroraversion to 0.5.0-rc2.
Kevin Sweeney [Thu, 24 Jul 2014 17:13:27 +0000 (10:13 -0700)] 
Updating .auroraversion to 0.5.0-rc2.

2 years agoUpdating CHANGELOG for 0.5.0 release.
Kevin Sweeney [Thu, 24 Jul 2014 17:13:27 +0000 (10:13 -0700)] 
Updating CHANGELOG for 0.5.0 release.

2 years agoFix problem with deschedule command.
Mark Chu-Carroll [Thu, 24 Jul 2014 13:20:47 +0000 (09:20 -0400)] 
Fix problem with deschedule command.

Bugs closed: aurora-597

Reviewed at https://reviews.apache.org/r/23872/

2 years agoAURORA-599 - Reset changelog and version for 0.5.0 rc2
Jake Farrell [Thu, 24 Jul 2014 03:46:26 +0000 (23:46 -0400)] 
AURORA-599 - Reset changelog and version for 0.5.0 rc2

Resets the CHANGELOG and .auroraversion back to state it was
before 0.5.0-rc1 was cut. Jira fixVersion fields have been updated
as well to match any recent resolved tickets since 0.5.0-rc1
was cut that did not get tagged correctly.

Bugs closed: AURORA-599

Reviewed at https://reviews.apache.org/r/23876/

2 years agoAURORA-590: Release scripts branch and CHANGELOG urls are wrong in generated email...
Jake Farrell [Thu, 24 Jul 2014 03:01:05 +0000 (23:01 -0400)] 
AURORA-590: Release scripts branch and CHANGELOG urls are wrong in generated email template

Fixes urls in email templates to point to correct locations

Testing Done:
The CHANGELOG for the release is available at:
https://git-wip-us.apache.org/repos/asf?p=incubator-aurora.git&f=CHANGELOG&hb=0.5.0-rc1

The branch used to create the release candidate is:
https://git-wip-us.apache.org/repos/asf?p=incubator-aurora.git&hb=0.5.0-rc1

Bugs closed: AURORA-590

Reviewed at https://reviews.apache.org/r/23688/

2 years agoAURORA-594: RC1 files missing Apache license headers
Jake Farrell [Thu, 24 Jul 2014 02:32:03 +0000 (22:32 -0400)] 
AURORA-594: RC1 files missing Apache license headers

Adds missing license headers to empty and newly added files.

Testing Done:
ran: build-support/jenkins/build.sh

All test passed except test_cluster_option as outlined in AURORA-595

Bugs closed: AURORA-594

Reviewed at https://reviews.apache.org/r/23718/

2 years agoWhen syncing code to vagrant, delete files that were deleted from the repository.
Bill Farner [Wed, 23 Jul 2014 19:41:41 +0000 (12:41 -0700)] 
When syncing code to vagrant, delete files that were deleted from the repository.

Reviewed at https://reviews.apache.org/r/23859/

2 years agoDatabase-backed implementation of SchedulerStore.
Bill Farner [Wed, 23 Jul 2014 17:10:40 +0000 (10:10 -0700)] 
Database-backed implementation of SchedulerStore.

Bugs closed: AURORA-555

Reviewed at https://reviews.apache.org/r/23107/

2 years agoFiltering out unknown hosts when starting maintenance.
Maxim Khutornenko [Wed, 23 Jul 2014 17:13:59 +0000 (10:13 -0700)] 
Filtering out unknown hosts when starting maintenance.

Bugs closed: AURORA-443

Reviewed at https://reviews.apache.org/r/23827/

2 years agoImplementing parallel updater.
Maxim Khutornenko [Wed, 23 Jul 2014 17:07:41 +0000 (10:07 -0700)] 
Implementing parallel updater.

The updater now spawns upto batch_size threads to process
one instance per thread.

All scheduler calls are multiplexed by the SchedulerMux to do
batch kill/add/restart/status calls.

Bugs closed: AURORA-350

Reviewed at https://reviews.apache.org/r/21440/

2 years agoFix constraint violation caused by slave ID change.
Bill Farner [Wed, 23 Jul 2014 02:04:42 +0000 (19:04 -0700)] 
Fix constraint violation caused by slave ID change.

Bugs closed: AURORA-596

Reviewed at https://reviews.apache.org/r/23832/

2 years agoDocumentation for task health checking and graceful shutdown.
Bill Farner [Tue, 22 Jul 2014 23:29:24 +0000 (16:29 -0700)] 
Documentation for task health checking and graceful shutdown.

Bugs closed: AURORA-574

Reviewed at https://reviews.apache.org/r/23316/

2 years agoAdd --stacktrace to gradle build command.
Bill Farner [Tue, 22 Jul 2014 23:27:47 +0000 (16:27 -0700)] 
Add --stacktrace to gradle build command.

Reviewed at https://reviews.apache.org/r/23776/

2 years agoUpgrade jersey version.
Bill Farner [Tue, 22 Jul 2014 22:40:05 +0000 (15:40 -0700)] 
Upgrade jersey version.

Reviewed at https://reviews.apache.org/r/23823/

2 years agoRefactoring SchedulerCore (killTasks)
Maxim Khutornenko [Tue, 22 Jul 2014 22:40:38 +0000 (15:40 -0700)] 
Refactoring SchedulerCore (killTasks)

Bugs closed: AURORA-94

Reviewed at https://reviews.apache.org/r/23254/

2 years agoFixing return value in _check_sla.
Maxim Khutornenko [Tue, 22 Jul 2014 21:29:15 +0000 (14:29 -0700)] 
Fixing return value in _check_sla.
Also, adding extra logging in drainHosts RPC.

Bugs closed: AURORA-571

Reviewed at https://reviews.apache.org/r/23244/

2 years agoFix filter spec for leader redirect.
Bill Farner [Tue, 22 Jul 2014 19:17:22 +0000 (12:17 -0700)] 
Fix filter spec for leader redirect.

Bugs closed: AURORA-584

Reviewed at https://reviews.apache.org/r/23779/

2 years agoAURORA-595: Do not rely upon pytest capsys since command line parameters alter outcome.
Brian Wickman [Tue, 22 Jul 2014 18:00:20 +0000 (11:00 -0700)] 
AURORA-595: Do not rely upon pytest capsys since command line parameters alter outcome.

Testing Done:
./pants src/test/python/apache/aurora/common:test_cluster_option -s

Bugs closed: AURORA-595

Reviewed at https://reviews.apache.org/r/23817/

2 years agoAdd a lightweight version of command hooks for clientv1 commands.
Mark Chu-Carroll [Tue, 22 Jul 2014 14:50:00 +0000 (10:50 -0400)] 
Add a lightweight version of command hooks for clientv1 commands.

Bugs closed: aurora-581

Reviewed at https://reviews.apache.org/r/23455/

2 years agoRemove IsolatedSchedulerModule and surrounding code.
Bill Farner [Tue, 22 Jul 2014 00:33:03 +0000 (17:33 -0700)] 
Remove IsolatedSchedulerModule and surrounding code.

Bugs closed: AURORA-340

Reviewed at https://reviews.apache.org/r/20648/

2 years agoRevert "Instruct jacoco gradle plugin to save coverage details needed by jacoco jenki...
Bill Farner [Tue, 22 Jul 2014 00:29:50 +0000 (17:29 -0700)] 
Revert "Instruct jacoco gradle plugin to save coverage details needed by jacoco jenkins plugin."

This wound up breaking coverage reports in a way such that they were generated, but did not accurately report coverage.

Going to TBR commit to make progress.

Reviewed at https://reviews.apache.org/r/23782/

2 years agoAdding getPendingReason RPC to expose scheduling vetos in the UI/client.
Maxim Khutornenko [Mon, 21 Jul 2014 22:07:12 +0000 (15:07 -0700)] 
Adding getPendingReason RPC to expose scheduling vetos in the UI/client.

Bugs closed: AURORA-377

Reviewed at https://reviews.apache.org/r/23188/

2 years agoInstruct jacoco gradle plugin to save coverage details needed by jacoco jenkins plugin.
Bill Farner [Mon, 21 Jul 2014 21:48:28 +0000 (14:48 -0700)] 
Instruct jacoco gradle plugin to save coverage details needed by jacoco jenkins plugin.

Bugs closed: AURORA-593

Reviewed at https://reviews.apache.org/r/23753/

2 years agoSwitching from getTasksStatus to getTasksWithoutConfigs on the client.
Maxim Khutornenko [Mon, 21 Jul 2014 21:19:05 +0000 (14:19 -0700)] 
Switching from getTasksStatus to getTasksWithoutConfigs on the client.

Bugs closed: AURORA-553

Reviewed at https://reviews.apache.org/r/23144/

2 years agoAdd a line to the README file about running the end-to-end test.
Mark Chu-Carroll [Fri, 18 Jul 2014 18:08:25 +0000 (14:08 -0400)] 
Add a line to the README file about running the end-to-end test.

Reviewed at https://reviews.apache.org/r/23684/

2 years agoIncrementing snapshot version to 0.5.1-SNAPSHOT.
Kevin Sweeney [Thu, 17 Jul 2014 22:55:01 +0000 (15:55 -0700)] 
Incrementing snapshot version to 0.5.1-SNAPSHOT.

2 years agoUpdating CHANGELOG for 0.5.0 release.
Kevin Sweeney [Thu, 17 Jul 2014 22:55:00 +0000 (15:55 -0700)] 
Updating CHANGELOG for 0.5.0 release.

2 years agoFix release-candidate script to use apache-aurora-*
Kevin Sweeney [Thu, 17 Jul 2014 22:53:30 +0000 (15:53 -0700)] 
Fix release-candidate script to use apache-aurora-*

Reviewed at https://reviews.apache.org/r/23667/

2 years agoDatabase-backed implementation of AttributeStore.
Bill Farner [Thu, 17 Jul 2014 21:51:36 +0000 (14:51 -0700)] 
Database-backed implementation of AttributeStore.

Bugs closed: AURORA-557

Reviewed at https://reviews.apache.org/r/23105/

2 years agoFix logic error causing new slave attributes to be discarded.
Bill Farner [Thu, 17 Jul 2014 21:11:53 +0000 (14:11 -0700)] 
Fix logic error causing new slave attributes to be discarded.

Bugs closed: AURORA-582

Reviewed at https://reviews.apache.org/r/23653/

2 years agoRevert "Improve aurora "job diff" command."
Mark Chu-Carroll [Thu, 17 Jul 2014 15:18:35 +0000 (11:18 -0400)] 
Revert "Improve aurora "job diff" command."

This reverts commit 83a99364bb60f75c7acfbcd33e57b8c3dc6d4319.

2 years agoRevert "Modify failing test."
Mark Chu-Carroll [Thu, 17 Jul 2014 15:18:23 +0000 (11:18 -0400)] 
Revert "Modify failing test."

This reverts commit 303a84f871620b541188442a2cbe324d338af919.

2 years agoModify failing test.
Mark Chu-Carroll [Thu, 17 Jul 2014 15:01:59 +0000 (11:01 -0400)] 
Modify failing test.

2 years agoImprove aurora "job diff" command.
Mark Chu-Carroll [Thu, 17 Jul 2014 14:14:57 +0000 (10:14 -0400)] 
Improve aurora "job diff" command.

Add a new diff method, which uses field-by-field comparison of JSON trees for comparing running job configurations to potentially updated configs.

- Allow exclusion of semantically irrelevant fields.
- Provide a clearer list of the differences between configs.
- Provide a scripting-friendly alternative JSON syntax for diffs.

The old diff behavior is still available under the "--use-shell-diff" option.

Bugs closed: aurora-520

Reviewed at https://reviews.apache.org/r/22457/

2 years agoRevert "Improve aurora "job diff" command."
Mark Chu-Carroll [Wed, 16 Jul 2014 20:14:45 +0000 (16:14 -0400)] 
Revert "Improve aurora "job diff" command."

This reverts commit 2bb6342ec4ad2b62c2d6aab9621a79451e13ee29.

2 years agoImprove aurora "job diff" command.
Mark Chu-Carroll [Wed, 16 Jul 2014 19:30:34 +0000 (15:30 -0400)] 
Improve aurora "job diff" command.

Add a new diff method, which uses field-by-field comparison of JSON trees for comparing running job configurations to potentially updated configs.

- Allow exclusion of semantically irrelevant fields.
- Provide a clearer list of the differences between configs.
- Provide a scripting-friendly alternative JSON syntax for diffs.

The old diff behavior is still available under the "--use-shell-diff" option.

Bugs closed: aurora-520

Reviewed at https://reviews.apache.org/r/22457/

2 years agoAURORA-583: Upgrade to public release of pants
Brian Wickman [Wed, 16 Jul 2014 00:00:05 +0000 (17:00 -0700)] 
AURORA-583: Upgrade to public release of pants

Point pants at the public release instead of github fork.  Upgrades pex to
0.5.9 while we're at it.

Testing Done:
./pants src/test/python/apache/aurora:all -v

Bugs closed: AURORA-583

Reviewed at https://reviews.apache.org/r/23528/

2 years agoRevert "Improve aurora "job diff" command."
Mark Chu-Carroll [Tue, 15 Jul 2014 18:41:37 +0000 (14:41 -0400)] 
Revert "Improve aurora "job diff" command."

This reverts commit 92799eae2819cb81eba89ba6201f1ca333cfd503.

(Tests failed in CIB after passing locally.)

2 years agoImprove aurora "job diff" command.
Mark Chu-Carroll [Tue, 15 Jul 2014 18:08:27 +0000 (14:08 -0400)] 
Improve aurora "job diff" command.

Add a new diff method, which uses field-by-field comparison of JSON trees for comparing running job configurations to potentially updated configs.

- Allow exclusion of semantically irrelevant fields.
- Provide a clearer list of the differences between configs.
- Provide a scripting-friendly alternative JSON syntax for diffs.

The old diff behavior is still available under the "--use-shell-diff" option.

Testing Done:
New unit tests of the JSON tree diff code, plus a bunch of new "job diff" tests of the new functionality.
All tests pass.

Bugs closed: aurora-520

Reviewed at https://reviews.apache.org/r/22457/

2 years agoAURORA-565: update top level README with instructions on bootstrapping and running...
Jake Farrell [Tue, 8 Jul 2014 13:10:17 +0000 (09:10 -0400)] 
AURORA-565: update top level README with instructions on bootstrapping and running initial test

Updates README with basic instructions to get started with Apache Aurora.

Preview: https://github.com/jfarrell/incubator-aurora/tree/AURORA-565

Bugs closed: AURORA-565

Reviewed at https://reviews.apache.org/r/23317/

2 years agoAURORA-278 - Remove binaries from source RC
Jake Farrell [Mon, 7 Jul 2014 18:25:37 +0000 (14:25 -0400)] 
AURORA-278 - Remove binaries from source RC

Testing Done:
./builds-support/release/release-candidate -r 1 -l m

verified gig sig, md5, sha, untared release and looked for binary artifacts.

Additional review opened to address missing headers

Bugs closed: AURORA-278

Reviewed at https://reviews.apache.org/r/22983/

2 years agoConfigure H2 to use a named (non-private) database, and not close the database.
Bill Farner [Fri, 4 Jul 2014 04:42:18 +0000 (21:42 -0700)] 
Configure H2 to use a named (non-private) database, and not close the database.

Bugs closed: AURORA-573

Reviewed at https://reviews.apache.org/r/23273/

2 years agoExport a stat to track number of LOST gc_executors
Joe Smith [Thu, 3 Jul 2014 20:48:00 +0000 (13:48 -0700)] 
Export a stat to track number of LOST gc_executors

Bugs closed: AURORA-562

Reviewed at https://reviews.apache.org/r/23180/

2 years agoInstruct quartz to use all daemon threads.
Bill Farner [Thu, 3 Jul 2014 17:47:10 +0000 (10:47 -0700)] 
Instruct quartz to use all daemon threads.

Bugs closed: AURORA-560

Reviewed at https://reviews.apache.org/r/23219/

2 years agoMove license header to inner node in angular fragments.
Bill Farner [Wed, 2 Jul 2014 21:11:41 +0000 (14:11 -0700)] 
Move license header to inner node in angular fragments.

Bugs closed: AURORA-563

Reviewed at https://reviews.apache.org/r/23238/

2 years agoFix TaskObserver for json endpoint usage.
Kevin Burg [Wed, 2 Jul 2014 18:04:03 +0000 (11:04 -0700)] 
Fix TaskObserver for json endpoint usage.

Testing Done:
The `/j/task?task_id=id1,id2,...` endpoint now works.

Reviewed at https://reviews.apache.org/r/23211/

2 years agoLog loaded config file at level TRANSCRIPT (aka INFO+1)
Mark Chu-Carroll [Tue, 1 Jul 2014 22:07:59 +0000 (18:07 -0400)] 
Log loaded config file at level TRANSCRIPT (aka INFO+1)

Have client commands that load config files print the contents of the loaded config file to log at level TRANSCRIPT (aka INFO+1).

Bugs closed: aurora-567

Reviewed at https://reviews.apache.org/r/23199/

2 years agoAdd configuration plugins to default aurora client.
Mark Chu-Carroll [Tue, 1 Jul 2014 22:01:14 +0000 (18:01 -0400)] 
Add configuration plugins to default aurora client.

- Add a plugin to allow users to set logging levels.
- Add a plugin to allow users to configure whether or not unknown exceptions get
  caught or revealed.

Bugs closed: aurora-544, aurora-545

Reviewed at https://reviews.apache.org/r/22839/

2 years agoExport zero for racks that have no lost tasks.
Bill Farner [Tue, 1 Jul 2014 20:39:33 +0000 (13:39 -0700)] 
Export zero for racks that have no lost tasks.

Bugs closed: AURORA-548

Reviewed at https://reviews.apache.org/r/23189/

2 years agoUse java.util.Objects replacements for guava helpers.
Bill Farner [Tue, 1 Jul 2014 20:34:02 +0000 (13:34 -0700)] 
Use java.util.Objects replacements for guava helpers.

Reviewed at https://reviews.apache.org/r/22982/

2 years agoAdd a script that allows for easy selective rebuilding of components in the vagrant...
Bill Farner [Tue, 1 Jul 2014 19:36:57 +0000 (12:36 -0700)] 
Add a script that allows for easy selective rebuilding of components in the vagrant environment.

Reviewed at https://reviews.apache.org/r/22948/

2 years agoRevert "Returning a message when no tasks to kill."
Maxim Khutornenko [Tue, 1 Jul 2014 19:10:30 +0000 (12:10 -0700)] 
Revert "Returning a message when no tasks to kill."

Backing out of this change as there is no clean way to fix this now.

Bugs closed: AURORA-564

Reviewed at https://reviews.apache.org/r/23191/

2 years agoUse immutable types in AttributeStore.
Bill Farner [Thu, 26 Jun 2014 20:42:39 +0000 (13:42 -0700)] 
Use immutable types in AttributeStore.

Reviewed at https://reviews.apache.org/r/22999/

2 years agoChanging maintenance command to drain SLA-compliant hosts in a group.
Maxim Khutornenko [Thu, 26 Jun 2014 20:27:02 +0000 (13:27 -0700)] 
Changing maintenance command to drain SLA-compliant hosts in a group.

Bugs closed: AURORA-542

Reviewed at https://reviews.apache.org/r/22842/

2 years agoFixing isort-check (no newline at the end) introduced by:
Maxim Khutornenko [Thu, 26 Jun 2014 20:25:32 +0000 (13:25 -0700)] 
Fixing isort-check (no newline at the end) introduced by:
https://reviews.apache.org/r/22976/

2 years agoFix build break in code generator.
Bill Farner [Thu, 26 Jun 2014 20:13:18 +0000 (13:13 -0700)] 
Fix build break in code generator.

Reviewed at https://reviews.apache.org/r/23087/

2 years agoGenerate wrapper classes for all thrift structs in api.thrift.
Bill Farner [Thu, 26 Jun 2014 18:58:15 +0000 (11:58 -0700)] 
Generate wrapper classes for all thrift structs in api.thrift.

Reviewed at https://reviews.apache.org/r/22998/

3 years agoAURORA-552: License headers missing
Jake Farrell [Thu, 26 Jun 2014 02:46:31 +0000 (22:46 -0400)] 
AURORA-552: License headers missing

Adds missing license headers

Bugs closed: AURORA-552

Reviewed at https://reviews.apache.org/r/22976/

3 years agoAURORA-231: Upgrade gradle license plugin to v9 which contains reduced debug output
Jake Farrell [Thu, 26 Jun 2014 02:31:18 +0000 (22:31 -0400)] 
AURORA-231: Upgrade gradle license plugin to v9 which contains reduced debug output

Upgrades license plugin to latest version which contains updates to
silence ignored headers [1].

[1]: https://github.com/hierynomus/license-gradle-plugin/pull/31

Testing Done:
./gradlew -Pq clean build

Bugs closed: AURORA-231

Reviewed at https://reviews.apache.org/r/22956/

3 years agoDatabase-backed implementation of QuotaStore.
Bill Farner [Wed, 25 Jun 2014 23:24:37 +0000 (16:24 -0700)] 
Database-backed implementation of QuotaStore.

Bugs closed: AURORA-421

Reviewed at https://reviews.apache.org/r/21459/

3 years agoAdd test coverage for ResourceCounter.
Bill Farner [Wed, 25 Jun 2014 19:36:54 +0000 (12:36 -0700)] 
Add test coverage for ResourceCounter.

Reviewed at https://reviews.apache.org/r/22942/

3 years agoDocumenting SLA stats.
Maxim Khutornenko [Wed, 25 Jun 2014 19:31:11 +0000 (12:31 -0700)] 
Documenting SLA stats.

Bugs closed: AURORA-528

Reviewed at https://reviews.apache.org/r/22697/

3 years agoAURORA-480: Fix the end-to-end test
Brian Wickman [Tue, 24 Jun 2014 18:08:49 +0000 (11:08 -0700)] 
AURORA-480: Fix the end-to-end test

use pants_support_baseurls instead of pants_support_baseurl
incorporate fix from AURORA-523
add git clean -fdx so that we don't pull up the wrong pants.pex

Testing Done:
mba=aurora=; ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh

Bugs closed: AURORA-480

Reviewed at https://reviews.apache.org/r/22896/

3 years agoAdd a python clean.sh script
Joe Smith [Mon, 23 Jun 2014 23:44:43 +0000 (16:44 -0700)] 
Add a python clean.sh script

A script to clean out installed dependencies so I don't use the one in
twitter commons or pantsbuild.

Testing Done:
It works?

Reviewed at https://reviews.apache.org/r/22747/

3 years agoAURORA-543: Resources should be an allowed dependency of python libraries within...
Brian Wickman [Mon, 23 Jun 2014 23:30:24 +0000 (16:30 -0700)] 
AURORA-543: Resources should be an allowed dependency of python libraries within src/main/python.

Testing Done:

./pants src/main/python/apache/thermos/observer/bin:thermos_observer && \
 unzip -l dist/thermos_observer.pex to validate contents with .tpl files.

Bugs closed: AURORA-543

Reviewed at https://reviews.apache.org/r/22894/

3 years agoAdd getConfigGroupSummary API endpoint
David McLaughlin [Mon, 23 Jun 2014 22:44:52 +0000 (15:44 -0700)] 
Add getConfigGroupSummary API endpoint

Add getConfigGroupSummary API endpoint, which returns a TaskConfig ->
Set<InstanceId> struct for active tasks. This will let us paginate
active tasks, or drop TaskConfig from the getTasksStatus response in the
future.

Testing Done:
./gradlew build
./gradlew FlagSchemaChanges

Bugs closed: AURORA-519

Reviewed at https://reviews.apache.org/r/22429/

3 years agoRemove red from the config grouping
David McLaughlin [Mon, 23 Jun 2014 23:19:05 +0000 (19:19 -0400)] 
Remove red from the config grouping

Bugs closed: AURORA-525

Reviewed at https://reviews.apache.org/r/22486/

3 years agoRemove unused thrift flags from scheduler
Kevin Sweeney [Mon, 23 Jun 2014 22:01:30 +0000 (15:01 -0700)] 
Remove unused thrift flags from scheduler

Testing Done:
./gradlew -Pq build

Reviewed at https://reviews.apache.org/r/22097/

3 years agoclientv2 package should point to config-packaged
Brian Wickman [Sat, 21 Jun 2014 00:05:30 +0000 (17:05 -0700)] 
clientv2 package should point to config-packaged

Testing Done:
verified that apache/thermos/common doesn't get duplicately bundled into
clientv2 sdist.

Reviewed at https://reviews.apache.org/r/22849/

3 years agoAvoiding cluster-wide query in case hosts-scoped call did not produce any tasks.
Maxim Khutornenko [Fri, 20 Jun 2014 23:10:23 +0000 (16:10 -0700)] 
Avoiding cluster-wide query in case hosts-scoped call did not produce any tasks.

Bugs closed: AURORA-537

Reviewed at https://reviews.apache.org/r/22746/

3 years agoAdding admin command to get locks.
Maxim Khutornenko [Fri, 20 Jun 2014 21:55:55 +0000 (14:55 -0700)] 
Adding admin command to get locks.

Bugs closed: AURORA-347

Reviewed at https://reviews.apache.org/r/22701/

3 years agoAdding a getTasksStatusLight RPC to return null ExecutorConfig.
Maxim Khutornenko [Fri, 20 Jun 2014 21:43:21 +0000 (14:43 -0700)] 
Adding a getTasksStatusLight RPC to return null ExecutorConfig.

Bugs closed: AURORA-539

Reviewed at https://reviews.apache.org/r/22790/

3 years agoUpgrade pants with fixed setup_py command
Joe Smith [Fri, 20 Jun 2014 17:52:51 +0000 (10:52 -0700)] 
Upgrade pants with fixed setup_py command

Upgrade to a new version of pants, which includes the fix for setup_py- AURORA-536

This was built at
https://github.com/pantsbuild/pants/commit/dccd515fb684421f4122df6ff425bfd07359606f
of pants

Testing Done:
$ ./pants ./src/test/python:all

Bugs closed: AURORA-536

Reviewed at https://reviews.apache.org/r/22795/

3 years agoDropping the "Tasks killed" message.
Maxim Khutornenko [Thu, 19 Jun 2014 22:27:55 +0000 (15:27 -0700)] 
Dropping the "Tasks killed" message.

Bugs closed: AURORA-533

Reviewed at https://reviews.apache.org/r/22788/

3 years agoAdd test coverage for MesosLog.
Bill Farner [Thu, 19 Jun 2014 22:08:27 +0000 (15:08 -0700)] 
Add test coverage for MesosLog.

Reviewed at https://reviews.apache.org/r/22792/

3 years agoMigrate to pantsbuild pants
Joe Smith [Tue, 17 Jun 2014 21:24:20 +0000 (14:24 -0700)] 
Migrate to pantsbuild pants

To correct some 3rdparty-version-collisions, we're migrating onto pants
build's pants.

Testing Done:
On OS X 10.9: ./pants ./src/test/python:all

Bugs closed: AURORA-529

Reviewed at https://reviews.apache.org/r/22662/

3 years agoReturning a message when no tasks to kill.
Maxim Khutornenko [Tue, 17 Jun 2014 00:53:38 +0000 (17:53 -0700)] 
Returning a message when no tasks to kill.

Bugs closed: AURORA-533

Reviewed at https://reviews.apache.org/r/22663/

3 years agoAdding /locks endpoint to expose update locks.
Maxim Khutornenko [Mon, 16 Jun 2014 21:16:12 +0000 (14:16 -0700)] 
Adding /locks endpoint to expose update locks.

Bugs closed: AURORA-346

Reviewed at https://reviews.apache.org/r/22483/

3 years agoLog SlaveID without newline.
Kevin Sweeney [Mon, 16 Jun 2014 20:35:06 +0000 (13:35 -0700)] 
Log SlaveID without newline.

Testing Done:
./gradlew build

https://github.com/apache/mesos/blob/master/include/mesos/mesos.proto#L54-L62

Reviewed at https://reviews.apache.org/r/22408/

3 years agoFix FlagSchemaChanges.
Kevin Sweeney [Mon, 16 Jun 2014 18:08:53 +0000 (11:08 -0700)] 
Fix FlagSchemaChanges.

3 years agoAdd pagination to getTasksStatus
David McLaughlin [Mon, 16 Jun 2014 17:59:21 +0000 (10:59 -0700)] 
Add pagination to getTasksStatus

Testing Done:
./gradlew build

Bugs closed: AURORA-521

Reviewed at https://reviews.apache.org/r/22448/

3 years agoEscape TaskConfig in thermos UI
David McLaughlin [Thu, 12 Jun 2014 18:42:38 +0000 (11:42 -0700)] 
Escape TaskConfig in thermos UI

Testing Done:
Tested with vagrant locally.

Bugs closed: AURORA-523

Reviewed at https://reviews.apache.org/r/22476/

3 years agoRemove smart quotes from api.thrift
Joe Smith [Mon, 16 Jun 2014 04:20:52 +0000 (21:20 -0700)] 
Remove smart quotes from api.thrift

Bugs closed: AURORA-529

Reviewed at https://reviews.apache.org/r/22611/

3 years agoFix logging in the command-runner.
Mark Chu-Carroll [Thu, 12 Jun 2014 01:27:35 +0000 (21:27 -0400)] 
Fix logging in the command-runner.

Bugs closed: aurora-503

Reviewed at https://reviews.apache.org/r/22233/

3 years agoAdding SLA check into perform_maintenance_hosts command.
Maxim Khutornenko [Wed, 11 Jun 2014 19:50:27 +0000 (12:50 -0700)] 
Adding SLA check into perform_maintenance_hosts command.

Bugs closed: AURORA-445

Reviewed at https://reviews.apache.org/r/22167/

3 years agoPrevent keyboard interrupts from spewing stack dumps.
Mark Chu-Carroll [Wed, 11 Jun 2014 19:18:07 +0000 (15:18 -0400)] 
Prevent keyboard interrupts from spewing stack dumps.

(Also, cleanup python isort failures.)

Testing Done:
Added a new test of interrupt, and ran all client tests.

Bugs closed: aurora-497

Reviewed at https://reviews.apache.org/r/22207/

3 years agoImprove documentation and testing for host maintenance API
Joe Smith [Wed, 11 Jun 2014 00:57:34 +0000 (17:57 -0700)] 
Improve documentation and testing for host maintenance API

Bugs closed: AURORA-318

Reviewed at https://reviews.apache.org/r/20285/

3 years agoAdd transport to common package.
Brian Wickman [Tue, 10 Jun 2014 19:00:57 +0000 (12:00 -0700)] 
Add transport to common package.

Reviewed at https://reviews.apache.org/r/22407/

3 years agoAdd a short form of help for v1 client, so that merged help isn't unreasonably long.
Mark Chu-Carroll [Tue, 10 Jun 2014 14:28:33 +0000 (10:28 -0400)] 
Add a short form of help for v1 client, so that merged help isn't unreasonably long.

Bugs closed: aurora-422

Reviewed at https://reviews.apache.org/r/22263/

3 years agoImplement a TRequestsClient as a prelude to kerberization.
Brian Wickman [Mon, 9 Jun 2014 23:54:06 +0000 (16:54 -0700)] 
Implement a TRequestsClient as a prelude to kerberization.

This is the first bit of AURORA-515.  To add kerberos support, we just need
to add a dependency on requests_kerberos and inject KerberosAuth() as the
'auth=' parameter to TRequestsClient with the proper service principal
specified.

Testing Done:
Updated client/api tests for the new transport.

Reviewed at https://reviews.apache.org/r/22280/

3 years agoFixing broken increase_quota command.
Maxim Khutornenko [Mon, 9 Jun 2014 20:53:20 +0000 (13:53 -0700)] 
Fixing broken increase_quota command.

Bugs closed: AURORA-514

Reviewed at https://reviews.apache.org/r/22281/

3 years agoFixing quota check for non-prod/prod job transition.
Maxim Khutornenko [Mon, 9 Jun 2014 20:44:41 +0000 (13:44 -0700)] 
Fixing quota check for non-prod/prod job transition.

Bugs closed: AURORA-512

Reviewed at https://reviews.apache.org/r/22334/

3 years agoVariety of help fixes.
Mark Chu-Carroll [Mon, 9 Jun 2014 20:14:04 +0000 (16:14 -0400)] 
Variety of help fixes.

- Fixed glitch with string handling in "aurora help noun verb".
- Modified parameter name defaulting to produce better usage strings.
- Added whitespace between lines of a noun's usage message.
- Added missing parameter help messages for "job list" and "job status" parameters.

Bugs closed: aurora-437, aurora-508

Reviewed at https://reviews.apache.org/r/22243/

3 years agoModify clientv2 to always log messages from the server
Mark Chu-Carroll [Fri, 6 Jun 2014 18:35:56 +0000 (14:35 -0400)] 
Modify clientv2 to always log messages from the server

- Always show messages returned by the server.
- Update message handling in the client for api changes.
- Fix some test problems that were uncovered by the API change.

Bugs closed: aurora-477

Reviewed at https://reviews.apache.org/r/22023/

3 years agoMake errors in the thrift API interface handle-able by the aurora client.
Mark Chu-Carroll [Fri, 6 Jun 2014 14:11:55 +0000 (10:11 -0400)] 
Make errors in the thrift API interface handle-able by the aurora client.

- Add a general exception catch around the code that calls thrift RPCs,
  so that any error that occurs in the thrift code will be turned
  into a ThriftInternalException.
- Modify the client so that it catches internal errors without dumping
  stack, and cleanly exits with EXIT_API_ERROR.
- Add a file for tests of API functionality, instead of co-opting
  existing tests.

Reviewed at https://reviews.apache.org/r/22274/

3 years agoFixing query command.
Maxim Khutornenko [Thu, 5 Jun 2014 20:57:26 +0000 (13:57 -0700)] 
Fixing query command.

Bugs closed: AURORA-301

Reviewed at https://reviews.apache.org/r/22242/

3 years agoMake style consistent with build-support/python/checkstyle-check
Brian Wickman [Thu, 5 Jun 2014 16:48:43 +0000 (09:48 -0700)] 
Make style consistent with build-support/python/checkstyle-check

Reviewed at https://reviews.apache.org/r/22168/

3 years agoAdd a target for a standalone v2 client.
Mark Chu-Carroll [Thu, 5 Jun 2014 13:20:32 +0000 (09:20 -0400)] 
Add a target for a standalone v2 client.

This adds a new target, "src/main/python/apache/aurora/client/cli:aurora2_so",
which builds an executable for a non-bridged, standalone aurora client.

Bugs closed: aurora-505

Reviewed at https://reviews.apache.org/r/22214/