Change warning to info logging for connected volume rescans
The warning log level is too high for rescanning for a device after connecting a volume. This should be INFO level at best. As a data point, the iscsi warnings alone show up over 207K+ times in a 1 week gate run. Change-Id: I7903929519a22f908b8a4798dc6ed0a5b0439df2 Closes-Bug: #1621566
This commit is contained in:
parent
3818f0f4dd
commit
f7d5cc47cd
|
@ -21,7 +21,7 @@ from oslo_service import loopingcall
|
|||
from os_brick import exception
|
||||
from os_brick import initiator
|
||||
|
||||
from os_brick.i18n import _LW
|
||||
from os_brick.i18n import _LI
|
||||
from os_brick.initiator.connectors import base
|
||||
from os_brick import utils
|
||||
|
||||
|
@ -104,10 +104,9 @@ class AoEConnector(base.BaseLinuxConnector):
|
|||
if waiting_status['tries'] >= self.device_scan_attempts:
|
||||
raise exception.VolumeDeviceNotFound(device=aoe_path)
|
||||
|
||||
LOG.warning(_LW("AoE volume not yet found at: %(path)s. "
|
||||
"Try number: %(tries)s"),
|
||||
{'path': aoe_device,
|
||||
'tries': waiting_status['tries']})
|
||||
LOG.info(_LI("AoE volume not yet found at: %(path)s. "
|
||||
"Try number: %(tries)s"),
|
||||
{'path': aoe_device, 'tries': waiting_status['tries']})
|
||||
|
||||
self._aoe_discover()
|
||||
waiting_status['tries'] += 1
|
||||
|
|
|
@ -19,7 +19,7 @@ from oslo_log import log as logging
|
|||
from oslo_service import loopingcall
|
||||
import six
|
||||
|
||||
from os_brick.i18n import _LE, _LW
|
||||
from os_brick.i18n import _LE, _LI, _LW
|
||||
from os_brick import exception
|
||||
from os_brick import initiator
|
||||
from os_brick.initiator.connectors import base
|
||||
|
@ -156,9 +156,9 @@ class FibreChannelConnector(base.BaseLinuxConnector):
|
|||
LOG.error(_LE("Fibre Channel volume device not found."))
|
||||
raise exception.NoFibreChannelVolumeDeviceFound()
|
||||
|
||||
LOG.warning(_LW("Fibre Channel volume device not yet found. "
|
||||
"Will rescan & retry. Try number: %(tries)s."),
|
||||
{'tries': tries})
|
||||
LOG.info(_LI("Fibre Channel volume device not yet found. "
|
||||
"Will rescan & retry. Try number: %(tries)s."),
|
||||
{'tries': tries})
|
||||
|
||||
self._linuxfc.rescan_hosts(hbas,
|
||||
connection_properties['target_lun'])
|
||||
|
|
|
@ -403,10 +403,9 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
|
|||
if tries >= self.device_scan_attempts:
|
||||
raise exception.VolumeDeviceNotFound(device=host_devices)
|
||||
|
||||
LOG.warning(_LW("ISCSI volume not yet found at: %(host_devices)s. "
|
||||
"Will rescan & retry. Try number: %(tries)s."),
|
||||
{'host_devices': host_devices,
|
||||
'tries': tries})
|
||||
LOG.info(_LI("ISCSI volume not yet found at: %(host_devices)s. "
|
||||
"Will rescan & retry. Try number: %(tries)s."),
|
||||
{'host_devices': host_devices, 'tries': tries})
|
||||
|
||||
# The rescan isn't documented as being necessary(?), but it helps
|
||||
if self.use_multipath:
|
||||
|
|
Loading…
Reference in New Issue