Skip to content

Commit d869163

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix typos"
2 parents 6f0c789 + 2521810 commit d869163

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+113
-112
lines changed

nova/block_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def get_bdm_local_disk_num(block_device_mappings):
612612

613613
def get_bdm_image_metadata(context, image_api, volume_api,
614614
block_device_mapping, legacy_bdm=True):
615-
"""Attempt to retrive image metadata from a given block_device_mapping.
615+
"""Attempt to retrieve image metadata from a given block_device_mapping.
616616
617617
If we are booting from a volume, we need to get the volume details from
618618
Cinder and make sure we pass the metadata back accordingly.

nova/compute/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8782,7 +8782,7 @@ def _live_migration_cleanup_flags(self, migrate_data, migr_ctxt=None):
87828782
# must be deleted for preparing next block migration
87838783
# must be deleted for preparing next live migration w/o shared
87848784
# storage
8785-
# vpmem must be cleanped
8785+
# vpmem must be cleaned
87868786
do_cleanup = not migrate_data.is_shared_instance_path or has_vpmem
87878787
destroy_disks = not migrate_data.is_shared_block_storage
87888788
elif isinstance(migrate_data, migrate_data_obj.HyperVLiveMigrateData):

nova/conductor/tasks/cross_cell_migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def _update_source_obj_from_target_cell(source_obj, target_obj):
11631163
setattr(source_obj, field, getattr(target_obj, field))
11641164

11651165
def _update_bdms_in_source_cell(self, source_cell_context):
1166-
"""Update BlockDeviceMapppings in the source cell database.
1166+
"""Update BlockDeviceMappings in the source cell database.
11671167
11681168
It is possible to attach/detach volumes to/from a resized instance,
11691169
which would create/delete BDM records in the target cell, so we have

nova/console/websocketproxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def __init__(self, *args, **kwargs):
305305
# ssl_options unset to default to the underlying system defaults.
306306
# We do this to avoid using websockify's behaviour for 'default'
307307
# in select_ssl_version(), which hardcodes the versions to be
308-
# quite relaxed and prevents us from using sytem crypto policies.
308+
# quite relaxed and prevents us from using system crypto policies.
309309
ssl_min_version = kwargs.pop('ssl_minimum_version', None)
310310
if ssl_min_version and ssl_min_version != 'default':
311311
kwargs['ssl_options'] = websockify.websocketproxy. \

nova/objects/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# NOTE(danms): This is our SERVICE_VERSION history. The idea is that any
3838
# time we bump the version, we will put an entry here to record the change,
39-
# along with any pertinent data. For things that we can programatically
39+
# along with any pertinent data. For things that we can programmatically
4040
# detect that need a bump, we put something in _collect_things() below to
4141
# assemble a dict of things we can check. For example, we pretty much always
4242
# want to consider the compute RPC API version a thing that requires a service

nova/tests/fixtures/nova.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ class AvailabilityZoneFixture(fixtures.Fixture):
14551455
``get_availability_zones``.
14561456
14571457
``get_instance_availability_zone`` will return the availability_zone
1458-
requested when creating a server otherwise the instance.availabilty_zone
1458+
requested when creating a server otherwise the instance.availability_zone
14591459
or default_availability_zone is returned.
14601460
"""
14611461

nova/tests/fixtures/policy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def set_rules(self, rules, overwrite=True):
6565
def add_missing_default_rules(self, rules):
6666
"""Adds default rules and their values to the given rules dict.
6767
68-
The given rulen dict may have an incomplete set of policy rules.
68+
The given rules dict may have an incomplete set of policy rules.
6969
This method will add the default policy rules and their values to
7070
the dict. It will not override the existing rules.
7171
"""
@@ -141,7 +141,7 @@ class OverridePolicyFixture(RealPolicyFixture):
141141
not used. One example is when policy rules are deprecated. In that case
142142
tests can use this fixture and verify if deprecated rules are overridden
143143
then does nova code enforce the overridden rules not only defaults.
144-
As per oslo.policy deprecattion feature, if deprecated rule is overridden
144+
As per oslo.policy deprecation feature, if deprecated rule is overridden
145145
in policy file then, overridden check is used to verify the policy.
146146
Example of usage:
147147

nova/tests/functional/db/test_compute_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def test_migrate_none_or_zero_ratio_with_none_ratio_conf(self):
267267
self.assertEqual(res, (1, 1))
268268

269269
# the ratio is refreshed to CONF.initial_xxx_allocation_ratio
270-
# beacause CONF.xxx_allocation_ratio is None
270+
# because CONF.xxx_allocation_ratio is None
271271
cns = db.compute_node_get_all(self.context)
272272
# the ratio is refreshed to CONF.xxx_allocation_ratio
273273
for cn in cns:

nova/tests/functional/libvirt/test_numa_servers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def test_resize_vcpu_to_pcpu(self):
731731
for host, compute_rp_uuid in self.compute_rp_uuids.items():
732732
if host == original_host:
733733
# the host that had the instance should no longer have
734-
# alocations since the resize has been confirmed
734+
# allocations since the resize has been confirmed
735735
expected_usage = {'VCPU': 0, 'PCPU': 0, 'DISK_GB': 0,
736736
'MEMORY_MB': 0}
737737
else:

nova/tests/functional/libvirt/test_pci_sriov_servers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def test_shelve(self):
994994
def test_suspend(self):
995995
self._test_common(self._suspend_server)
996996

997-
def test_evacute(self):
997+
def test_evacuate(self):
998998
self._test_common(self._evacuate_server)
999999

10001000
def test_resize(self):
@@ -1303,7 +1303,7 @@ def _test_policy(self, pci_numa_node, status, policy):
13031303
num_pci=1, numa_node=pci_numa_node)
13041304
self.start_compute(pci_info=pci_info)
13051305

1306-
# request cpu pinning to create a numa toplogy and allow the test to
1306+
# request cpu pinning to create a numa topology and allow the test to
13071307
# force which numa node the vm would have to be pinned too.
13081308
extra_spec = {
13091309
'hw:cpu_policy': 'dedicated',
@@ -1514,7 +1514,7 @@ def _test_policy(self, pci_numa_node, status, policy):
15141514
num_pfs=1, num_vfs=2, numa_node=pci_numa_node)
15151515
self.start_compute(pci_info=pci_info)
15161516

1517-
# request cpu pinning to create a numa toplogy and allow the test to
1517+
# request cpu pinning to create a numa topology and allow the test to
15181518
# force which numa node the vm would have to be pinned too.
15191519
extra_spec = {
15201520
'hw:cpu_policy': 'dedicated',

0 commit comments

Comments
 (0)