From 5b947e6e8a0dbc071560a2ea2686f7688f4bc4b6 Mon Sep 17 00:00:00 2001 From: 27149chen <7991675+27149chen@users.noreply.github.com> Date: Mon, 8 Apr 2019 13:52:18 +0800 Subject: [PATCH] UB-1977 exclude the warning messages in multipath output Signed-off-by: 27149chen <7991675+27149chen@users.noreply.github.com> --- remote/mounter/block_device_utils/mpath.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote/mounter/block_device_utils/mpath.go b/remote/mounter/block_device_utils/mpath.go index fb982a9b..893da376 100644 --- a/remote/mounter/block_device_utils/mpath.go +++ b/remote/mounter/block_device_utils/mpath.go @@ -81,8 +81,10 @@ func (b *blockDeviceUtils) Discover(volumeWwn string, deepDiscovery bool) (strin } else { mpath = b.mpathDevFullPath(dev) + mpathOutput := utils.ExcludeNoTargetPortGroupMessagesFromMultipathOutput(string(outputBytes[:]), b.logger) + // Validate that we have the correct wwn. - SqInqWwn, err := b.GetWwnByScsiInq(string(outputBytes[:]), mpath) + SqInqWwn, err := b.GetWwnByScsiInq(mpathOutput, mpath) if err != nil { switch err.(type) { case *FaultyDeviceError: