Commit graph

14315 commits

Author SHA1 Message Date
Mahmood Ali aec9120994
drivers/java: restore 0.8.7 java version detection (#5317)
Restore 0.8.x behavior where java driver is marked as detected when
`java -version` exits with 0 but returns unexpected output.

Furthermore, we restore behavior when `java -version` where we parse the
first three lines of `java -version` but ignore rest.

If `java -version` returns less than 3 lines, Nomad 0.8.7 would panic.
In this implementation, we'd still mark java as detected but returns
empty version.

The 0.8.7 logic for detecting java version is found in
https://github.com/hashicorp/nomad/blob/v0.8.7/client/driver/java.go#L132-L172
.

I punt on revamping how we can be more resilient to java -version
syntax, and aimed for preserving existing behavior instead.
2019-02-12 13:41:26 -05:00
Preetha 412127e13b
Merge pull request #5287 from hashicorp/docs-fix-affinity-examples
docs: fixed some affinity examples
2019-02-12 09:13:27 -06:00
Michael Schurter 3b84e08fa4
Merge pull request #5297 from hashicorp/b-docker-logging
Docker: Fix logging config parsing
2019-02-11 06:57:52 -08:00
Gertjan Roggemans 94ca78354b docker: Fix volume driver_config options spec (#5309)
Fixes #5308
2019-02-11 09:18:44 -05:00
Danielle Tomlinson 9411daf16f
Merge pull request #5307 from mnachury/fix/exe_detection_windows
Fix executable check on windows
2019-02-08 17:46:55 -05:00
mnachury aef18aa4ca Fix executable check on windows 2019-02-08 16:05:14 -05:00
Nick Ethier e99877fe33
Merge pull request #5306 from nanoz/patch-1
Issue #4649: Remove the systemd process and threads limit
2019-02-08 10:43:49 -05:00
Arno B 341f83e7f5
Remove the systemd process and threads limit
systemd limits the number of process and threads you can create within the cgroup it creates for a given service. This is especially limiting if you have a high number of keys Nomad watches from Consul.

Fixes #4649
2019-02-08 16:22:52 +01:00
Cathy Chang f7b3fc95f6
remove apostrophe in "job's" 2019-02-06 13:54:59 -08:00
Chris Baker a4df11c4c8 restored previous example (it was correct) 2019-02-06 19:13:40 +00:00
Michael Schurter e1e4b10884 docker: fix logging config parsing
Fixes
https://groups.google.com/d/topic/nomad-tool/B3Uo6Kns2BI/discussion
2019-02-04 11:07:57 -08:00
Michael Schurter 9bf4b38ab3 plugins: update hclutils test
The test used old local copies of Docker structs and appeared to be
testing an outdated approach to task config decoding.

Updated to use real Docker structs so we can do end-to-end unit testing
of real Docker task configs.
2019-02-04 11:07:57 -08:00
Michael Schurter 6c0cc65b2e simplify hcl2 parsing helper
No need to pass in the entire eval context
2019-02-04 11:07:57 -08:00
Michael Schurter e3e1797850 consul: squelch noisy useless logs
Only log when syncing actually did something.
2019-02-04 11:07:57 -08:00
Michael Schurter fec2752fb2 client: log when allocs have been processed
Will hopefully help us catch deadlocks/livelocks/slowdowns in the
add/remove allocs pipeline which should be fast.
2019-02-04 11:07:57 -08:00
Danielle Tomlinson eb488bcf06
Merge pull request #5295 from Quasilyte/patch-1
nomad/command: fix strings.Contains args order
2019-02-02 16:08:32 +01:00
Iskander (Alex) Sharipov 7b1a4eaef9
nomad/command: fix strings.Contains args order
Swapped call args order to meet the expected behavior.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-02 09:43:24 +03:00
Omar Khawaja b18006fe3f
add some cross-linking for easier reference (#5292) 2019-02-01 13:12:18 -05:00
Michael Lange a8625ac6b6
Merge pull request #5278 from hashicorp/f-ui-absolute-timestamps
UI: Always show an absolute timestamp tooltip when showing relative dates
2019-02-01 09:51:01 -08:00
Michael Schurter a38018975b
Merge pull request #5293 from hashicorp/b-dupe-resched
cli: do not duplicate reschedule headers per group
2019-02-01 09:45:44 -08:00
Michael Schurter cad3f1022a cli: do not duplicate reschedule headers per group
Fixes #5291
2019-02-01 09:28:36 -08:00
Michael Lange 91d8baa64e Update tests that check time and date formatting 2019-02-01 09:19:28 -08:00
Michael Lange dfd3b097d1 Apply new date and timestamp helpers e'rywhere 2019-02-01 09:19:28 -08:00
Michael Lange 50bf9d392a New helpers to standardize date and timestamp formats 2019-02-01 09:19:28 -08:00
Michael Schurter 2db91425e3 Remove 0.9.0-beta2 generated files 2019-02-01 08:28:44 -08:00
Danielle Tomlinson 4167db11b6
Merge pull request #5290 from mre/patch-1
Fix typo in "discovery"
2019-02-01 14:36:15 +01:00
Matthias Endler 22cca2bbd6
Fix typo in "discovery" 2019-02-01 14:24:02 +01:00
Chris Baker c8cff1106b fixed typo in vault integration documentation 2019-01-31 16:00:54 +00:00
Chris Baker 2e74b1aa98 fixed some affinity examples 2019-01-31 15:15:00 +00:00
Michael Schurter 873c929b93
Merge pull request #5285 from hashicorp/external-plugins-typo
fix typo
2019-01-30 14:50:01 -08:00
Omar Khawaja fe6a95ef63 fix typo 2019-01-30 17:48:08 -05:00
Mahmood Ali 62b48264e9
website: update lxc references to 0.1.0-rc2 (#5283) 2019-01-30 17:05:44 -05:00
Michael Schurter 50c9c9a663
Merge pull request #5284 from hashicorp/website-0.9
Bump to Nomad 0.8.7 and mention 0.9 beta
2019-01-30 13:53:00 -08:00
Michael Schurter 5ac0511ada Bump to Nomad 0.8.7 and mention 0.9 beta 2019-01-30 13:50:44 -08:00
Alex Dadgar 81264b10ea
Release v0.9.0-beta2 2019-01-30 13:38:23 -08:00
Alex Dadgar 84d0afccae Generate files for 0.9.0-beta2 2019-01-30 13:31:50 -08:00
Alex Dadgar 449e582ffc
Merge pull request #5281 from hashicorp/f-affinity-weight-int
Change types of weights on spread/affinity
2019-01-30 13:25:56 -08:00
Nick Ethier cb760275ca
Merge pull request #5282 from hashicorp/website-resources
website/resources: add recent videos/blogs to resources
2019-01-30 16:01:43 -05:00
Preetha Appan 8e621a167b
fix tests 2019-01-30 14:46:24 -06:00
Nick Ethier ea9943dea6
website/resources: add recent videos/blogs to resources 2019-01-30 15:44:39 -05:00
Alex Dadgar d2e5ede119 remove generated structs 2019-01-30 12:38:34 -08:00
Nick Ethier 134ad3951b
Merge pull request #5279 from hashicorp/b-fix-external-driver-id-reference
client: fix bug during 0.8 state up grade for external drivers
2019-01-30 15:26:40 -05:00
Alex Dadgar b2af34141e
Update comment on int8ToPtr 2019-01-30 12:23:43 -08:00
Alex Dadgar 6d3bd50302
Update comment on int8ToPtr 2019-01-30 12:23:14 -08:00
Alex Dadgar 41265d4d61 Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
Nick Ethier e7ea26449e
client: fix bug during 0.8 state up grade that causes external drivers to fail 2019-01-30 14:22:29 -05:00
Alex Dadgar 728eaea216
Release v0.9.0-beta1 2019-01-30 11:08:30 -08:00
Alex Dadgar b2a2d793df version bump 2019-01-30 11:00:09 -08:00
Alex Dadgar 1bff98612d remove deleting generated code in clean step 2019-01-30 10:55:03 -08:00
Alex Dadgar bc804dda2e Nomad 0.9.0-beta1 generated code 2019-01-30 10:49:44 -08:00