open-nomad/client/structs
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
..
allochook.go allocrunner: Push state from hooks to taskrunners 2020-03-23 13:58:30 -04:00
broadcaster.go client: comment on importance of chan ops ordering 2018-11-27 14:11:32 -08:00
broadcaster_test.go fix mispelings 2018-11-27 16:33:55 -08:00
csi.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
generate.sh fix codegen for ugorji/go 2020-03-31 21:30:21 -04:00
structs.go fix codegen for ugorji/go 2020-03-31 21:30:21 -04:00