Commit Graph

17296 Commits

Author SHA1 Message Date
Jasmine Dahilig
da3eb69a2f fix linting errors 2020-03-21 17:52:53 -04:00
Jasmine Dahilig
ee92c98d4e add task hook coordinator many init tasks test case 2020-03-21 17:52:53 -04:00
Jasmine Dahilig
88d3e232a2 refactor task hook coordinator helper method and tests 2020-03-21 17:52:53 -04:00
Jasmine Dahilig
0031b6777f clean up restore test 2020-03-21 17:52:52 -04:00
Jasmine Dahilig
aced15ea27 partial test for restore functionality 2020-03-21 17:52:52 -04:00
Jasmine Dahilig
48ce093dd5 account for client restarts in task lifecycle hooks 2020-03-21 17:52:51 -04:00
Jasmine Dahilig
5bf43b50d4 fix bug in lifecycle scheduler test mocks 2020-03-21 17:52:51 -04:00
Jasmine Dahilig
c6cd7b523b clean up restart conditions and restart tests for task lifecycle 2020-03-21 17:52:50 -04:00
Jasmine Dahilig
4be7d056ac put lifecycle nil and empty checks in api Canonicalize 2020-03-21 17:52:50 -04:00
Jasmine Dahilig
92ef35b41f remove api dependency on structs package, copy lifecycle defaults to api package 2020-03-21 17:52:49 -04:00
Jasmine Dahilig
c0ff0bef5e remove logging debug line from cli 2020-03-21 17:52:49 -04:00
Jasmine Dahilig
15f8a14242 add appropriate lifecycle deadline default of 120s 2020-03-21 17:52:48 -04:00
Jasmine Dahilig
0dea3a39b0 add test cases for scheduler alloc placement with lifecycle resources 2020-03-21 17:52:47 -04:00
Jasmine Dahilig
d3f10a3d68 add lifecycle job mock 2020-03-21 17:52:47 -04:00
Jasmine Dahilig
ae38e5284b add allocfit test for lifecycles 2020-03-21 17:52:46 -04:00
Jasmine Dahilig
fa19007dfb update task hook coordinator tests 2020-03-21 17:52:46 -04:00
Mahmood Ali
7897104b72 update scheduler to account for hooks 2020-03-21 17:52:45 -04:00
Mahmood Ali
0742699cd5 minor improvement 2020-03-21 17:52:44 -04:00
Jasmine Dahilig
f76dd2584a add lifecycle info to alloc status short 2020-03-21 17:52:42 -04:00
Jasmine Dahilig
c2ab4c9c90 add test for lifecycle coordinator 2020-03-21 17:52:42 -04:00
Jasmine Dahilig
ae2a4bc796 add canonicalize in the right place 2020-03-21 17:52:41 -04:00
Jasmine Dahilig
262d204096 incorporate lifecycle into restart tracker 2020-03-21 17:52:40 -04:00
Jasmine Dahilig
aa7a7bd704 add canonicalization 2020-03-21 17:52:39 -04:00
Jasmine Dahilig
7772d7752c add validation tests and more validation 2020-03-21 17:52:39 -04:00
Mahmood Ali
5377b4cb58 Add a coordinator for alloc runners 2020-03-21 17:52:38 -04:00
Mahmood Ali
08d1b4e18a it's running now 2020-03-21 17:52:37 -04:00
Jasmine Dahilig
8fac2b5094 change TaskLifecycle RunLevel to Hook and add Deadline time duration 2020-03-21 17:52:37 -04:00
Mahmood Ali
98cc65b68c update structs with lifecycle 2020-03-21 17:52:36 -04:00
Mahmood Ali
a556c0d923 add lifecycle to api and parser 2020-03-21 17:52:36 -04:00
Mahmood Ali
729743a136 Merge pull request #7408 from greut/vault-sdk
vendor: vault api and sdk
2020-03-21 14:52:49 -04:00
Yoan Blanc
ac9b99e956 fixup! vendor: add golang.org/x/crypto/ed25519
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 18:03:09 +01:00
Yoan Blanc
80e7f1fc29 vendor: add golang.org/x/crypto/ed25519
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 18:00:41 +01:00
Yoan Blanc
77cf2f0573 vendor: vault api and sdk
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 17:57:48 +01:00
Mahmood Ali
33af299b53 Merge pull request #7407 from greut/runc-v1.0.0-rc7
Runc v1.0.0 rc7
2020-03-21 11:08:31 -04:00
Yoan Blanc
ef36f20386 vendor: opencontainrs/runc v1.0.0-rc7
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 15:43:02 +01:00
Yoan Blanc
95f3ab8388 remove all opencontainers/runc
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 15:33:30 +01:00
Mahmood Ali
88bab87afb Merge pull request #7403 from hashicorp/tests-deflake-TestRPC_Limits_Streaming
Deflake TestRPC_Limits_Streaming test
2020-03-20 18:57:48 -04:00
Mahmood Ali
ff7c747633 Deflake TestRPC_Limits_Streaming test
The test starts enough connections to hit the limit, then closes the
connection and immediately starts one expecting the new one to succeed.

We must wait until the server side recognizes the connection
closing and free up a limits slot.  The current test attempts to achieve
that by waiting to get an error on conn.Read, however, this error is
returned from local client without waiting for server update.

As such, I change the logic so it retries on connection rejection but
force the first non-EOF failure to be a deadline error.
2020-03-20 17:21:43 -04:00
Mahmood Ali
bf55da4e1b Merge pull request #7402 from hashicorp/km.docker-env-debug
update website docker job to use proper git url
2020-03-20 15:53:40 -04:00
Kyle MacDonald
31ea0853c3 update website docker job to use proper git url 2020-03-20 15:43:36 -04:00
Mahmood Ali
2949c441fb Merge pull request #7391 from greut/bump-containerd-console
vendor: update containerd/console
2020-03-20 07:47:01 -04:00
Yoan Blanc
2734e9a0f2 vendor: update containerd/console
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-20 08:27:10 +01:00
Michael Schurter
d496f7b030 Merge pull request #7254 from jboero/patch-1
Completed a ppc64le build for testing.
2020-03-19 11:07:20 -07:00
Mahmood Ali
ffbc3e9f98 Merge pull request #7385 from greut/direct-vendors
vendors: avoid vendors from docker's vendors
2020-03-19 11:53:22 -04:00
Yoan Blanc
8711bf9122 vendors: avoir vendors from docker's vendors
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-19 14:31:58 +01:00
James Rasell
6b7b741fab Merge pull request #7379 from hashicorp/b-fix-agent-cmd--dev-connect-help
cli: fix indentation issue with -dev-connect agent help output.
2020-03-19 08:34:45 +01:00
Mahmood Ali
10eb9556f4 Merge pull request #7369 from DerekStrickland/ambiguous-use-of-filter
clarify log output
2020-03-18 14:44:17 -04:00
Drew Bailey
be39ab37ba Merge pull request #7269 from hashicorp/checklist-jobspec-update
add note to check for job diff
2020-03-18 11:18:39 -04:00
James Rasell
45fc9270a6 Merge pull request #7313 from hashicorp/docs-gh-7294
docs: explicitly detail IAM instance profile S3 artifact auth.
2020-03-18 15:43:41 +01:00
Mahmood Ali
3e95e3571b Merge pull request #7370 from hashicorp/b-leader-forwarding-client-detection
server: node connections must not be forwarded
2020-03-18 08:29:48 -04:00