Skip to content

Commit

Permalink
UPSTREAM: 101862: Retry detaching FibreChannel volume few times
Browse files Browse the repository at this point in the history
When UnmountDevice() of a FibreChannel volume fails after unmounting the
device and before the device is fully cleaned up, subsequent
UnmountDevice() retry won't find the device mounted and return without
retrying the device cleanup.

Therefore implement its own retry inside UnmountDevice() to make sure that
the volume devices are either fully cleaned or the error is serius enough
that even 1 minute of trying does not help.
  • Loading branch information
jsafrane committed Jun 14, 2021
1 parent 03d38d3 commit 29b7b0a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions vendor/k8s.io/kubernetes/pkg/volume/fc/attacher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29b7b0a

Please sign in to comment.