Utility methods for scheduling.
Bases: tuple
GroupDetails(hosts, policies)
Alias for field number 0
Alias for field number 1
Build a request_spec for the scheduler.
The request_spec assumes that all instances to be scheduled are the same type.
Parse a list of options, each in the format of <key><sep><value>. Also use the converter to convert the value into desired type.
Params opts: | list of options, e.g. from oslo_config.cfg.ListOpt |
---|---|
Params sep: | the separator |
Params converter: | |
callable object to convert the value, should raise ValueError for conversion failure | |
Params name: | name of the option |
Returns: | a lists of tuple of values (key, converted_value) |
Add additional information to the filter properties after a node has been selected by the scheduling process.
Retry the call in case a MessagingTimeout is raised.
A decorator for retrying calls when a service dies mid-request.
Parameters: | retries – Number of retries |
---|---|
Returns: | Decorator |
changes VM state and notifies.
Add group_hosts and group_policies fields to filter_properties dict based on instance uuids provided in request_spec, if those instances are belonging to a group.
Parameters: |
|
---|
Validates that the filter is configured in the default filters.