mirror of https://github.com/k3s-io/k3s
![]() To safely mark a volume detached when the volume controller manager is used. An example of one such problem: 1. pod is created, volume is added to desired state of the world 2. reconciler process starts 3. reconciler starts MountVolume, which is kicked off asynchronously via operation_executor.go 4. MountVolume mounts the volume, but hasn't yet marked it as mounted 5. pod is deleted, volume is removed from desired state of the world 6. reconciler detects volume is no longer in desired state of world, removes it from volumes in use 7. MountVolume tries to mark volume in use, throws an error because volume is no longer in actual state of world list. 8. controller-manager tries to detach the volume, this fails because it is still mounted to the OS. 9. EBS gets stuck indefinitely in busy state trying to detach. |
||
---|---|---|
.. | ||
nestedpendingoperations | ||
operationexecutor | ||
types | ||
volumehelper | ||
BUILD | ||
OWNERS | ||
atomic_writer.go | ||
atomic_writer_test.go | ||
device_util.go | ||
device_util_linux.go | ||
device_util_linux_test.go | ||
device_util_unsupported.go | ||
doc.go | ||
fs.go | ||
fs_unsupported.go | ||
io_util.go | ||
util.go |