cinder.scheduler.host_manager.HostManager doesn't have get_host_list()
and get_service_capabilities(). But we don't catch the AttributeError
by them. Therefore, get_host_list() and get_service_capabilities() in
cinder.scheduler.driver.Scheduler have not been used.
Also, get_host_list() and get_service_capabilities() in
cinder.scheduler.manager.SchedulerManager have not been used.
Change-Id: I402cf068612866649cc8645391eff38fca56f634
Closes-Bug: #
1236723
CONF.scheduler_host_manager)
self.volume_rpcapi = volume_rpcapi.VolumeAPI()
- def get_host_list(self):
- """Get a list of hosts from the HostManager."""
- return self.host_manager.get_host_list()
-
- def get_service_capabilities(self):
- """Get the normalized set of capabilities for the services.
- """
- return self.host_manager.get_service_capabilities()
-
def update_service_capabilities(self, service_name, host, capabilities):
"""Process a capability update from a service node."""
self.host_manager.update_service_capabilities(service_name,
ctxt = context.get_admin_context()
self.request_service_capabilities(ctxt)
- def get_host_list(self, context):
- """Get a list of hosts from the HostManager."""
- return self.driver.get_host_list()
-
- def get_service_capabilities(self, context):
- """Get the normalized set of capabilities for this zone."""
- return self.driver.get_service_capabilities()
-
def update_service_capabilities(self, context, service_name=None,
host=None, capabilities=None, **kwargs):
"""Process a capability update from a service node."""