From 8b86a2d94057ed46384632b622c4fd6fc9568d57 Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Tue, 24 Jan 2017 17:56:17 +0100 Subject: [PATCH] Change log level on _get_hba_channel_scsi_target On the FC initiator, when we are doing a scan we try to narrow the scope of the scan as much as possible, for this purpose we try to get the HBA channel and SCSI targets for an HBA. Unfortunately the mechanism we have implemented to detect these two parameters is not universal and will only work on FC targets that implement a single WWN. This is not a big problem as the code is capable of operating normally without those 2 parameters, it's just that the filtering on the scan is not as precise as it could be. So the issue is that we are logging as an error when we cannot get that information, which is clearly misleading to anybody reading the logs. This patch changes the log level from error to debug. TrivialFix Change-Id: Ieec4868b9da0d0af5b951fb01257a742c440aeee --- os_brick/initiator/linuxfc.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/os_brick/initiator/linuxfc.py b/os_brick/initiator/linuxfc.py index ab72544c5..affe2dd9b 100644 --- a/os_brick/initiator/linuxfc.py +++ b/os_brick/initiator/linuxfc.py @@ -56,10 +56,9 @@ class LinuxFibreChannel(linuxscsi.LinuxSCSI): return [line.split('/')[4].split(':')[1:] for line in out.split('\n') if line.startswith(path)] except Exception as exc: - LOG.error('Could not get HBA channel and SCSI target ID, ' - 'path: %(path)s, reason: %(reason)s', - {'path': path, - 'reason': exc}) + LOG.debug('Could not get HBA channel and SCSI target ID, path: ' + '%(path)s, reason: %(reason)s', {'path': path, + 'reason': exc}) return None def rescan_hosts(self, hbas, target_lun):