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
Alex Dadgar
07a7555acd
lint
2018-12-18 16:48:00 -08:00
Mahmood Ali
da070a58b7
test: fix TestFingerprintManager_Run_Combination
...
Let's use a fingerprinter that doesn't have values prepopulated in test
fixtures.
2018-12-11 09:35:26 -05:00
Nick Ethier
da7563b8c3
Merge pull request #4795 from hashicorp/f-plugin-config
...
Pass client configuration to plugins through loader
2018-10-29 18:42:27 -07:00
Nick Ethier
95d381cff7
rename NomadConfig to ClientAgentConfig
2018-10-29 21:34:34 -04:00
Michael Schurter
e029980b25
tests: explicitly cleanup after clients
2018-10-17 10:06:59 -07:00
Nick Ethier
2e055fe18a
client: add test for driverfailure during fingerprinting
2018-10-16 16:56:56 -07:00
Nick Ethier
44cc52a0d4
client: simplify driver plugin logic from review comments
2018-10-16 16:56:56 -07:00
Nick Ethier
4f9522dd54
client: review comments and fixup/skip tests
2018-10-16 16:56:56 -07:00
Alex Dadgar
9a2c2a4f68
client uses passed logger and fix fingerprinters
2018-10-16 16:53:30 -07:00
Alex Dadgar
98c7abe541
Tests only use testlog package logger
2018-06-13 15:40:56 -07:00
Alex Dadgar
a62e412b88
Refactor - wip
2018-06-12 10:23:45 -07:00
Michael Schurter
29da24b77b
test: build with mock_driver by default
...
`make release` and `make prerelease` set a `release` tag to disable
enabling the `mock_driver`
2018-04-18 14:45:33 -07:00
Chelsea Holland Komlo
228a2319c2
delete driver name from only health check attributes
2018-04-12 18:24:41 -04:00
Alex Dadgar
d0605c5229
Fix tests
2018-04-12 14:29:30 -07:00
Chelsea Holland Komlo
bf3b7d8588
ux improvments to driver health checks
2018-03-22 18:38:29 -04:00
Chelsea Holland Komlo
7b2ed01472
remove unused function
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
115d54cb19
fix up health check logic comparison; add node events to client driver checks
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
8aefd294e1
Code review feedback
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
8a0ed4e5ff
improve tests
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
865b7e0ace
fix up racy tests
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
1570972cb3
add concept of health checks to fingerprinters and nodes
...
fix up feedback from code review
add driver info for all drivers to node
2018-03-21 15:15:25 -04:00
Josh Soref
51c3d7e69f
spelling: fingerprint
2018-03-11 18:07:37 +00:00
Chelsea Holland Komlo
cd5be3bea9
improved testing; node networks comparison
2018-02-26 15:55:38 -05:00
Chelsea Holland Komlo
4271123b4f
code review fixups
2018-02-26 12:36:30 -05:00
Chelsea Holland Komlo
7246c9d1ff
edge trigger node update
...
test update config copy trigger
2018-02-26 12:36:04 -05:00
Chelsea Holland Komlo
12ee25d852
extract test helper
...
lock concurrent accesses to node
comment exported method
2018-02-12 18:30:10 -05:00
Chelsea Holland Komlo
1a26950114
code review feedback
2018-02-07 18:10:55 -05:00
Chelsea Holland Komlo
ca3b28c5c6
remove dependency on client for fingerprint manager
2018-02-07 18:10:45 -05:00
Chelsea Holland Komlo
cc1213a8bb
add fingerprint manager
2018-02-07 18:10:33 -05:00