open-nomad/command/agent
Danielle Lancashire 426c26d7c0 CSI Plugin Registration (#6555)
This changeset implements the initial registration and fingerprinting
of CSI Plugins as part of #5378. At a high level, it introduces the
following:

* A `csi_plugin` stanza as part of a Nomad task configuration, to
  allow a task to expose that it is a plugin.

* A new task runner hook: `csi_plugin_supervisor`. This hook does two
  things. When the `csi_plugin` stanza is detected, it will
  automatically configure the plugin task to receive bidirectional
  mounts to the CSI intermediary directory. At runtime, it will then
  perform an initial heartbeat of the plugin and handle submitting it to
  the new `dynamicplugins.Registry` for further use by the client, and
  then run a lightweight heartbeat loop that will emit task events
  when health changes.

* The `dynamicplugins.Registry` for handling plugins that run
  as Nomad tasks, in contrast to the existing catalog that requires
  `go-plugin` type plugins and to know the plugin configuration in
  advance.

* The `csimanager` which fingerprints CSI plugins, in a similar way to
  `drivermanager` and `devicemanager`. It currently only fingerprints
  the NodeID from the plugin, and assumes that all plugins are
  monolithic.

Missing features

* We do not use the live updates of the `dynamicplugin` registry in
  the `csimanager` yet.

* We do not deregister the plugins from the client when they shutdown
  yet, they just become indefinitely marked as unhealthy. This is
  deliberate until we figure out how we should manage deploying new
  versions of plugins/transitioning them.
2020-03-23 13:58:28 -04:00
..
consul mock task hook coordinator in consul integration test 2020-03-21 17:52:55 -04:00
monitor unlock before returning, no need for label 2019-11-05 11:44:29 -05:00
pprof Rename profile package to pprof 2020-01-09 15:15:10 -05:00
test-resources chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
testdata tests: add tests for parsing cni fields 2020-02-28 14:18:45 -05:00
acl_endpoint.go
acl_endpoint_test.go
agent.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
agent_endpoint.go agent Profile req nil check s.agent.Server() 2020-02-03 13:20:05 -05:00
agent_endpoint_test.go test: fix flaky health test 2020-02-07 15:50:53 -08:00
agent_test.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
alloc_endpoint.go api: return X-Nomad-Index header on allocation stop 2019-06-21 16:20:06 +00:00
alloc_endpoint_test.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
bindata_assetfs.go refactor api profile methods 2020-01-09 15:15:12 -05:00
command.go cli: fix indentation issue with -dev-connect agent help output. 2020-03-18 12:25:20 +01:00
command_test.go refactored config validation into a new method, modified Meta.Client 2019-01-08 15:07:36 +00:00
config.go Merge pull request #7252 from hashicorp/b-test-cluster-forming 2020-03-03 16:56:08 -05:00
config_oss.go
config_parse.go clientconfig: Fix parsing multiple host volumes 2019-08-21 22:19:58 +02:00
config_parse_test.go tests: add tests for parsing cni fields 2020-02-28 14:18:45 -05:00
config_test.go implement MinQuorum 2020-02-16 16:04:59 -06:00
deployment_endpoint.go
deployment_endpoint_test.go
eval_endpoint.go
eval_endpoint_test.go
fs_endpoint.go agent: report fs log errors as http errors 2019-10-04 16:33:58 -04:00
fs_endpoint_test.go test: allow goroutine to exit even if test blocks 2020-02-07 15:50:53 -08:00
helpers.go client: expose task state to client 2018-10-16 16:56:55 -07:00
helpers_test.go test: fix missing agent shutdowns 2020-02-07 15:50:53 -08:00
http.go core: add limits to unauthorized connections 2020-01-30 10:38:25 -08:00
http_oss.go inlude pro in http_oss.go 2020-02-18 10:29:28 -05:00
http_test.go test: improve error messages when failing 2020-02-07 15:50:53 -08:00
job_endpoint.go CSI Plugin Registration (#6555) 2020-03-23 13:58:28 -04:00
job_endpoint_test.go Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
keyring.go
keyring_test.go
log_file.go logging: Correctly track number of written bytes 2019-10-10 14:02:14 +02:00
log_file_test.go logging: Sort files when pruning old logs 2019-10-10 13:51:16 +02:00
log_levels.go Support for hot reloading log levels 2019-07-24 13:37:08 +02:00
log_levels_test.go
metrics_endpoint.go agent + consul 2018-09-13 10:43:40 -07:00
metrics_endpoint_test.go test: fix flaky TestHTTP_FreshClientAllocMetrics 2020-02-07 15:50:53 -08:00
node_endpoint.go take NodeID from url in api for node eligibility 2019-07-15 18:34:53 +03:00
node_endpoint_test.go take NodeID from url in api for node eligibility 2019-07-15 18:34:53 +03:00
operator_endpoint.go implement MinQuorum 2020-02-16 16:04:59 -06:00
operator_endpoint_test.go update rest of consul packages 2020-02-16 16:25:04 -06:00
plugins.go move pluginutils -> helper/pluginutils 2019-01-22 15:50:08 -08:00
region_endpoint.go
region_endpoint_test.go
retry_join.go agent + consul 2018-09-13 10:43:40 -07:00
retry_join_test.go agent + consul 2018-09-13 10:43:40 -07:00
search_endpoint.go
search_endpoint_test.go
stats_endpoint.go
stats_endpoint_test.go Fix failing test TestClientStatusRequest 2018-05-30 15:11:54 -05:00
status_endpoint.go
status_endpoint_test.go
stub_asset.go
syslog.go goimports 2019-01-22 15:44:31 -08:00
syslog_test.go goimports 2019-01-22 15:44:31 -08:00
system_endpoint.go
system_endpoint_test.go
testagent.go Simplify Bootstrap logic in tests 2020-03-02 13:47:43 -05:00
testingutils_test.go command/agent: Prune Dead Code (#6682) 2019-11-13 08:20:01 -05:00