Nick Ethier
13b582fcfb
executor: merge plugin shim with executor package
2018-12-06 21:13:45 -05:00
Nick Ethier
0087a51a7a
executor: remove structs package
2018-12-06 20:54:14 -05:00
Nick Ethier
2d33d48980
executor: update driver references
2018-12-05 11:04:18 -05:00
Danielle Tomlinson
1c98fdf935
plugins: Move driver testing support to subpackage
...
this allows us to drop a cyclical import, but is subobptimal as it
requires BaseDriver tests to move. This falls firmly into the realm of
being a hack. Alternatives welcome.
2018-12-01 17:29:39 +01:00
Danielle Tomlinson
5262e42d62
fixup: executorplugin: fix rkt build
2018-11-30 10:47:08 +01:00
Danielle Tomlinson
d2136e0aa7
drivers: Move client/drivers/executor to drivers/shared/executor
2018-11-30 10:46:13 +01:00
Preetha Appan
829bf74aa8
modify fingerprint interface to use typed attribute struct
2018-11-28 10:01:03 -06:00
Alex Dadgar
9d42f4d039
Plugin client's handle plugin dying
...
This PR plumbs the plugins done ctx through the base and driver plugin
clients (device already had it). Further, it adds generic handling of
gRPC stream errors.
2018-11-12 17:09:27 -08:00
Alex Dadgar
57f40c7e3e
Device manager
...
Introduce a device manager that manages the lifecycle of device plugins
on the client. It fingerprints, collects stats, and forwards Reserve
requests to the correct plugin. The manager, also handles device plugins
failing and validates their output.
2018-11-07 10:43:15 -08:00
Michael Schurter
fdbe446ea6
client: first pass at implementing task restoring
...
Task restoring works but dead tasks may be restarted
2018-11-05 12:32:05 -08:00
Michael Schurter
84c8dbe5c9
qemu: standardize names/code
2018-11-01 15:53:07 -07:00
Michael Schurter
8f78d1d164
qemu: fix fingerprint description and handle race
2018-10-30 17:34:08 -07:00
Michael Schurter
9fb39b35c6
drivers: remove stutter from exported driver names
...
Also fix a comment on the logger that got copy/pasted around.
2018-10-30 14:05:31 -07:00
Michael Schurter
7d28d346d5
qemu: fix build and register by default
...
API changes had broken the build.
2018-10-29 22:10:37 -07:00
Preetha Appan
9937dc93b9
Merge branch 'f-driver-plugin-qemu' of github.com:hashicorp/nomad into f-driver-plugin-qemu
2018-10-25 13:51:58 -05:00
Preetha Appan
0ec59305ee
remove driver config struct from qemu driver since its not used
2018-10-25 13:51:06 -05:00
Michael Schurter
76ad56c73f
Fix hclog log line formatting
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:47:17 -05:00
Preetha Appan
c99b8701de
Fix imports
2018-10-25 13:45:44 -05:00
Michael Schurter
1744b4d123
Fix copy pasted comment
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:43:29 -05:00
Michael Schurter
2101d58d0f
remove newline
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:42:20 -05:00
Michael Schurter
2cf48b931d
update comment
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:41:24 -05:00
Michael Schurter
1f87a25d54
Remove unnecessary return
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:40:28 -05:00
Michael Schurter
f50c358988
remove unnecessary return
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2018-10-25 13:40:15 -05:00
Michael Schurter
08574715e3
Update drivers/qemu/driver.go
2018-10-17 17:42:01 -05:00
Preetha Appan
e20e3d7c36
QEMU driver plugin
2018-10-17 11:43:15 -05:00