Mahmood Ali
2af30fb441
tests: expect Docker on AppVeyor
...
Prepare to run docker on AppVeyor Windows environment
2019-02-20 07:41:47 -05:00
Mahmood Ali
eb8b19ec82
test: improve readability of duration
...
Co-Authored-By: schmichael <michael.schurter@gmail.com >
2019-02-14 08:12:06 -08:00
Mahmood Ali
a96cc97389
test: improve failure message
...
Co-Authored-By: schmichael <michael.schurter@gmail.com >
2019-02-14 08:11:37 -08:00
Michael Schurter
fa9537f6e9
tests: port TestTaskRunner_Download_List from 0.8
2019-02-12 15:48:04 -08:00
Michael Schurter
cfbe7520e8
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
f2506e4d29
tests: port TaskRunner_DeriveToken tests from 0.8
2019-02-12 15:36:02 -08:00
Michael Schurter
b41308f16a
tests: port TestTaskRunner_BlockForVault from 0.8
...
Also fix race conditions in the mock vault client.
2019-02-12 13:46:09 -08:00
Michael Schurter
1d17fbc681
simplify hcl2 parsing helper
...
No need to pass in the entire eval context
2019-02-04 11:07:57 -08:00
Michael Schurter
645c8c41ea
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
Michael Schurter
ff63b1aefe
Remove 0.9.0-beta2 generated files
2019-02-01 08:28:44 -08:00
Alex Dadgar
29a5d242e6
Generate files for 0.9.0-beta2
2019-01-30 13:31:50 -08:00
Alex Dadgar
0de7939fb1
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
Alex Dadgar
7d7b922cf0
remove generated structs
2019-01-30 12:38:34 -08:00
Nick Ethier
aa713a4d9f
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
ecec3d38de
Nomad 0.9.0-beta1 generated code
2019-01-30 10:49:44 -08:00
Alex Dadgar
fe6d7df6c4
Fix usage of fsi variable
2019-01-29 14:07:55 -08:00
Alex Dadgar
97e3603043
Always populate task dir environment variables
...
Fixes an issue where if a task was restarted after restating the client,
the task dir environment variables would not be populated. This PR fixes
this for both upgrades from 0.8.X and for normal 0.9 restarts.
2019-01-29 13:17:10 -08:00
Nick Ethier
14c5a1c1f1
Merge pull request #5248 from hashicorp/b-rawexec-leak
...
Fix leaked executor in raw_exec
2019-01-28 21:18:31 -05:00
Alex Dadgar
22a13de279
Fix env templates having interpolated destinations
...
Fixes an issue where env templates that had interpolated destinations
would not work.
Fixes https://github.com/hashicorp/nomad/issues/5250
2019-01-28 10:28:53 -08:00
Nick Ethier
1400012cbc
drivermanager: don't store nil reattach configs
2019-01-25 23:07:04 -05:00
Alex Dadgar
d28bf3231e
Fix double restart counting for templates
...
This PR fixes an issue where template restarts would count twice since
it was emitting a restarting event.
2019-01-25 15:38:13 -08:00
Nick Ethier
bed9efae44
Merge branch 'master' into f-driver-upgradepath-test
...
* master: (23 commits)
tests: avoid assertion in goroutine
spell check
ci: run checkscripts
tests: deflake TestRktDriver_StartWaitRecoverWaitStop
drivers/rkt: Remove unused github.com/rkt/rkt
drivers/rkt: allow development on non-linux
cli: Hide `nomad docker_logger` from help output
api: test api and structs are in sync
goimports until make check is happy
nil check node resources to prevent panic
tr: use context in as select statement
move pluginutils -> helper/pluginutils
vet
goimports
gofmt
Split hclspec
move hclutils
Driver tests do not use hcl2/hcl, hclspec, or hclutils
move reattach config
loader and singleton
...
2019-01-23 21:01:24 -05:00
Nick Ethier
a9060f44eb
drivers: add docker upgrade path and e2e test
2019-01-23 14:44:42 -05:00
Nick Ethier
410bb28420
Merge pull request #5227 from hashicorp/b-client-highcpu-usage
...
Fix bug related to high cpu usage
2019-01-23 14:27:51 -05:00
Michael Schurter
87f8dff1ef
Merge pull request #5196 from hashicorp/f-plugin-utils
...
Make plugins/shared external and make pluginutls/
2019-01-23 06:59:32 -08:00
Preetha
0723d2c306
Merge pull request #5225 from hashicorp/b-notaskevent-terminalallocs
...
Don't emit task events after alloc is in a terminal DesiredState
2019-01-23 08:54:10 -06:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Nick Ethier
f51b7f9942
tr: use context in as select statement
2019-01-22 20:11:39 -05:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00
Alex Dadgar
95297c608c
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
fe2fa21a7d
gofmt
2019-01-22 15:43:34 -08:00
Alex Dadgar
72f8851254
Split hclspec
2019-01-22 15:43:34 -08:00
Alex Dadgar
8be7057177
move hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
e46d67a889
Driver tests do not use hcl2/hcl, hclspec, or hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
2d23f4a038
move reattach config
2019-01-22 15:11:58 -08:00
Alex Dadgar
c19cd2e5cf
loader and singleton
2019-01-22 15:11:57 -08:00
Alex Dadgar
b9f36134dc
move catalog + grpcutils
2019-01-22 15:11:57 -08:00
Preetha Appan
26cb3cd12d
Use DesiredState to determine whether to stop sending task events
2019-01-22 16:43:32 -06:00
Preetha Appan
678c6e834b
dont emit events for terminal allocs
2019-01-22 16:26:33 -06:00
Michael Schurter
7c45733ba4
Merge pull request #5211 from hashicorp/test-porting-08
...
Port some 0.8 TaskRunner tests
2019-01-22 14:05:53 -08:00
Michael Schurter
06119e2505
test: port TestTaskRunner_CheckWatcher_Restart
...
Added ability to adjust the number of events the TaskRunner keeps as
there's no way to observe all events otherwise.
Task events differ slightly from 0.8 because 0.9 emits Terminated every
time a task exits instead of only when it exits on its own (not due to
restart or kill).
0.9 does not emit Killing/Killed for restarts like 0.8 which seems fine
as `Restart Signaled/Terminated/Restarting` is more descriptive.
Original v0.8 events emitted:
```
expected := []string{
"Received",
"Task Setup",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Restarting",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Restarting",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Not Restarting",
}
```
2019-01-22 09:46:46 -08:00
Michael Schurter
81334cd3a1
test: port RestartTask from 0.8
2019-01-22 08:08:08 -08:00
Michael Schurter
418d360d19
test: port SignalFailure test from 0.8
...
Also fix signal error handling in mock_driver.
2019-01-22 08:08:08 -08:00
Preetha Appan
a1cc48f78d
Rename TaskKillRequest/Response to TaskPreKillRequest/Response
2019-01-22 09:54:02 -06:00
Preetha Appan
6f3e4e72b9
Fix log comments
2019-01-22 09:45:58 -06:00
Preetha Appan
c3f044291d
Rename TaskKillHook to TaskPreKillHook to more closely match usage
...
Also added/fixed comments
2019-01-22 09:41:56 -06:00
Michael Schurter
77c01c6283
Fix comment
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2019-01-22 09:41:21 -06:00
Preetha Appan
bf9a2168e7
Rename TaskKillHook to TaskPreKillHook to more closely match usage
...
Also added/fixed comments
2019-01-22 09:41:21 -06:00
Mahmood Ali
06ca7860e2
Merge pull request #5216 from hashicorp/b-fix-tests-20180118
...
tests: deflake client TestFS_Logs_TaskPending test
2019-01-21 09:54:15 -05:00
Mahmood Ali
92033f1a81
tests: deflake client TestFS_Logs_TaskPending test
2019-01-18 21:26:48 -05:00