open-nomad/client
Lang Martin a4784ef258 csi add allocation context to fingerprinting results (#7133)
* structs: CSIInfo include AllocID, CSIPlugins no Jobs

* state_store: eliminate plugin Jobs, delete an empty plugin

* nomad/structs/csi: detect empty plugins correctly

* client/allocrunner/taskrunner/plugin_supervisor_hook: option AllocID

* client/pluginmanager/csimanager/instance: allocID

* client/pluginmanager/csimanager/fingerprint: set AllocID

* client/node_updater: split controller and node plugins

* api/csi: remove Jobs

The CSI Plugin API will map plugins to allocations, which allows
plugins to be defined by jobs in many configurations. In particular,
multiple plugins can be defined in the same job, and multiple jobs can
be used to define a single plugin.

Because we now map the allocation context directly from the node, it's
no longer necessary to track the jobs associated with a plugin
directly.

* nomad/csi_endpoint_test: CreateTestPlugin & register via fingerprint

* client/dynamicplugins: lift AllocID into the struct from Options

* api/csi_test: remove Jobs test

* nomad/structs/csi: CSIPlugins has an array of allocs

* nomad/state/state_store: implement CSIPluginDenormalize

* nomad/state/state_store: CSIPluginDenormalize npe on missing alloc

* nomad/csi_endpoint_test: defer deleteNodes for clarity

* api/csi_test: disable this test awaiting mocks:
https://github.com/hashicorp/nomad/issues/7123
2020-03-23 13:58:30 -04:00
..
allocdir connect: add unix socket to proxy grpc for envoy (#6232) 2019-09-03 08:43:38 -07:00
allochealth client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
allocrunner csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
allocwatcher client/allocwatcher: fix dropped test error (#6592) 2019-10-31 08:29:25 -04:00
config command: use consistent CONSUL_HTTP_TOKEN name 2020-02-12 10:42:33 -06:00
consul comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
devicemanager initialize device manager stats interval 2019-08-23 14:58:34 -04:00
dynamicplugins csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
fingerprint Update client/fingerprint/env_aws.go 2019-12-16 14:48:52 +01:00
interfaces Populate alloc stats API with device stats 2018-11-16 10:26:32 -05:00
lib ar: plumb client config for networking into the network hook 2019-07-31 01:04:06 -04:00
logmon update grpc 2020-03-03 08:39:54 -05:00
pluginmanager csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
servers client: drop unused DC field from servers list 2019-05-20 14:19:15 -07:00
state tests: run_for is already a string 2020-01-28 14:58:57 -05:00
stats Update gopsutil code 2020-03-15 09:37:05 +01:00
structs csi: VolumeCapabilities for ControllerPublishVolume 2020-03-23 13:58:30 -04:00
taskenv address review comments 2020-01-15 08:57:05 -05:00
testutil Remove rkt as a built-in driver 2020-02-26 22:16:41 -05:00
vaultclient vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
acl.go aux: helper method that returns token as well as ACL policy 2019-04-30 10:23:56 -04:00
acl_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
agent_endpoint.go Rename profile package to pprof 2020-01-09 15:15:10 -05:00
agent_endpoint_test.go Rename profile package to pprof 2020-01-09 15:15:10 -05:00
alloc_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
alloc_endpoint_test.go Merge pull request #6556 from hashicorp/c-vendor-multierror-20191025 2019-12-13 11:32:42 -05:00
alloc_watcher_e2e_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
client.go client: Pass an RPC Client to AllocRunners 2020-03-23 13:58:30 -04:00
client_stats_endpoint.go Server side impl + touch ups 2018-02-15 13:59:02 -08:00
client_stats_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
client_test.go client: enable nomad client to request and set SI tokens for tasks 2020-01-31 19:03:38 -06:00
csi_controller_endpoint.go csi: VolumeCapabilities for ControllerPublishVolume 2020-03-23 13:58:30 -04:00
csi_controller_endpoint_test.go csi: VolumeCapabilities for ControllerPublishVolume 2020-03-23 13:58:30 -04:00
driver_manager_test.go tests: fix data race in client TestDriverManager_Fingerprint_Periodic 2019-05-21 09:49:56 -04:00
fingerprint_manager.go goimports until make check is happy 2019-01-23 06:27:14 -08:00
fingerprint_manager_test.go client/drivermananger: add driver manager 2018-12-18 22:55:18 -05:00
fs_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
fs_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
gc.go Plugins use parent loggers 2019-01-11 11:36:37 -08:00
gc_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
node_updater.go csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
rpc.go client: Rename ClientCSI -> CSIController 2020-03-23 13:58:30 -04:00
rpc_test.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
testing.go goimports until make check is happy 2019-01-23 06:27:14 -08:00
util.go client: defensive against getting stale alloc updates 2019-06-29 04:17:35 -05:00
util_test.go Update state with server 2018-10-16 16:53:29 -07:00