open-nomad/client/pluginmanager
Tim Gross 118b703164
CSI: set mounts in alloc hook resources atomically (#16722)
The allocrunner has a facility for passing data written by allocrunner hooks to
taskrunner hooks. Currently the only consumers of this facility are the
allocrunner CSI hook (which writes data) and the taskrunner volume hook (which
reads that same data).

The allocrunner hook for CSI volumes doesn't set the alloc hook resources
atomically. Instead, it gets the current resources and then writes a new version
back. Because the CSI hook is currently the only writer and all readers happen
long afterwards, this should be safe but #16623 shows there's some sequence of
events during restore where this breaks down.

Refactor hook resources so that hook data is accessed via setters and getters
that hold the mutex.
2023-04-03 11:03:36 -04:00
..
csimanager CSI: set mounts in alloc hook resources atomically (#16722) 2023-04-03 11:03:36 -04:00
drivermanager chore: remove use of "err" a log line context key for errors. (#14433) 2022-09-01 15:06:10 +02:00
group.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
group_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
manager.go client: batch initial fingerprinting in plugin manangers 2018-12-18 22:56:19 -05:00
testing.go pluginmanager: WaitForFirstFingerprint times out (#9597) 2020-12-10 07:27:15 -08:00