Commit Graph

16410 Commits

Author SHA1 Message Date
Lars Lehtonen
bbefae5506 command: error handling before file close (#6681) 2019-11-13 08:18:20 -05:00
Michael Schurter
1596a62ce3 Merge pull request #6687 from hashicorp/f-override-vault-constraint
vault: allow overriding implicit vault constraint
2019-11-12 12:47:57 -08:00
Michael Schurter
a1b36c949f Merge branch 'master' into f-override-vault-constraint 2019-11-12 12:47:41 -08:00
Michael Schurter
063cf1219a vault: allow overriding implicit vault constraint
There's a bug in version parsing that breaks this constraint when using
a prerelease enterprise version of Vault (eg 1.3.0-beta1+ent). While
this does not fix the underlying bug it does provide a workaround for
future issues related to the implicit constraint. Like the implicit
Connect constraint: *all* implicit constraints should be overridable to
allow users to workaround bugs or other factors should the need arise.
2019-11-12 12:26:36 -08:00
Mahmood Ali
f7cfab3af2 backfill Mahmood's changelog items 2019-11-12 13:50:32 -05:00
Mahmood Ali
11517745d9 Merge pull request #6685 from hashicorp/b-api-separation-20191112
remove accidental project leakage in api/ package
2019-11-12 13:47:06 -05:00
Mahmood Ali
fe7696ccae tests appear as github.com/hashicorp/nomad/api.test 2019-11-12 11:33:20 -05:00
Mahmood Ali
764d0c2096 Merge pull request #6680 from hashicorp/b-gh-6570-explicit_max_ttl
vault: check token_explicit_max_ttl as well
2019-11-12 16:03:06 +00:00
Mahmood Ali
f118def827 api: go-uuid is no longer needed 2019-11-12 11:02:33 -05:00
Mahmood Ali
7f027a68ea api: avoid depending on helper internal package 2019-11-12 11:02:33 -05:00
Mahmood Ali
d3b41e18a3 api: avoid depending on nomad in test files 2019-11-12 09:32:13 -05:00
Mahmood Ali
b094d915ba vault: check token_explicit_max_ttl as well
Vault 1.2.0 deprecated `explicit_max_ttl` in favor of
`token_explicit_max_ttl`.
2019-11-12 08:47:23 -05:00
Lars Lehtonen
2784f166e5 command: fix TestHelpers_LineLimitReader_TimeLimit() goroutine (#6678) 2019-11-12 08:35:11 -05:00
James Rasell
33ba439721 Set OOMScoreAdjust within systemd dist example (#6679)
closes #6672
2019-11-12 08:30:54 -05:00
Tim Gross
75c10ce0c4 changelog: windows service manager 2019-11-11 15:18:54 -05:00
Charlie Voiselle
1ec6388145 Added service wrapper code (#6220)
This is the basic code to add the Windows Service Manager hooks to Nomad.

Includes vendoring golang.org/x/sys/windows/svc and added Docs:
* guide for installing as a windows service.
* configuration for logging to file from PR #6429
2019-11-11 15:16:07 -05:00
Chris Baker
cd9f68d79e Merge pull request #6675 from hashicorp/docs-fix-bad-vault-url
there was a bad (localhost) URL in the vault docs (cherry pick of #6674)
2019-11-11 13:28:20 -06:00
Chris Baker
a8e1a21dc8 there was a bad (localhost) URL in the vault docs 2019-11-11 19:24:40 +00:00
Chris Raborg
ddfa9a8ad5 Update MonitorDrain comment to indicate channel is closed on errors (#6671)
Fixes #6645
2019-11-11 14:15:17 -05:00
Drew Bailey
3fea25bf30 Merge pull request #6666 from hashicorp/drew-changelog
update changelog
2019-11-11 12:17:07 -05:00
Charlie Voiselle
38d06d790a Merge pull request #6668 from hashicorp/docs-firecracker-lint
linter fixes
2019-11-11 10:59:01 -05:00
Charlie Voiselle
b4ce4dfdb2 linter fixes 2019-11-11 10:04:17 -05:00
Lars Lehtonen
101d0373ee command/agent: TestAgent_ServerConfig() fix dropped errors (#6659) 2019-11-11 09:46:46 -05:00
Drew Bailey
2973c7ce60 update changelog 2019-11-11 08:56:14 -05:00
Tim Gross
0ec039eddb doc: add missing fields to LXC driver documentation (#6640)
The LXC task driver documentation is missing for many of the optional
task config fields, and for the recently added `gc` field on the
driver configuration.
2019-11-11 08:51:30 -05:00
Drew Bailey
2f0c588baf Merge pull request #6658 from hashicorp/b-404-redirect
return a 404 if not found instead of redirect to ui
2019-11-11 08:50:56 -05:00
Carlos Neira
6e59e9b208 Added firecracker-task-driver to community docs (#6654)
* Added firecracker-task-driver to community docs

Signed-off-by: Carlos Neira <cneirabustos@gmail.com>
2019-11-11 08:50:27 -05:00
Drew Bailey
29585dd341 better func name, swap conditional 2019-11-11 08:35:56 -05:00
Drew Bailey
d91a5e619f update test 2019-11-08 15:49:04 -05:00
Charlie Voiselle
36d13f1a5a Merge pull request #6648 from rjspiker/rj.font-smooth
website - add -moz-osx-font-smoothing for smooth firefox osx fonts
2019-11-08 15:36:02 -05:00
Drew Bailey
39280e7a94 returns a 404 if not found instead of redirect to ui 2019-11-08 15:34:35 -05:00
Lars Lehtonen
c078bb6379 nomad: TestEvalBroker_Dequeue_Empty_Timeout() proper goroutine error handling (#6657) 2019-11-08 14:35:06 -05:00
Drew Bailey
5e117eccfe Merge pull request #6650 from hashicorp/b-better-ws-error
decompress response body from websocket error
2019-11-08 10:31:13 -05:00
Drew Bailey
43e3570629 Merge pull request #6639 from hashicorp/return-after-forward
return after request has been forwarded
2019-11-08 09:48:35 -05:00
Drew Bailey
69751a787f update changelog 2019-11-08 09:32:52 -05:00
Drew Bailey
8c891fcb94 switch to uuid helper package 2019-11-08 09:28:06 -05:00
Drew Bailey
03a4f59a05 Remove response body from websocket error
If a websocket connection errors we currently return the error with a
copy of the response body. The response body from the websocket can
often times be completely illegible so remove it from the error string.

make alloc id empty for more reliable failure

un-gzip if content encoding header present
2019-11-08 09:28:02 -05:00
Lars Lehtonen
954d197671 TestEvalBroker_Dequeue_Blocked() proper goroutine error handling (#6651)
TestEvalBroker_Dequeue_Blocked() improve test readability
2019-11-08 08:52:23 -05:00
Nick Ethier
1f6dbeaf78 Merge pull request #6653 from hashicorp/b-6646
nomad: fix bug that didn't allow for multiple connect services in same tg
2019-11-08 08:26:18 -05:00
Nick Ethier
fa4ea8a05b update CHANGELOG 2019-11-08 04:37:40 -05:00
Nick Ethier
005f75a756 nomad: fix bug that didn't allow for multiple connect services in same tg 2019-11-08 04:33:39 -05:00
Chris Baker
e715e142cf Merge pull request #6647 from hashicorp/b-6644-reschedule-on-device-changes
Consider devices in tasksUpdated
2019-11-07 16:46:20 -06:00
Chris Baker
bb964defa4 changed all tests to require from t.Fatalf 2019-11-07 22:39:47 +00:00
Lars Lehtonen
818acc1adb TestEvalBroker_PauseResumeNackTimeout() proper goroutine error handling (#6649)
TestEvalBroker_PauseResumeNackTimeout() improve test readability
2019-11-07 16:04:59 -05:00
Chris Baker
09c58d3190 Update CHANGELOG.md
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-11-07 14:11:40 -06:00
RJ Spiker
501faa5e22 website - add -moz-osx-font-smoothing for smooth firefox osx fonts 2019-11-07 12:29:21 -07:00
Chris Baker
d7d5e59089 updated CHANGELOG 2019-11-07 17:56:21 +00:00
Chris Baker
bcd1243471 the scheduler checks whether task changes require a restart, this needed
to be updated to consider devices
2019-11-07 17:51:15 +00:00
Drew Bailey
a8998f7599 Merge pull request #6573 from hashicorp/update-cci-consul
updates default consul version to 1.6.1
2019-11-07 11:01:22 -05:00
Lars Lehtonen
5d6c1bc0c9 nomad: TestEvalBroker_EnqueueAll_Dequeue_Fair() proper goroutine error handling (#6636)
nomad: TestEvalBroker_EnqueueAll_Dequeue_Fair() improve test readability
2019-11-07 10:39:29 -05:00