Mahmood Ali
b51ecacd23
remove lxc references
2019-01-08 09:28:20 -05:00
Mahmood Ali
34ee0ba6b9
Remove some dead code
2019-01-08 09:11:48 -05:00
Mahmood Ali
800a3522e3
drivers: re-export ResourceUsage structs
...
Re-export the ResourceUsage structs in drivers package to avoid drivers
directly depending on the internal client/structs package directly.
I attempted moving the structs to drivers, but that caused some import
cycles that was a bit hard to disentagle. Alternatively, I added an
alias here that's sufficient for our purposes of avoiding external
drivers depend on internal packages, while allowing us to restructure
packages in future without breaking source compatibility.
2019-01-08 09:11:47 -05:00
Mahmood Ali
c0162fab35
move cstructs.DeviceNetwork to drivers pkg
2019-01-08 09:11:47 -05:00
Mahmood Ali
694e3010c2
use drivers.FSIsolation
2019-01-08 09:11:47 -05:00
Mahmood Ali
2831088fc5
remove deprecated allocrunner
2019-01-08 09:11:47 -05:00
Mahmood Ali
607e7f2dde
remove always false parameter
...
Simplify allocDir.Build() function to avoid depending on client/structs,
and remove a parameter that's always set to `false`.
The motivation here is to avoid a dependency cycle between
drivers/cstructs and alloc_dir.
2019-01-08 09:11:47 -05:00
Danielle Tomlinson
bcf40e21ed
Merge pull request #5161 from hashicorp/dani/update-net-ctx
...
deps: Update x/net/context
2019-01-08 15:09:40 +01:00
Danielle Tomlinson
d9a220fc85
Merge pull request #5042 from hashicorp/dani/f-shutdowns
...
plugins: Shutdown internal plugins
2019-01-08 15:09:25 +01:00
Danielle Tomlinson
476e44b4e4
drivers: Implement InternalPluginDriver interface
...
This implements the InternalPluginDriver interface in each driver, and
calls the cancellation fn for their respective eventers.
This fixes a per task goroutine leak during test suite execution.
2019-01-08 13:49:31 +01:00
Danielle Tomlinson
994057abf4
drivers: Add internal interface for Shutdown
...
This allows us to correctly terminate internal state during runs of the
nomad test suite, e.g closing eventer contexts correctly.
2019-01-08 13:48:49 +01:00
Danielle Tomlinson
fb61a1f6a9
deps: Update x/net/context
...
This allows std context to be used in place of an x/net/context and
unblocks updating to the latest version of go-plugin.
2019-01-08 13:45:10 +01:00
Alex Dadgar
428cec9682
Merge pull request #5152 from hashicorp/f-recover
...
Task runner recovers from external plugin exiting
2019-01-07 15:27:33 -08:00
Alex Dadgar
6bb99c93d0
Review comments
2019-01-07 14:50:28 -08:00
Preetha
e72aad7496
Merge pull request #5023 from nrvale0/tf-autojoin-fix
...
fix for user-specified auto-join tags
2019-01-07 16:49:48 -06:00
Alex Dadgar
5424d3b540
vet
2019-01-07 14:49:41 -08:00
Alex Dadgar
19e67a0916
Test recovery
2019-01-07 14:49:41 -08:00
Alex Dadgar
144866a87b
Mock driver has recovery, stats
2019-01-07 14:49:40 -08:00
Alex Dadgar
4e7da3ea4e
regenerate protos
2019-01-07 14:49:40 -08:00
Alex Dadgar
b300306c4a
comments
2019-01-07 14:49:40 -08:00
Alex Dadgar
3257eb6d86
Fix hooks
2019-01-07 14:49:40 -08:00
Alex Dadgar
437f03d877
recover
2019-01-07 14:49:40 -08:00
Alex Dadgar
d45d6c6251
add docker logger to separate main
2019-01-07 14:49:40 -08:00
Alex Dadgar
bdf4e1f89a
Don't log event error on driver shutdown
2019-01-07 14:49:40 -08:00
Alex Dadgar
06a52b57e6
rkt fingerprint logs once
2019-01-07 14:49:40 -08:00
Alex Dadgar
ffadab1b20
remove nil logger
2019-01-07 14:48:01 -08:00
Michael Schurter
3e7fa0072a
Merge pull request #5043 from hashicorp/b-taskenv-conflicts
...
taskenv: have maps take precedence over primitives
2019-01-07 12:34:48 -08:00
Danielle Tomlinson
8131eceb12
Merge pull request #5148 from hashicorp/dani/f-e2e-consul
...
e2e: Add consultemplate test
2019-01-07 17:54:20 +01:00
Danielle Tomlinson
646e077d32
e2e: Add consultemplate test
...
This adds a basic test for consul template, that verifies the behaviour
of consul-template with task blocking and restarting of tasks
2019-01-07 17:53:55 +01:00
Preetha
b744fb1b7f
Merge pull request #5156 from hashicorp/f-standard-driver-health-messages
...
Standardize driver health description messages for all drivers
2019-01-07 09:49:28 -06:00
Preetha Appan
26594aa31e
Standardize driver health description messages for all drivers
2019-01-06 22:06:38 -06:00
Preetha
511f680066
Merge pull request #5155 from hashicorp/b-remove-rkt-logging
...
remove unnecessary logging in rkt driver fingerprint method
2019-01-06 21:37:58 -06:00
Preetha Appan
b8cbcdb371
remove unnecessary logging in rkt driver fingerprint method
2019-01-06 20:59:20 -06:00
Danielle Tomlinson
ad51e6cb24
Merge pull request #5149 from hashicorp/dani/e2e-friendly
...
e2e: Output setup instructions after terraform
2019-01-04 22:14:03 +01:00
Mahmood Ali
53aa449aa7
Merge pull request #5150 from hashicorp/b-task-received-event
...
taskrunner: emit TaskReceived event
2019-01-04 14:58:39 -05:00
Mahmood Ali
17b7490891
taskrunner: emit TaskReceived event
...
Preserve pre-0.9, where task runner emits `Received: Task received by
client` event on task runner creation.
2019-01-04 14:32:29 -05:00
Chris Baker
687e1cf0fe
Merge pull request #5146 from hashicorp/b-1173-log-spam
...
updated to latest hashicorp/raft and hashicorp/memberlist to pull
2019-01-04 12:55:18 -05:00
Chris Baker
8c10992e78
Merge branch 'master' of github.com:hashicorp/nomad into b-1173-log-spam
2019-01-04 16:56:34 +00:00
Chris Baker
a9666e59b3
updated serf along with raft
2019-01-04 16:56:26 +00:00
Danielle Tomlinson
b51021ac28
e2e: Output setup instructions after terraform
...
This adds a message that provides environment setup instructions for
running e2e tests after running terraform apply.
This allows copy/pasting exports, rather than manually constructing
them.
2019-01-04 16:55:14 +01:00
Mahmood Ali
5805c64a9f
driver/exec: use dedicated /dev mount ( #5147 )
...
Use a dedicated /dev mount so we can inject more devices if necessary,
and avoid allowing a container to contaminate host /dev.
Follow up to https://github.com/hashicorp/nomad/pull/5143 - and fixes master.
2019-01-04 10:36:05 -05:00
Chris Baker
5c007301b9
Merge branch 'master' of github.com:hashicorp/nomad into b-1173-log-spam
2019-01-04 14:59:26 +00:00
Chris Baker
ad320b803a
updated to latest hashicorp/raft and hashicorp/memberlist to pull
...
upstream fixes for accept-loop error handling
2019-01-04 14:01:36 +00:00
Mahmood Ali
4402b6635f
Merge pull request #5143 from hashicorp/b-exec-regressions
...
Restore some `exec` behavior
2019-01-04 08:58:40 -05:00
Mahmood Ali
bce7c9372d
goimport file
2019-01-04 08:53:50 -05:00
Preetha Appan
21810d0edd
Added waiting on client node ready state before running e2e tests
2019-01-03 16:16:20 -06:00
Preetha
9a514aabd3
Update README.md
2019-01-03 16:15:59 -06:00
Preetha
38929049f4
Update README.md
2019-01-03 15:31:19 -06:00
Michael Schurter
d2c81c375c
Merge pull request #5038 from hashicorp/b-drivermanager-tests
...
WIP: fix failing tests caused by async driver manager
2019-01-03 12:32:18 -08:00
Preetha Appan
36b5435ed3
Increase alloc wait timeout in e2e test
2019-01-03 14:02:02 -06:00