Preetha Appan
35f6db47b8
fix indentation
2019-02-14 12:49:26 -06:00
Preetha Appan
f443c7d321
Fix whitespace
2019-02-14 12:49:26 -06:00
Chris Baker
ab02f4588e
Update job_init.go
...
minor
2019-02-14 12:49:26 -06:00
Preetha Appan
d405881e34
expand job init example with spread and affinity
2019-02-14 12:49:26 -06:00
Michael Schurter
b5d9d6a32d
Merge pull request #5319 from hashicorp/test-port-08
...
Fix Consul Service PreKill Hook
2019-02-14 10:18:41 -08:00
Danielle Tomlinson
be431cb83d
Merge pull request #5326 from hashicorp/dani/json-submission
...
api: Fix compatibility with pre 0.9 API jobs
2019-02-14 18:56:13 +01:00
Mahmood Ali
1430f94b2a
Update drivers/docker/config_test.go
...
Co-Authored-By: dantoml <dani@tomlinson.io>
2019-02-14 18:55:10 +01:00
Danielle Tomlinson
42b0edffd2
Merge pull request #5327 from hashicorp/dani/windows-term
...
drivers/docker: SIGTERM to stop containers
2019-02-14 18:05:28 +01:00
Danielle Tomlinson
3f696be06b
Add regression test for parsing null mounts
2019-02-14 18:03:35 +01:00
Mahmood Ali
87be233aca
test: improve readability of duration
...
Co-Authored-By: schmichael <michael.schurter@gmail.com>
2019-02-14 08:12:06 -08:00
Mahmood Ali
16d3414842
test: improve failure message
...
Co-Authored-By: schmichael <michael.schurter@gmail.com>
2019-02-14 08:11:37 -08:00
Danielle Tomlinson
a3a1491958
drivers/docker: SIGTERM to stop containers
...
Windows Docker daemon does not support SIGINT, SIGTERM is the semantic
equivalent that allows for graceful shutdown before being followed up by
a SIGKILL.
2019-02-14 15:38:54 +00:00
Danielle Tomlinson
b59ed9d6c9
vendor: Update to latest hcl2
...
* Includes fixes for handling null blocks https://github.com/hashicorp/hcl2/pull/87
* Updates go-cty as a newer version is required by hcl2
2019-02-14 13:34:46 +01:00
Michael Schurter
4814f0fb0b
tests: port TestTaskRunner_Download_List from 0.8
2019-02-12 15:48:04 -08:00
Michael Schurter
a152e3ef17
consul: fix task deregistration hook
...
Broke ShutdownDelay but the test was timing dependent so it just
appeared flaky. Made the test slower so that it should never incorrectly
pass.
2019-02-12 15:36:02 -08:00
Michael Schurter
4ad879e75e
tests: port TaskRunner_DeriveToken tests from 0.8
2019-02-12 15:36:02 -08:00
Michael Schurter
6743ed9fdc
tests: port TestTaskRunner_BlockForVault from 0.8
...
Also fix race conditions in the mock vault client.
2019-02-12 13:46:09 -08:00
Mahmood Ali
f7102cd01d
tests: add hcl task driver config parsing tests ( #5314 )
...
* drivers: add config parsing tests
Add basic tests for parsing and encoding task config.
* drivers/docker: fix some config declarations
* refactor and document config parse helpers
2019-02-12 14:46:37 -05:00
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