Fixed typos in nova: compute, console and conf dir

This patchset fixes the typo errors in nova the
compute, console and conf directory.
TrivialFix

Change-Id: I9c64df9739229eb9cbb8550cf7555f4f0265dcd4
This commit is contained in:
Alex Szarka
2016-07-13 10:36:17 +02:00
committed by Alex Szarka
parent d3c1ce2635
commit 777977e325
8 changed files with 16 additions and 16 deletions

View File

@@ -695,10 +695,10 @@ class API(base.Base):
return flavor_defined_bdms
def _merge_bdms_lists(self, overrideable_mappings, overrider_mappings):
def _merge_bdms_lists(self, overridable_mappings, overrider_mappings):
"""Override any block devices from the first list by device name
:param overridable_mappings: list which items are overriden
:param overridable_mappings: list which items are overridden
:param overrider_mappings: list which items override
:returns: A merged list of bdms
@@ -706,7 +706,7 @@ class API(base.Base):
device_names = set(bdm['device_name'] for bdm in overrider_mappings
if bdm['device_name'])
return (overrider_mappings +
[bdm for bdm in overrideable_mappings
[bdm for bdm in overridable_mappings
if bdm['device_name'] not in device_names])
def _check_and_transform_bdm(self, context, base_options, instance_type,

View File

@@ -392,7 +392,7 @@ class ResourceTracker(object):
return self.compute_node is None
def _init_compute_node(self, context, resources):
"""Initialise the compute node if it does not already exist.
"""Initialize the compute node if it does not already exist.
The resource tracker will be inoperable if compute_node
is not defined. The compute_node will remain undefined if
@@ -423,7 +423,7 @@ class ResourceTracker(object):
# there was no local copy and none in the database
# so we need to create a new compute node. This needs
# to be initialised with resource values.
# to be initialized with resource values.
self.compute_node = objects.ComputeNode(context)
self.compute_node.host = self.host
self._copy_resources(resources)
@@ -447,7 +447,7 @@ class ResourceTracker(object):
self.compute_node.pci_device_pools = dev_pools_obj
def _copy_resources(self, resources):
"""Copy resource values to initialise compute_node and related
"""Copy resource values to initialize compute_node and related
data structures.
"""
# purge old stats and init with anything passed in by the driver
@@ -477,7 +477,7 @@ class ResourceTracker(object):
"error: %(exc)s"),
{'mon': monitor, 'exc': exc})
# TODO(jaypipes): Remove this when compute_node.metrics doesn't need
# to be populated as a JSON-ified string.
# to be populated as a JSONified string.
metrics = metrics.to_list()
if len(metrics):
metrics_info['nodename'] = nodename
@@ -531,7 +531,7 @@ class ResourceTracker(object):
@utils.synchronized(COMPUTE_RESOURCE_SEMAPHORE)
def _update_available_resource(self, context, resources):
# initialise the compute node object, creating it
# initialize the compute node object, creating it
# if it does not already exist.
self._init_compute_node(context, resources)

View File

@@ -108,7 +108,7 @@ Possible values:
help="""
Amount of memory in MB to reserve for the host so that it is always available
to host processes. The host resources usage is reported back to the scheduler
continously from nova-compute running on the compute node. To prevent the host
continuously from nova-compute running on the compute node. To prevent the host
memory from being considered as available, this option is used to reserve
memory for the host.

View File

@@ -41,7 +41,7 @@ filesystems = cfg.ListOpt(
'sections'))
# NOTE(jbresnah) because the group under which these options are added is
# dyncamically determined these options need to stay out of global space
# dynamically determined these options need to stay out of global space
# or they will confuse generate_sample.sh
filesystem_opts = [
cfg.StrOpt('id',
@@ -78,6 +78,6 @@ def list_opts():
# list the "filesystem_opts" for the "nova.conf.sample" file here. A
# follow up patch will deprecate those. Due to their dynamic creation
# they never got shown in "nova.conf.sample" nor the config reference
# manual. I see no need to change this here with a dummy group or somehing
# manual. I see no need to change this here with a dummy group or something
# like that.
return {image_file_url_group: ALL_OPTS}

View File

@@ -394,7 +394,7 @@ and will be used as DNS servers, too.
Possible values:
A list of strings, where each string is etiher an IP address or a FQDN.
A list of strings, where each string is either an IP address or a FQDN.
* Services that use this:

View File

@@ -150,7 +150,7 @@ Interdependencies to other options:
* If ``sync_power_state_interval`` is negative and this feature is disabled,
then instances that get out of sync between the hypervisor and the Nova
database will have to be synchonized manually.
database will have to be synchronized manually.
""")
ALL_OPTS = [disable_rootwrap,

View File

@@ -44,9 +44,9 @@ class FakeConsoleProxy(object):
return 5999
def fix_pool_password(self, password):
"""Trim password to length, and any other massaging."""
"""Trim password to length, and any other messaging."""
return password
def fix_console_password(self, password):
"""Trim password to length, and any other massaging."""
"""Trim password to length, and any other messaging."""
return password

View File

@@ -31,7 +31,7 @@ SERIAL_LOCK = 'serial-lock'
CONF = nova.conf.CONF
# TODO(sahid): Add a method to initialize ALOCATED_PORTS with the
# TODO(sahid): Add a method to initialize ALLOCATED_PORTS with the
# already binded TPC port(s). (cf from danpb: list all running guests and
# query the XML in libvirt driver to find out the TCP port(s) it uses).