mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-22 07:03:28 +00:00
Fix error messages in volume path handler
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user