Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad Num comprehension TupleStore NameStore NameStore NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
A Solver scheduler that can be used to solve the nova compute scheduling
problem with complex constraints, and can be used to optimize on certain
cost metrics. The solution is designed to work with pluggable solvers.
A default solver implementation that uses PULP is included.
 oslo_config cfg oslo_log log logging oslo_utils importutils nova.scheduler filter_scheduler nova.scheduler weights N/A CONF N/A cfg CONF N/A LOG N/A N/A logging getLogger __name__ N/A solver_opts N/A N/A N/A cfg StrOpt scheduler_host_solver default nova_solverscheduler.scheduler.solvers.fast_solver.FastSolver help The pluggable solver implementation to use. By default, use the FastSolver. N/A N/A N/A CONF register_opts solver_opts group solver_scheduler ConstraintSolverScheduler N/A N/A filter_scheduler FilterScheduler N/A N/A Scheduler that picks hosts using a Constraint Solver
       based problem solving for constraint satisfaction
       and optimization.
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super ConstraintSolverScheduler self __init__ args kwargs N/A N/A self hosts_solver N/A N/A importutils import_object N/A N/A CONF solver_scheduler scheduler_host_solver N/A _schedule N/A N/A self context request_spec filter_properties N/A N/A N/A Returns a list of hosts that meet the required specs,
        ordered by their fitness.
         N/A instance_type N/A N/A request_spec get instance_type None N/A instance_uuids N/A N/A request_spec get instance_uuids None N/A config_options N/A N/A self _get_configuration_options N/A instance_uuids N/A N/A num_instances N/A len instance_uuids N/A N/A num_instances N/A N/A request_spec get num_instances 1 N/A solver_cache N/A N/A N/A N/A filter_properties update N/A context request_spec config_options instance_type num_instances instance_uuids solver_cache context request_spec config_options instance_type num_instances instance_uuids solver_cache N/A N/A N/A self populate_filter_properties request_spec filter_properties N/A selected_hosts N/A N/A self _get_selected_hosts context filter_properties N/A N/A N/A filter_properties pop solver_cache N/A selected_hosts N/A _get_selected_hosts N/A N/A self context filter_properties N/A N/A N/A Returns the list of hosts that meet the required specs for
        each instance in the list of instance_uuids.
         Here each instance in instance_uuids have the same requirement
         as specified by request_spec.
         N/A elevated N/A N/A context elevated N/A hosts N/A N/A self _get_all_host_states elevated N/A selected_hosts N/A N/A hosts N/A N/A N/A self host_manager get_hosts_stripping_ignored_and_forced hosts filter_properties N/A list_hosts N/A list hosts N/A N/A N/A LOG debug host state list: %(hoststates)s N/A hoststates list_hosts N/A N/A N/A LOG debug filter properties given to solver: %(prop)s N/A prop filter_properties N/A host_instance_combinations N/A N/A N/A self hosts_solver solve list_hosts filter_properties N/A N/A N/A LOG debug solver results: %(host_instance_tuples_list)s N/A host_instance_tuples_list host_instance_combinations N/A selected_hosts N/A N/A N/A weights WeighedHost host 1 N/A N/A host instance host_instance_combinations N/A selected_hosts N/A N/A