linode / linode-blockstorage-csi-driver

Container Storage Interface (CSI) Driver for Linode Block Storage
Apache License 2.0
66 stars 55 forks source link

Allow Volume attach to retry if Volume is still attached to a Linode #82

Closed thorn3r closed 2 years ago

thorn3r commented 2 years ago

A race condition can occur during the rescheduling of a workload when a Linode is shutdown. The csi-attacher will attempt to retry the Volume attach if the error returned by ControllerPublishVolume is part of this set.

Using codes.Unavailable if the Volume is "still attached" will allow the controller to retry attaching the Volume, rather than return a fatal, final error.