mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-15 14:26:33 -04:00
Fix error messages in volume path handler
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
This commit is contained in:
parent
243d8c000e
commit
ad8f91fb0f
3 changed files with 4 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ const (
|
|||
TimeoutOnSetupVolumeName = "timeout-setup-volume"
|
||||
// FailOnSetupVolumeName will cause setup call to fail
|
||||
FailOnSetupVolumeName = "fail-setup-volume"
|
||||
//TimeoutAndFailOnSetupVolumeName will first timeout and then fail the setup
|
||||
// TimeoutAndFailOnSetupVolumeName will first timeout and then fail the setup
|
||||
TimeoutAndFailOnSetupVolumeName = "timeout-and-fail-setup-volume"
|
||||
// SuccessAndTimeoutSetupVolumeName will cause first mount operation to succeed but subsequent attempts to timeout
|
||||
SuccessAndTimeoutSetupVolumeName = "success-and-timeout-setup-volume-name"
|
||||
|
|
|
|||
|
|
@ -2182,7 +2182,7 @@ func isDeviceOpened(deviceToDetach AttachedVolume, hostUtil hostutil.HostUtils)
|
|||
if !isDevicePath && devicePathErr == nil ||
|
||||
(devicePathErr != nil && strings.Contains(devicePathErr.Error(), "does not exist")) {
|
||||
// not a device path or path doesn't exist
|
||||
//TODO: refer to #36092
|
||||
// TODO: refer to #36092
|
||||
klog.V(3).Infof("The path isn't device path or doesn't exist. Skip checking device path: %s", deviceToDetach.DevicePath)
|
||||
deviceOpened = false
|
||||
} else if devicePathErr != nil {
|
||||
|
|
|
|||
|
|
@ -130,11 +130,11 @@ func mapBindMountDevice(devicePath string, mapPath string, linkName string) erro
|
|||
// Check if device file
|
||||
// TODO: Need to check if this device file is actually the expected bind mount
|
||||
if file.Mode()&os.ModeDevice == os.ModeDevice {
|
||||
klog.Warningf("Warning: Map skipped because bind mount already exist on the path: %v", linkPath)
|
||||
klog.Warningf("Warning: Map skipped because bind mount already exists on the path: %v", linkPath)
|
||||
return nil
|
||||
}
|
||||
|
||||
klog.Warningf("Warning: file %s is already exist but not mounted, skip creating file", linkPath)
|
||||
klog.Warningf("Warning: file %s already exists but is not mounted, skip creating file", linkPath)
|
||||
}
|
||||
|
||||
// Bind mount file
|
||||
|
|
|
|||
Loading…
Reference in a new issue