Scheduler Service
Bases: CleanableManager
, Manager
Chooses a host to create volumes.
Create snapshot for a volume.
The main purpose of this method is to check if target backend (of volume and snapshot) has sufficient capacity to host to-be-created snapshot.
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.
A hook for service to do jobs after RPC is ready.
Like init_host(), this method is a hook where services get a chance to execute tasks that need RPC. Child classes should override this method.
Ensure that the host exists and can accept the volume.
Ensure that the host exists and can accept the snapshot.
Ensure that the backend exists and can accept the volume.
Process a capability update from a service node.
Method executed when SIGHUP is caught by the process.
We’re utilizing it to reset RPC API version pins to avoid restart of the service when rolling upgrade is completed.
Schedule the modification of a volume’s type.
context – the request context
volume – the volume object to retype
request_spec – parameters for this retype request
filter_properties – parameters to filter by
Process a capability update from a service node.
Process request from API to do cleanup on services.
Here we retrieve from the DB which services we want to clean up based on the request from the user.
Then send individual cleanup requests to each of the services that are up, and we finally return a tuple with services that we have sent a cleanup request and those that were not up and we couldn’t send it.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.