You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gce-pd-csi-driver/main.go
+8-3
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,9 @@ var (
63
63
waitForOpBackoffJitter=flag.Float64("wait-op-backoff-jitter", 0.0, "Jitter for wait for operation backoff")
64
64
waitForOpBackoffSteps=flag.Int("wait-op-backoff-steps", 100, "Steps for wait for operation backoff")
65
65
waitForOpBackoffCap=flag.Duration("wait-op-backoff-cap", 0, "Cap for wait for operation backoff")
66
-
deviceInUseTimeout=flag.Duration("device-in-use-timeout", 30*time.Second, "Max time to wait for a device to be unsed when attempting to unstage")
66
+
67
+
enableDeviceInUseTimeout=flag.Bool("enable-device-in-use-timeout", true, "If set to true, ignores device in use errors when attempting to unstage a device if it has been stuck for longer than 'device-in-use-timeout'")
68
+
deviceInUseTimeout=flag.Duration("device-in-use-timeout", 30*time.Second, "Max time to wait for a device to be unused when attempting to unstage")
klog.Warningf("Unabled to check if device for %s is unused. Device has been unmounted successfully. Ignoring and continuing with unstaging. (%v)", volumeID, err)
klog.Warningf("Device %s could not be released after timeout of %d seconds. NodeUnstageVolume will return success.", volumeID, DeviceInUseTimeout)
477
+
klog.Warningf("Device %s could not be released after timeout of %f seconds. NodeUnstageVolume will return success.", volumeID, ns.deviceInUseErrors.timeout.Seconds())
469
478
} else {
470
479
ns.deviceInUseErrors.markDeviceError(volumeID)
471
480
returnnil, status.Errorf(codes.Internal, "NodeUnstageVolume for volume %s failed: %v", volumeID, err)
0 commit comments