Nick Ethier
1400012cbc
drivermanager: don't store nil reattach configs
2019-01-25 23:07:04 -05:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08: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
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
Michael Schurter
838c8fcc75
Merge pull request #5034 from hashicorp/test-fix-races
...
Test fix races
2019-01-08 07:04:09 -08: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
Alex Dadgar
437f03d877
recover
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
Michael Schurter
6478a93aca
drivermgr: fix race in building driver list
2018-12-19 15:48:02 -08:00
Nick Ethier
1ff3b681da
drivermanager: use correct plugin config types
2018-12-18 23:07:01 -05:00
Nick Ethier
12528cadda
drivermanager: attempt to reattach and shutdown driver plugin if blocked by allow/block lists
2018-12-18 23:01:57 -05:00
Nick Ethier
6951ca487d
drivermanager: use allocID and task name to route task events
2018-12-18 23:01:51 -05:00
Nick Ethier
3100f7bd64
client/pluginmanager: add plugin manager interface to device/driver managers
2018-12-18 22:56:23 -05:00
Nick Ethier
331793e283
client: batch initial fingerprinting in plugin manangers
...
drivermanager: fix pr comments/feedback
2018-12-18 22:56:19 -05:00
Nick Ethier
2f010a2f25
client/drivermananger: fixup issues from rebase and address PR comments
2018-12-18 22:55:38 -05:00
Nick Ethier
39ca1b00dd
client/drivermananger: add driver manager
...
The driver manager is modeled after the device manager and is started by the client.
It's responsible for handling driver lifecycle and reattachment state, as well as
processing the incomming fingerprint and task events from each driver. The mananger
exposes a method for registering event handlers for task events that is used by the
task runner to update the server when a task has been updated with an event.
Since driver fingerprinting has been implemented by the driver manager, it is no
longer needed in the fingerprint mananger and has been removed.
2018-12-18 22:55:18 -05:00