open-nomad/nomad/structs
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
..
config implement MinQuorum 2020-02-16 16:04:59 -06:00
batch_future.go drain: refactor batch_future into its own file 2018-04-02 16:40:06 -07:00
batch_future_test.go drain: refactor batch_future into its own file 2018-04-02 16:40:06 -07:00
bitmap.go assign names 2017-07-07 12:03:11 -07:00
bitmap_test.go assign names 2017-07-07 12:03:11 -07:00
csi.go csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
csi_test.go csi: fix index maintenance for CSIVolume and CSIPlugin tables (#7049) 2020-03-23 13:58:29 -04:00
devices.go Initial implementation of device preemption 2018-11-15 11:09:26 -06:00
devices_test.go Split device accounter and allocator 2018-11-07 10:32:03 -08:00
diff.go structs: add taskgroup networks and services to plan diffs 2019-08-20 16:18:30 -04:00
diff_test.go jobspec: fixup vault_grace deprecation 2020-03-10 14:58:49 -07:00
errors.go csi: server-side plugin state tracking and api (#6966) 2020-03-23 13:58:29 -04:00
errors_test.go api: acl bootstrap errors aren't 500 2019-11-19 15:51:57 -05:00
funcs.go allocs fit checks if devices get oversubscribed 2018-11-07 10:33:22 -08:00
funcs_test.go fix tests from introducing new struct fields 2019-07-31 01:03:16 -04:00
generate.sh dev: avoid codecgen code in downstream projects 2019-09-06 09:22:00 -04:00
network.go cli: display group ports and address in alloc status command output (#6189) 2019-08-27 23:59:36 -04:00
network_test.go cli: display group ports and address in alloc status command output (#6189) 2019-08-27 23:59:36 -04:00
node.go csi add allocation context to fingerprinting results (#7133) 2020-03-23 13:58:30 -04:00
node_class.go Device hook and devices affect computed node class 2018-11-27 17:25:33 -08:00
node_class_test.go Device hook and devices affect computed node class 2018-11-27 17:25:33 -08:00
node_test.go fix issue when updating node events 2018-03-21 15:15:26 -04:00
operator.go implement MinQuorum 2020-02-16 16:04:59 -06:00
service_identities.go nomad: proxy requests for Service Identity tokens between Clients and Consul 2020-01-31 19:03:53 -06:00
services.go consul/connect: in-place update sidecar service registrations on changes 2020-02-19 13:07:04 -06:00
services_test.go nomad: note why AddressMode is not part of CSD hash 2020-02-21 09:24:42 -06:00
streaming_rpc.go spelling: requested 2018-03-11 18:43:21 +00:00
structs.go csi: volume claim garbage collection (#7125) 2020-03-23 13:58:30 -04:00
structs_codegen.go Codecgen full package 2018-04-26 15:24:53 -07:00
structs_test.go CSI Plugin Registration (#6555) 2020-03-23 13:58:28 -04:00
testing.go Split device accounter and allocator 2018-11-07 10:32:03 -08:00
volumes.go volumes: Add support for mount propagation 2019-10-14 14:09:58 +02:00