The cinder.scheduler.manager
Module¶
Scheduler Service
-
class
SchedulerManager
(scheduler_driver=None, service_name=None, *args, **kwargs)¶ Bases:
cinder.manager.Manager
Chooses a host to create volumes.
-
RPC_API_VERSION
= '2.0'¶
-
create_consistencygroup
(context, topic, group, request_spec_list=None, filter_properties_list=None)¶
-
create_volume
(context, topic, volume_id, snapshot_id=None, image_id=None, request_spec=None, filter_properties=None, volume=None)¶
-
get_pools
(context, filters=None)¶ Get active pools from scheduler’s cache.
NOTE(dulek): There’s no self._wait_for_scheduler() because get_pools is an RPC call (is blocking for the c-api). Also this is admin-only API extension so it won’t hurt the user much to retry the request manually.
-
init_host_with_rpc
()¶
-
manage_existing
(context, topic, volume_id, request_spec, filter_properties=None)¶ Ensure that the host exists and can accept the volume.
-
migrate_volume_to_host
(context, topic, volume_id, host, force_host_copy, request_spec, filter_properties=None, volume=None)¶ Ensure that the host exists and can accept the volume.
-
request_service_capabilities
(context)¶
-
reset
()¶
-
retype
(context, topic, volume_id, request_spec, filter_properties=None, volume=None)¶ Schedule the modification of a volume’s type.
Parameters: - context – the request context
- topic – the topic listened on
- volume_id – the ID of the volume to retype
- request_spec – parameters for this retype request
- filter_properties – parameters to filter by
- volume – the volume object to retype
-
target
= <Target version=2.0>¶
-
update_service_capabilities
(context, service_name=None, host=None, capabilities=None, **kwargs)¶ Process a capability update from a service node.
-