Fixes several misc typos in scheduler code
Change-Id: Id7d86e3be34b650a63679ba086abcb13dfac2eb8 Closes-bug: #1234902
This commit is contained in:
parent
18bfe4993d
commit
721709a9d1
|
@ -141,7 +141,7 @@ class Scheduler(object):
|
|||
"""Must override select_destinations method.
|
||||
|
||||
:return: A list of dicts with 'host', 'nodename' and 'limits' as keys
|
||||
that satisifies the request_spec and filter_properties.
|
||||
that satisfies the request_spec and filter_properties.
|
||||
"""
|
||||
msg = _("Driver must implement select_destinations")
|
||||
raise NotImplementedError(msg)
|
||||
|
|
|
@ -227,7 +227,7 @@ class FilterScheduler(driver.Scheduler):
|
|||
"""
|
||||
exc = retry.pop('exc', None) # string-ified exception from compute
|
||||
if not exc:
|
||||
return # no exception info from a prevous attempt, skip
|
||||
return # no exception info from a previous attempt, skip
|
||||
|
||||
hosts = retry.get('hosts', None)
|
||||
if not hosts:
|
||||
|
|
|
@ -24,7 +24,7 @@ LOG = logging.getLogger(__name__)
|
|||
class AggregateMultiTenancyIsolation(filters.BaseHostFilter):
|
||||
"""Isolate tenants in specific aggregates."""
|
||||
|
||||
# Aggreagte data and tenant do not change within a request
|
||||
# Aggregate data and tenant do not change within a request
|
||||
run_filter_once_per_request = True
|
||||
|
||||
def host_passes(self, host_state, filter_properties):
|
||||
|
|
|
@ -30,7 +30,7 @@ class AvailabilityZoneFilter(filters.BaseHostFilter):
|
|||
Note: in theory a compute node can be part of multiple availability_zones
|
||||
"""
|
||||
|
||||
# Availabilty zones do not change within a request
|
||||
# Availability zones do not change within a request
|
||||
run_filter_once_per_request = True
|
||||
|
||||
def host_passes(self, host_state, filter_properties):
|
||||
|
|
|
@ -21,7 +21,7 @@ from nova.scheduler import filters
|
|||
class PciPassthroughFilter(filters.BaseHostFilter):
|
||||
"""Pci Passthrough Filter based on PCI request
|
||||
|
||||
Filter that schedules tasks on a host if the host has devices
|
||||
Filter that schedules instances on a host if the host has devices
|
||||
to meet the device requests in the 'extra_specs' for the flavor.
|
||||
|
||||
PCI resource tracker provides updated summary information about the
|
||||
|
@ -31,7 +31,7 @@ class PciPassthroughFilter(filters.BaseHostFilter):
|
|||
and VM requests PCI devices via PCI requests, like:
|
||||
[{"count": 1, "vendor_id": "8086", "product_id": "1520",}].
|
||||
|
||||
The filter checkes if the host passes or not based on these information.
|
||||
The filter checks if the host passes or not based on this information.
|
||||
"""
|
||||
|
||||
def host_passes(self, host_state, filter_properties):
|
||||
|
|
|
@ -70,7 +70,7 @@ class SchedulerAPI(rpcclient.RpcProxy):
|
|||
2.7 - Add select_destinations()
|
||||
2.8 - Deprecate prep_resize() -- JUST KIDDING. It is still used
|
||||
by the compute manager for retries.
|
||||
2.9 - Added the leagacy_bdm_in_spec parameter to run_instance()
|
||||
2.9 - Added the legacy_bdm_in_spec parameter to run_instance()
|
||||
2.10 - Deprecated live_migration() call, moved to conductor
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue