From: Edgar Magana Date: Sat, 21 Feb 2015 07:31:56 +0000 (-0800) Subject: Fix misspellings words in neutron X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7c53956d7dad80cda40c5f12568ed5d85e5b6b75;p=openstack-build%2Fneutron-build.git Fix misspellings words in neutron All misspelled words found in neutron code have been fixed Change-Id: I3872b8b08d6b8ea9c3973b32cdc9897a94b4cbbc Closes-Bug: #1424139 --- diff --git a/neutron/db/agentschedulers_db.py b/neutron/db/agentschedulers_db.py index 11728e54e..732f2d7f7 100644 --- a/neutron/db/agentschedulers_db.py +++ b/neutron/db/agentschedulers_db.py @@ -271,7 +271,7 @@ class DhcpAgentSchedulerDbMixin(dhcpagentscheduler 'agent': binding.dhcp_agent_id}) # still continue and allow concurrent scheduling attempt except Exception: - LOG.exception(_LE("Unexpected exception occured while " + LOG.exception(_LE("Unexpected exception occurred while " "removing network %(net)s from agent " "%(agent)s"), {'net': binding.network_id, diff --git a/neutron/plugins/bigswitch/db/consistency_db.py b/neutron/plugins/bigswitch/db/consistency_db.py index 3c9a492f6..55212a8c6 100644 --- a/neutron/plugins/bigswitch/db/consistency_db.py +++ b/neutron/plugins/bigswitch/db/consistency_db.py @@ -138,7 +138,7 @@ class HashHandler(object): # no current entry. try to insert to grab lock if not self._insert_empty_hash_with_lock(): # A failed insert after missing current record means - # a concurrent insert occured. Start process over to + # a concurrent insert occurred. Start process over to # find the new record. LOG.debug("Concurrent record inserted. Retrying.") time.sleep(0.25) diff --git a/neutron/plugins/ml2/drivers/arista/arista_l3_driver.py b/neutron/plugins/ml2/drivers/arista/arista_l3_driver.py index 5d9001108..a9cda5a02 100644 --- a/neutron/plugins/ml2/drivers/arista/arista_l3_driver.py +++ b/neutron/plugins/ml2/drivers/arista/arista_l3_driver.py @@ -131,16 +131,16 @@ class AristaL3Driver(object): if cfg.CONF.l3_arista.get('primary_l3_host') == '': msg = _('Required option primary_l3_host is not set') LOG.error(msg) - raise arista_exc.AristaSevicePluginConfigError(msg=msg) + raise arista_exc.AristaServicePluginConfigError(msg=msg) if cfg.CONF.l3_arista.get('mlag_config'): if cfg.CONF.l3_arista.get('secondary_l3_host') == '': msg = _('Required option secondary_l3_host is not set') LOG.error(msg) - raise arista_exc.AristaSevicePluginConfigError(msg=msg) + raise arista_exc.AristaServicePluginConfigError(msg=msg) if cfg.CONF.l3_arista.get('primary_l3_host_username') == '': msg = _('Required option primary_l3_host_username is not set') LOG.error(msg) - raise arista_exc.AristaSevicePluginConfigError(msg=msg) + raise arista_exc.AristaServicePluginConfigError(msg=msg) def create_router_on_eos(self, router_name, rdm, server): """Creates a router on Arista HW Device. diff --git a/neutron/plugins/ml2/drivers/arista/exceptions.py b/neutron/plugins/ml2/drivers/arista/exceptions.py index 73802c2f7..278ec7d4b 100644 --- a/neutron/plugins/ml2/drivers/arista/exceptions.py +++ b/neutron/plugins/ml2/drivers/arista/exceptions.py @@ -31,5 +31,5 @@ class AristaServicePluginRpcError(exceptions.NeutronException): message = _('%(msg)s') -class AristaSevicePluginConfigError(exceptions.NeutronException): +class AristaServicePluginConfigError(exceptions.NeutronException): message = _('%(msg)s') diff --git a/neutron/services/l3_router/brocade/l3_router_plugin.py b/neutron/services/l3_router/brocade/l3_router_plugin.py index b13d50a36..ba9288033 100644 --- a/neutron/services/l3_router/brocade/l3_router_plugin.py +++ b/neutron/services/l3_router/brocade/l3_router_plugin.py @@ -111,7 +111,7 @@ class BrocadeSVIPlugin(router.L3RouterPlugin): str(router['id'])) def add_router_interface(self, context, router_id, interface_info): - """creates svi on NOS device and assigns ip addres to SVI.""" + """creates svi on NOS device and assigns ip address to SVI.""" LOG.debug("BrocadeSVIPlugin.add_router_interface on VDX: " "router_id=%(router_id)s " "interface_info=%(interface_info)r", diff --git a/neutron/tests/functional/agent/test_l3_agent.py b/neutron/tests/functional/agent/test_l3_agent.py index 3dc41c38d..5217d3c2a 100755 --- a/neutron/tests/functional/agent/test_l3_agent.py +++ b/neutron/tests/functional/agent/test_l3_agent.py @@ -785,17 +785,17 @@ class TestDvrRouter(L3AgentTestFramework): external_gw_port = floating_agent_gw_port[0] fip_ns = self.agent.get_fip_ns(floating_ips[0]['floating_network_id']) fip_ns_name = fip_ns.get_name() - fg_port_created_succesfully = ip_lib.device_exists_with_ip_mac( + fg_port_created_successfully = ip_lib.device_exists_with_ip_mac( fip_ns.get_ext_device_name(external_gw_port['id']), external_gw_port['ip_cidr'], external_gw_port['mac_address'], namespace=fip_ns_name) - self.assertTrue(fg_port_created_succesfully) + self.assertTrue(fg_port_created_successfully) # Check fpr-router device has been created device_name = fip_ns.get_int_device_name(router.router_id) - fpr_router_device_created_succesfully = ip_lib.device_exists( + fpr_router_device_created_successfully = ip_lib.device_exists( device_name, namespace=fip_ns_name) - self.assertTrue(fpr_router_device_created_succesfully) + self.assertTrue(fpr_router_device_created_successfully) # In the router namespace # Check rfp- is created correctly diff --git a/neutron/tests/unit/test_basetestcase.py b/neutron/tests/unit/test_basetestcase.py index 40b5c43e0..355c2cf65 100644 --- a/neutron/tests/unit/test_basetestcase.py +++ b/neutron/tests/unit/test_basetestcase.py @@ -20,20 +20,20 @@ import sys from neutron.tests import base -class SytemExitTestCase(base.BaseTestCase): +class SystemExitTestCase(base.BaseTestCase): def setUp(self): def _fail_SystemExit(exc_info): if isinstance(exc_info[1], SystemExit): self.fail("A SystemExit was allowed out") - super(SytemExitTestCase, self).setUp() + super(SystemExitTestCase, self).setUp() # add the handler last so reaching it means the handler in BaseTestCase # didn't do it's job self.addOnException(_fail_SystemExit) def run(self, *args, **kwargs): exc = self.assertRaises(AssertionError, - super(SytemExitTestCase, self).run, + super(SystemExitTestCase, self).run, *args, **kwargs) # this message should be generated when SystemExit is raised by a test self.assertIn('A SystemExit was raised during the test.', str(exc))