Fix misspellings in nova
Fix misspellings detected by: * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: I4e60889368b5e83275d59562613623c417a8e03f Closes-Bug: #1257295
This commit is contained in:
parent
619dc06c44
commit
39870b603d
@ -35,7 +35,7 @@ Virtual environments
|
||||
--------------------
|
||||
|
||||
Nova development uses a set of shell scripts in DevStack. Virtual
|
||||
enviroments with venv are also available with the source code.
|
||||
environments with venv are also available with the source code.
|
||||
|
||||
The easiest way to build a fully functional development environment is
|
||||
with DevStack. Create a machine (such as a VM or Vagrant box) running a
|
||||
|
@ -176,7 +176,7 @@
|
||||
x="4" dy="1.2em" class="st3">Network<v:newlineChar/></tspan><tspan x="4" dy="1.2em" class="st3">VPN</tspan></text> </g>
|
||||
<g id="shape16-56" v:mID="16" v:groupContext="shape" transform="translate(14.4132,-30.9923)">
|
||||
<title>Sheet.16</title>
|
||||
<desc>VM instance Security group Volume Snapshot VM image IP addres...</desc>
|
||||
<desc>VM instance Security group Volume Snapshot VM image IP address...</desc>
|
||||
<v:textBlock v:margins="rect(4,4,4,4)" v:tabSpace="42.5197"/>
|
||||
<v:textRect cx="42.5197" cy="340.209" width="85.04" height="34.0157"/>
|
||||
<rect x="0" y="323.201" width="85.0394" height="34.0157" class="st9"/>
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
@ -480,7 +480,7 @@ def ec2_error_ex(ex, req, code=None, message=None, unexpected=False):
|
||||
status codes are always returned for them.
|
||||
|
||||
Unexpected 5xx errors may contain sensitive information,
|
||||
supress their messages for security.
|
||||
suppress their messages for security.
|
||||
"""
|
||||
if not code:
|
||||
code = exception_to_ec2code(ex)
|
||||
|
@ -57,7 +57,7 @@ def _make_interface_elem(elem):
|
||||
|
||||
|
||||
def is_valid_mac(address):
|
||||
"""Verify the format of a MAC addres."""
|
||||
"""Verify the format of a MAC address."""
|
||||
|
||||
class mac_dialect(netaddr.mac_eui48):
|
||||
word_fmt = '%.02x'
|
||||
|
@ -2470,7 +2470,7 @@ class ComputeManager(manager.Manager):
|
||||
instance.save(
|
||||
expected_task_state=task_states.IMAGE_SNAPSHOT_PENDING)
|
||||
except exception.InstanceNotFound:
|
||||
# possiblity instance no longer exists, no point in continuing
|
||||
# possibility instance no longer exists, no point in continuing
|
||||
LOG.debug(_("Instance not found, could not set state %s "
|
||||
"for instance."),
|
||||
task_states.IMAGE_SNAPSHOT, instance=instance)
|
||||
|
@ -5591,7 +5591,7 @@ def archive_deleted_rows_for_table(context, tablename, max_rows):
|
||||
column = table.c.id
|
||||
column_name = "id"
|
||||
# NOTE(guochbo): Use InsertFromSelect and DeleteFromSelect to avoid
|
||||
# database's limit of maximum parameter in one SQL statment.
|
||||
# database's limit of maximum parameter in one SQL statement.
|
||||
query_insert = select([table],
|
||||
table.c.deleted != default_deleted_value).\
|
||||
order_by(column).limit(max_rows)
|
||||
|
@ -194,7 +194,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase):
|
||||
|
||||
Note: the Nova security group API doesn't support adding muliple
|
||||
security group rules at once but the EC2 one does. Therefore,
|
||||
this function is writen to support both. Multiple rules are
|
||||
this function is written to support both. Multiple rules are
|
||||
installed to a security group in neutron using bulk support.
|
||||
"""
|
||||
|
||||
@ -308,7 +308,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase):
|
||||
return ports
|
||||
|
||||
def _get_secgroups_from_port_list(self, ports, neutron):
|
||||
"""Returns a dict of security groups keyed by thier ids."""
|
||||
"""Returns a dict of security groups keyed by their ids."""
|
||||
|
||||
def _chunk_by_ids(sg_ids, limit):
|
||||
sg_id_list = []
|
||||
|
@ -301,7 +301,7 @@ class AggregateTestCase(test.NoDBTestCase):
|
||||
self.stubs.Set(self.controller.api, "add_host_to_aggregate",
|
||||
stub_add_host_to_aggregate)
|
||||
#NOTE(mtreinish) The check for a KeyError here is to ensure that
|
||||
# if add_host_to_aggregate() raises a KeyError it propogates. At
|
||||
# if add_host_to_aggregate() raises a KeyError it propagates. At
|
||||
# one point the api code would mask the error as a HTTPBadRequest.
|
||||
# This test is to ensure that this doesn't occur again.
|
||||
self.assertRaises(KeyError, self.controller.action, self.req, "1",
|
||||
|
@ -38,7 +38,7 @@ FAKE_FLAVORS = {
|
||||
}
|
||||
|
||||
|
||||
#TOD(jogo) dedup these accross nova.api.openstack.contrib.test_flavor*
|
||||
#TOD(jogo) dedup these across nova.api.openstack.contrib.test_flavor*
|
||||
def fake_flavor_get_by_flavor_id(flavorid, ctxt=None):
|
||||
return FAKE_FLAVORS['flavor %s' % flavorid]
|
||||
|
||||
|
@ -318,9 +318,9 @@ class FloatingIpTest(test.TestCase):
|
||||
|
||||
req = fakes.HTTPRequest.blank('/v2/fake/os-floating-ips')
|
||||
ex = self.assertRaises(webob.exc.HTTPNotFound,
|
||||
self.controller.create, req, {'pool': 'non_existant_pool'})
|
||||
self.controller.create, req, {'pool': 'non_existent_pool'})
|
||||
|
||||
self.assertIn('No more floating ips in pool non_existant_pool',
|
||||
self.assertIn('No more floating ips in pool non_existent_pool',
|
||||
ex.explanation)
|
||||
|
||||
def test_floating_ip_allocate(self):
|
||||
|
@ -381,7 +381,7 @@ class HostSerializerTest(test.TestCase):
|
||||
for key, value in exemplar.items():
|
||||
self.assertEqual(value, tree.get(key))
|
||||
|
||||
def test_update_serializer_with_maintainance_mode(self):
|
||||
def test_update_serializer_with_maintenance_mode(self):
|
||||
exemplar = dict(host='host_c1', maintenance_mode='enabled')
|
||||
serializer = os_hosts.HostUpdateTemplate()
|
||||
text = serializer.serialize(exemplar)
|
||||
@ -392,7 +392,7 @@ class HostSerializerTest(test.TestCase):
|
||||
for key, value in exemplar.items():
|
||||
self.assertEqual(value, tree.get(key))
|
||||
|
||||
def test_update_serializer_with_maintainance_mode_and_status(self):
|
||||
def test_update_serializer_with_maintenance_mode_and_status(self):
|
||||
exemplar = dict(host='host_c1',
|
||||
maintenance_mode='enabled',
|
||||
status='enabled')
|
||||
|
@ -133,7 +133,7 @@ class ConsoleOutputExtensionTest(test.NoDBTestCase):
|
||||
res = req.get_response(self.app)
|
||||
self.assertEqual(res.status_int, 409)
|
||||
|
||||
def test_get_console_output_with_lenght_as_float(self):
|
||||
def test_get_console_output_with_length_as_float(self):
|
||||
req = self._create_request(length_dict={'length': 2.5})
|
||||
res = req.get_response(self.app)
|
||||
self.assertEqual(res.status_int, 400)
|
||||
|
@ -3591,7 +3591,7 @@ class ComputeTestCase(BaseTestCase):
|
||||
self.mox.ReplayAll()
|
||||
return reservations
|
||||
|
||||
def test_quotas_succesful_delete(self):
|
||||
def test_quotas_successful_delete(self):
|
||||
instance = jsonutils.to_primitive(self._create_fake_instance())
|
||||
resvs = self._ensure_quota_reservations_committed(True, True)
|
||||
self.compute.terminate_instance(self.context,
|
||||
@ -3612,7 +3612,7 @@ class ComputeTestCase(BaseTestCase):
|
||||
self.context, self._objectify(instance),
|
||||
bdms=[], reservations=resvs)
|
||||
|
||||
def test_quotas_succesful_soft_delete(self):
|
||||
def test_quotas_successful_soft_delete(self):
|
||||
instance = self._objectify(self._create_fake_instance(
|
||||
params=dict(task_state=task_states.SOFT_DELETING)))
|
||||
resvs = self._ensure_quota_reservations_committed(True, True)
|
||||
|
@ -728,7 +728,7 @@ class TestBaremetalMigrations(BaseWalkMigrationTestCase, CommonTestsMixIn):
|
||||
def _pre_upgrade_006(self, engine):
|
||||
nodes = db_utils.get_table(engine, 'bm_nodes')
|
||||
ifs = db_utils.get_table(engine, 'bm_interfaces')
|
||||
# node 1 has two diffrent addresses in bm_nodes and bm_interfaces
|
||||
# node 1 has two different addresses in bm_nodes and bm_interfaces
|
||||
engine.execute(nodes.insert(),
|
||||
[{'id': 1,
|
||||
'prov_mac_address': 'aa:aa:aa:aa:aa:aa'}])
|
||||
|
@ -208,7 +208,7 @@ class SchedulerUtilsTestCase(test.NoDBTestCase):
|
||||
'=',
|
||||
float,
|
||||
[('bar', -2.1)])
|
||||
# check seperator missing
|
||||
# check separator missing
|
||||
self._check_parse_options(['foo', 'bar=-2.1'],
|
||||
'=',
|
||||
float,
|
||||
|
@ -84,9 +84,9 @@ class NovaExceptionTestCase(test.NoDBTestCase):
|
||||
|
||||
def test_error_msg_exception_with_kwargs(self):
|
||||
class FakeNovaException(exception.NovaException):
|
||||
msg_fmt = "default message: %(mispelled_code)s"
|
||||
msg_fmt = "default message: %(misspelled_code)s"
|
||||
|
||||
exc = FakeNovaException(code=500, mispelled_code='blah')
|
||||
exc = FakeNovaException(code=500, misspelled_code='blah')
|
||||
self.assertEqual(unicode(exc), 'default message: blah')
|
||||
self.assertEqual(exc.message, 'default message: blah')
|
||||
|
||||
|
@ -125,7 +125,7 @@ def resize2fs(image, check_exit_code=False, run_as_root=False):
|
||||
check_exit_code=[0, 1, 2],
|
||||
run_as_root=run_as_root)
|
||||
except processutils.ProcessExecutionError as exc:
|
||||
LOG.debug(_("Checking the file sytem with e2fsck has failed, "
|
||||
LOG.debug(_("Checking the file system with e2fsck has failed, "
|
||||
"the resize will be aborted. (%s)"), exc)
|
||||
else:
|
||||
utils.execute('resize2fs',
|
||||
|
@ -16,7 +16,7 @@
|
||||
Asynchronous event notifications from virtualization drivers.
|
||||
|
||||
This module defines a set of classes representing data for
|
||||
various asynchronous events that can occurr in a virtualization
|
||||
various asynchronous events that can occur in a virtualization
|
||||
driver.
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user