Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr ListLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Chance (Random) Scheduler implementation
 N/A random oslo_config cfg nova exception nova.i18n _ nova.scheduler driver N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt compute_topic nova.compute.rpcapi ChanceScheduler N/A N/A driver Scheduler N/A N/A Implements Scheduler as a random node selector. _filter_hosts N/A N/A self hosts spec_obj N/A N/A N/A Filter a list of hosts based on RequestSpec. N/A ignore_hosts N/A N/A spec_obj ignore_hosts N/A N/A hosts N/A host N/A host hosts N/A host ignore_hosts N/A hosts N/A _schedule N/A N/A self context topic spec_obj N/A N/A N/A Picks a host that is up at random. N/A elevated N/A N/A context elevated N/A hosts N/A N/A self hosts_up elevated topic N/A N/A hosts N/A N/A msg N/A _ Is the appropriate service running? N/A N/A N/A exception NoValidHost reason msg N/A hosts N/A N/A self _filter_hosts hosts spec_obj N/A N/A hosts N/A N/A msg N/A _ Could not find another compute N/A N/A N/A exception NoValidHost reason msg N/A N/A N/A random choice hosts N/A select_destinations N/A N/A self context spec_obj N/A N/A N/A Selects random destinations. N/A num_instances N/A spec_obj num_instances N/A dests N/A N/A i N/A range num_instances N/A N/A host N/A N/A self _schedule context N/A CONF compute_topic spec_obj N/A host_state N/A dict host host nodename None limits None N/A N/A N/A dests append host_state N/A N/A N/A len dests num_instances N/A N/A reason N/A _ There are not enough hosts available. N/A N/A N/A exception NoValidHost reason reason N/A dests N/A N/A