Commit Graph

3849 Commits

Author SHA1 Message Date
Diptanu Choudhury
522eebcbc1 Using a helper method to create service identifiers 2016-05-14 00:43:25 -07:00
Diptanu Choudhury
8c5aa0fe65 Added some docs 2016-05-14 00:36:26 -07:00
Diptanu Choudhury
947c481a45 Merge branches 'master' and 'f-config-consul-block' of github.com:hashicorp/nomad into f-config-consul-block 2016-05-13 13:05:11 -07:00
Diptanu Choudhury
e3fffa75aa Removing addition of the client service while reconciling services 2016-05-13 10:34:21 -07:00
Diptanu Choudhury
b2c18168a4 Making Nomad register services with consul in dev mode 2016-05-13 10:19:49 -07:00
Diptanu Choudhury
2216944676 Fixed an agent test 2016-05-11 17:26:53 -07:00
Diptanu Choudhury
269a28d5b3 Fixing the client test 2016-05-11 16:58:14 -07:00
Diptanu Choudhury
de660c4acf Removed allocID and task name from consul service 2016-05-11 16:26:41 -07:00
Diptanu Choudhury
4266e25e3c Using consul config from client config instead of reading from client options 2016-05-11 16:10:57 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Sean Chittenden
47146b9b87 Fix the unit tests for TestPrettyPrintOff
A different failing test masked that this wasn't even being run.

Pointy Hat: sean- for testing first on Travis in a branch vs verifying locally
2016-05-11 15:48:43 -07:00
Alex Dadgar
c612bb8276 Merge pull request #1166 from hashicorp/f-job-diff2
Job Diff structure
2016-05-11 15:38:56 -07:00
Alex Dadgar
b0d3f1ba28 Add service diff 2016-05-11 15:25:59 -07:00
Diptanu Choudhury
7b720afd86 Added tests for parsing consul client configuration 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
50b03354f2 Fixed the consul tests 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
2663ef9d6a Refactored the signature of NewConsulService 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
e5f0d7e531 Adding logic for checking health of client 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
d32757b03e Added a check command 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
2c1611c8cc Added parsing logic for config block 2016-05-11 15:22:58 -07:00
Sean Chittenden
1e8d6eb283 Fix unit tests for TestPrettyPrintBare 2016-05-11 15:20:57 -07:00
Sean Chittenden
81f9d42c15 Merge pull request #1165 from hashicorp/f-append-newline
Append a newline when pretty-printing the response
2016-05-11 13:10:37 -07:00
Sean Chittenden
7a2bd507e7 Merge pull request #1160 from hashicorp/f-freebsd
Stubbed out raw_exec support for *NIX platforms

OOB LGTM: @diptanu
2016-05-11 12:54:27 -07:00
Diptanu Choudhury
a84ace5136 Merge pull request #1164 from hashicorp/fix-unmount
Removing directories only if we could successfully unmount them
2016-05-11 12:51:34 -07:00
Alex Dadgar
52f1fbdaac changelog 2016-05-11 11:12:18 -07:00
Alex Dadgar
a71053b4ab contextual diff 2016-05-11 11:11:26 -07:00
Sean Chittenden
534156d9eb Update tests for pretty printing that includes a newline.
Add a test verifying that pretty printing can be disabled, too.
2016-05-11 10:55:01 -07:00
Alex Dadgar
fefc55906e Job diff using generic structures 2016-05-10 22:23:34 -07:00
Sean Chittenden
08aa82b483 Append a newline when pretty-printing the response
Instead of typing `curl http://foo/v1/nodes?pretty; echo` to inject a
newline into your terminal, now pretty will provide its own newline.
2016-05-10 15:46:20 -07:00
Diptanu Choudhury
dc38906809 Removing directories only if we could successfully unmount them 2016-05-10 14:57:16 -07:00
Alex Dadgar
6247fa29c9 Merge pull request #1153 from hashicorp/b-task-resource-update
Check if network asks have changed when checking task updates
2016-05-09 18:46:43 -07:00
Alex Dadgar
0f71d7a4f7 Merge pull request #1161 from hashicorp/d-json-corrections
Json clean up + fixed variable names
2016-05-09 17:04:05 -07:00
Alex Dadgar
cbadf03208 Merge pull request #1162 from hashicorp/d-telemetry
Describe key metrics
2016-05-09 17:03:47 -07:00
Alex Dadgar
fb1ac29d27 describe interval 2016-05-09 17:03:04 -07:00
Alex Dadgar
ca60ce0b61 Json clean up + fixed variable names 2016-05-09 16:23:25 -07:00
Alex Dadgar
a28213b48b Document key metrics 2016-05-09 16:04:41 -07:00
Sean Chittenden
a91f41ce14 Establish a floor of one core for the number of cores.
In most cases the upstream library [shirou/gopsutil](https://github.com/shirou/gopsutil)
needs to be fixed.
2016-05-09 12:22:40 -07:00
Sean Chittenden
fd9bcabaa8 Emit various debugging information with the results of the fingerprinter 2016-05-09 12:21:51 -07:00
Sean Chittenden
32ade79a62 cgroups are a decidedly Linux-only feature. Build and test as such. 2016-05-09 11:56:35 -07:00
Sean Chittenden
be7cdf97d1 Decrease the log-level from WARN to DEBUG when fingerprinting GCE
This brings the logging here inline with the remaining fingerprinting code
2016-05-09 11:56:35 -07:00
Sean Chittenden
1d108a77d6 Rename cgroup_universal.go to cgroup_default.go
Universal implies it is applicable to Linux, whereas default implies
the fallthrough for the non-Linux build targets.
2016-05-09 11:56:35 -07:00
Sean Chittenden
e5272cea2b Move network detection code to Linux-specific build
Non-Linux build targets get the current default of 0.  This will allow
platform specific fingerprinting for network capabilities.
2016-05-09 11:56:35 -07:00
Sean Chittenden
0fdb16af99 Stub out FreeBSD support for Nomad
Compiles, but is not functional (yet).
2016-05-09 11:56:35 -07:00
Sean Chittenden
9d4e37af81 Merge pull request #1156 from hashicorp/f-x-sys-unix
Use x/sys/unix vs syscall package where appropriate
2016-05-09 11:56:00 -07:00
Sean Chittenden
b84bf392df Rename the windows exec driver file to be the default exec driver.
No functional difference in practice, but results in a more clean build.
2016-05-09 11:32:05 -07:00
Diptanu Choudhury
902550ca7c Merge pull request #1159 from capone212/master
Enable consul script checks for raw_exec driver
2016-05-09 08:28:03 -07:00
capone212
e616e5446d Added java 2016-05-09 17:27:01 +03:00
capone212
23c5b584a4 Reverted blank line 2016-05-09 17:23:38 +03:00
capone212
2a4bea364c Fixed CR defect 2016-05-09 17:22:01 +03:00
capone212
f6460ebdd4 Merge https://github.com/capone212/nomad 2016-05-09 13:36:12 +03:00
capone212
a363479fb0 Added consul script check support for raw_exec driver 2016-05-09 13:35:19 +03:00