Fix typos in error/log messages

This change fixes some typos in ERROR and LOG messages.

Change-Id: I4ec5b10cdd38bb8734b70d459b2afe99275cd8bd
This commit is contained in:
Rajesh Tailor 2022-06-27 21:54:59 +05:30
parent e9a479519f
commit 732c1dcbc2
5 changed files with 8 additions and 8 deletions

View File

@ -326,7 +326,7 @@ class DHCPIPv6Responder(dhcp_base.DHCPResponderBase):
pkt_dhcp = pkt.get_protocol(dhcp6.dhcp6)
dhcp_req_state = DHCPV6_TYPE_MAP.get(pkt_dhcp.msg_type)
if not dhcp_req_state:
LOG.warning("DHCP controller received DHCPv6 with unkown "
LOG.warning("DHCP controller received DHCPv6 with unknown "
"type: %s from port: %s",
pkt_dhcp.msg_type, ofport)
return

View File

@ -220,9 +220,9 @@ class DvrLocalRouter(dvr_router_base.DvrRouterBase):
self.fip_ns.deallocate_rule_priority(floating_ip)
else:
LOG.error('Floating IP %s not stored in this agent. Because of '
'the initilization method "_load_used_fip_information", '
'all floating IPs should be memoized in the local '
'memory.', floating_ip)
'the initialization method '
'"_load_used_fip_information", all floating IPs should '
'be memoized in the local memory.', floating_ip)
def floating_ip_removed_dist(self, fip_cidr):
"""Remove floating IP from FIP namespace."""

View File

@ -116,7 +116,7 @@ def update_network_mtu():
network.provider_network_type])
conn.network.set_tags(network, new_tags)
except Exception as e:
print("Exception occured while updating the MTU:" + str(e))
print("Exception occurred while updating the MTU:" + str(e))
return False
return True

View File

@ -363,7 +363,7 @@ class RootHelperProcess(subprocess.Popen):
pass
msg = ("Process %(cmd)s hasn't been spawned in %(seconds)d "
"seconds. Return code: %(ret_code)s, stdout: %(stdout)s, "
"sdterr: %(stderr)s" %
"stderr: %(stderr)s" %
{'cmd': self.cmd, 'seconds': timeout,
'ret_code': self.returncode, 'stdout': stdout,
'stderr': stderr})
@ -568,7 +568,7 @@ class NetcatTester(object):
self.server_process.writeline(message)
message = self.client_process.read_stdout(READ_TIMEOUT).strip()
except ConnectionError as e:
LOG.debug("Error: %s occured during connectivity test.", e)
LOG.debug("Error: %s occurred during connectivity test.", e)
message = ""
return message == testing_string

View File

@ -812,7 +812,7 @@ class IpMonitorTestCase(testscenarios.WithScenarios,
'name': self.devices[4]}]
self._check_read_file(ip_addresses)
def test_interface_added_after_initilization(self):
def test_interface_added_after_initialization(self):
for device in self.devices[:len(self.devices) - 1]:
self.ip_wrapper.add_dummy(device)
utils.wait_until_true(lambda: self._read_file({}), timeout=30)