From f09c0992c2a83e2d9fc5a0d77e6dfc94a6bd6438 Mon Sep 17 00:00:00 2001 From: Matthew Cary Date: Thu, 26 Oct 2023 12:32:30 -0700 Subject: [PATCH] Change DisableDevice error to warning Change-Id: I3b6e586610d3f20e86b7f20bf099b6ee2451d11a --- pkg/gce-pd-csi-driver/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gce-pd-csi-driver/node.go b/pkg/gce-pd-csi-driver/node.go index fb284b5ad..21988b6e8 100644 --- a/pkg/gce-pd-csi-driver/node.go +++ b/pkg/gce-pd-csi-driver/node.go @@ -397,9 +397,9 @@ func (ns *GCENodeServer) NodeUnstageVolume(ctx context.Context, req *csi.NodeUns klog.Errorf("Failed to find device path for volume %s. Device may not be detached cleanly (error is ignored and unstaging is continuing): %v", volumeID, err.Error()) } else { if devFsPath, err := filepath.EvalSymlinks(devicePath); err != nil { - klog.Errorf("filepath.EvalSymlinks(%q) failed when trying to disable device: %w (ignored, unstaging continues)", devicePath, err) + klog.Warningf("filepath.EvalSymlinks(%q) failed when trying to disable device: %w (ignored, unstaging continues)", devicePath, err) } else if err := ns.DeviceUtils.DisableDevice(devFsPath); err != nil { - klog.Errorf("Failed to disabled device %s (aka %s) for volume %s. Device may not be detached cleanly (error is ignored and unstaging is continuing): %w", devicePath, devFsPath, volumeID, err) + klog.Warningf("Failed to disabled device %s (aka %s) for volume %s. Device may not be detached cleanly (ignored, unstaging continues): %w", devicePath, devFsPath, volumeID, err) } }