Fix mis-formatted log messages
Fix errors in log messages. These were detected by a patch that catches
these types of errors. Submitting these fixes first as the patch to
detect the errors will likely take more time to get merged.
Conflicts:
ironic/drivers/modules/oneview/deploy_utils.py
Closes-Bug: #1722597
Change-Id: Ibe451f9cd97971cb83366fdc6f7f5c31d2af4793
(cherry picked from commit df5da4ce7a
)
This commit is contained in:
parent
370ce2847d
commit
c029f4e823
|
@ -183,7 +183,7 @@ class NeutronDHCPApi(base.BaseDHCP):
|
|||
if isinstance(p_obj, objects.Port):
|
||||
obj_name = 'port'
|
||||
LOG.warning("No VIFs found for node %(node)s when attempting "
|
||||
"to get IP address for %(obj_name)s: %(obj_id).",
|
||||
"to get IP address for %(obj_name)s: %(obj_id)s.",
|
||||
{'node': task.node.uuid, 'obj_name': obj_name,
|
||||
'obj_id': p_obj.uuid})
|
||||
raise exception.FailedToGetIPAddressOnPort(port_id=p_obj.uuid)
|
||||
|
|
|
@ -977,7 +977,7 @@ class IRMCVirtualMediaBoot(base.BootInterface, IRMCVolumeBootMixIn):
|
|||
:returns: None
|
||||
"""
|
||||
if task.node.driver_internal_info.get('boot_from_volume'):
|
||||
LOG.debug('Node %(node) is configured for booting from a remote '
|
||||
LOG.debug('Node %(node)s is configured for booting from a remote '
|
||||
'volume.',
|
||||
{'node': task.node.uuid})
|
||||
self._configure_boot_from_volume(task)
|
||||
|
|
|
@ -729,6 +729,7 @@ class TaskManagerStateModelTestCases(tests_base.TestCase):
|
|||
t.shared = True
|
||||
t._purpose = 'purpose'
|
||||
t._debug_timer = mock.Mock()
|
||||
t._debug_timer.elapsed.return_value = 3.14
|
||||
|
||||
t.release_resources(t)
|
||||
self.assertIsNone(t.node)
|
||||
|
|
Loading…
Reference in New Issue