Fix spelling typos

Fixes for:
* nova/*py
* nova/scheduler/
* nova/compute/*py
* nova/api/ec2/

Change-Id: I7bec89b3551eda84d596e55eeba9ccb9d944a5cb
This commit is contained in:
Joe Gordon 2012-08-16 15:07:19 -05:00
parent 7819a052ff
commit c487197138
8 changed files with 11 additions and 11 deletions

View File

@ -110,7 +110,7 @@ def send_update_with_states(context, instance, old_vm_state, new_vm_state,
if verify_states:
# check whether we need to send notification related to state changes
fire_update = False
# do not send notification if the confitions for vm and(or) task state
# do not send notification if the conditions for vm and(or) task state
# are not satisfied
if old_vm_state != new_vm_state:
# yes, the vm state is changing:
@ -122,7 +122,7 @@ def send_update_with_states(context, instance, old_vm_state, new_vm_state,
fire_update = True
if fire_update:
# send either a state change or a regular notificaion
# send either a state change or a regular notification
try:
_send_instance_update_notification(context, instance,
old_vm_state=old_vm_state, old_task_state=old_task_state,

View File

@ -296,7 +296,7 @@ class Scheduler(object):
def _live_migration_common_check(self, context, instance_ref, dest):
"""Live migration common check routine.
Below checkings are followed by
The following checks are based on
http://wiki.libvirt.org/page/TodoPreMigrationChecks
:param context: security context
@ -313,7 +313,7 @@ class Scheduler(object):
if orig_hypervisor != dest_hypervisor:
raise exception.InvalidHypervisorType()
# Checkng hypervisor version.
# Checking hypervisor version.
orig_hypervisor = oservice_ref['hypervisor_version']
dest_hypervisor = dservice_ref['hypervisor_version']
if orig_hypervisor > dest_hypervisor:
@ -334,7 +334,7 @@ class Scheduler(object):
# Getting total used memory and disk of host
# It should be sum of memories that are assigned as max value,
# because overcommiting is risky.
# because overcommitting is risky.
instance_refs = db.instance_get_all_by_host(context, dest)
used = sum([i['memory_mb'] for i in instance_refs])

View File

@ -217,7 +217,7 @@ class FilterScheduler(driver.Scheduler):
return inst
def _add_retry_host(self, filter_properties, host):
"""Add a retry entry for the selected computep host. In the event that
"""Add a retry entry for the selected compute host. In the event that
the request gets re-scheduled, this entry will signal that the given
host has already been tried.
"""

View File

@ -18,7 +18,7 @@ from nova.scheduler import filters
class AllHostsFilter(filters.BaseHostFilter):
"""NOP host filter. Returns all hosts."""
"""NOOP host filter. Returns all hosts."""
def host_passes(self, host_state, filter_properties):
return True

View File

@ -174,7 +174,7 @@ class HostState(object):
class HostManager(object):
"""Base HostManager class."""
# Can be overriden in a subclass
# Can be overridden in a subclass
host_state_cls = HostState
def __init__(self):

View File

@ -128,7 +128,7 @@ class SchedulerManager(manager.Manager):
reservations)
return result
except exception.NoValidHost as ex:
# don't reraise
# don't re-raise
self._set_vm_state_and_notify('run_instance',
{'vm_state': vm_states.ERROR},
context, ex, request_spec)

View File

@ -221,7 +221,7 @@ class TestCase(unittest.TestCase):
error = abs(float(d1value) - float(d2value))
within_tolerance = error <= tolerance
except (ValueError, TypeError):
# If both values aren't convertable to float, just ignore
# If both values aren't convertible to float, just ignore
# ValueError if arg is a str, TypeError if it's something else
# (like None)
within_tolerance = False

View File

@ -628,7 +628,7 @@ class _InterProcessLock(object):
self.unlock()
self.lockfile.close()
except IOError:
LOG.exception(_("Could not release the aquired lock `%s`")
LOG.exception(_("Could not release the acquired lock `%s`")
% self.fname)
def trylock(self):