open-nomad/client/pluginmanager
Tim Gross f6b3d38eb8
CSI: move node unmount to server-driven RPCs (#7596)
If a volume-claiming alloc stops and the CSI Node plugin that serves
that alloc's volumes is missing, there's no way for the allocrunner
hook to send the `NodeUnpublish` and `NodeUnstage` RPCs.

This changeset addresses this issue with a redesign of the client-side
for CSI. Rather than unmounting in the alloc runner hook, the alloc
runner hook will simply exit. When the server gets the
`Node.UpdateAlloc` for the terminal allocation that had a volume claim,
it creates a volume claim GC job. This job will made client RPCs to a
new node plugin RPC endpoint, and only once that succeeds, move on to
making the client RPCs to the controller plugin. If the node plugin is
unavailable, the GC job will fail and be requeued.
2020-04-02 16:04:56 -04:00
..
csimanager CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
drivermanager csi: docstring and log message fixups (#7327) 2020-03-23 13:58:30 -04:00
group.go s/mananger/manager 2019-03-04 12:25:54 -06:00
group_test.go s/mananger/manager 2019-03-04 12:25:54 -06:00
manager.go client: batch initial fingerprinting in plugin manangers 2018-12-18 22:56:19 -05:00
testing.go client: batch initial fingerprinting in plugin manangers 2018-12-18 22:56:19 -05:00