mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Remove noisy log
The error would be logged every reconciler sync (100 ms).
This commit is contained in:
parent
0793ecee3a
commit
1490d51028
@ -824,10 +824,6 @@ func (asw *actualStateOfWorld) PodExistsInVolume(podName volumetypes.UniquePodNa
|
||||
fullErr := newSELinuxMountMismatchError(volumeName)
|
||||
if util.IsRWOP(volumeObj.spec) {
|
||||
return false, volumeObj.devicePath, fullErr
|
||||
} else {
|
||||
// This is not an error yet, but it will be when support for RWO and RWX volumes is added
|
||||
// TODO: bump some metric here
|
||||
klog.V(4).ErrorS(fullErr, "Please report this error in https://github.com/kubernetes/enhancements/issues/1710, together with full Pod yaml file")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ func (rc *reconciler) mountOrAttachVolumes() {
|
||||
volumeToMount.DevicePath = devicePath
|
||||
if cache.IsSELinuxMountMismatchError(err) {
|
||||
// TODO: check error message + lower frequency, this can be noisy
|
||||
klog.ErrorS(err, volumeToMount.GenerateErrorDetailed("mount precondition failed", err).Error(), "pod", klog.KObj(volumeToMount.Pod))
|
||||
klog.ErrorS(err, volumeToMount.GenerateErrorDetailed("mount precondition failed, please report this error in https://github.com/kubernetes/enhancements/issues/1710, together with full Pod yaml file", err).Error(), "pod", klog.KObj(volumeToMount.Pod))
|
||||
// TODO: report error better, this may be too noisy
|
||||
rc.desiredStateOfWorld.AddErrorToPod(volumeToMount.PodName, err.Error())
|
||||
} else if cache.IsVolumeNotAttachedError(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user