Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Return ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str ListLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str ListLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str Str Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Return ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str ListLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str ListLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index Num attr Dict NameLoad NameLoad Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Str Str Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Num ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Dict Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Test case for solver scheduler affinity-cost. nova context nova objects nova test nova_solverscheduler.scheduler.solvers costs nova_solverscheduler.scheduler.solvers.costs affinity_cost nova_solverscheduler.tests.scheduler solver_scheduler_fakes fakes TestAffinityCost N/A N/A test NoDBTestCase N/A N/A USES_DB True setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAffinityCost self setUp N/A N/A self context N/A N/A context RequestContext fake_usr fake_proj N/A N/A self cost_handler N/A N/A costs CostHandler N/A N/A self cost_classes N/A N/A N/A self cost_handler get_matching_classes N/A nova_solverscheduler.scheduler.solvers.costs.affinity_cost.AffinityCost N/A _get_fake_hosts N/A N/A self N/A N/A N/A host1 N/A N/A fakes FakeSolverSchedulerHostState host1 node1 N/A N/A host2 N/A N/A fakes FakeSolverSchedulerHostState host2 node2 N/A N/A host3 N/A N/A fakes FakeSolverSchedulerHostState host3 node3 N/A N/A host4 N/A N/A fakes FakeSolverSchedulerHostState host4 node4 N/A N/A N/A host1 host2 host3 host4 N/A test_affinity_cost_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags affinity_cost_multiplier 0.5 group solver_scheduler N/A N/A N/A self assertEqual 0.5 N/A N/A N/A N/A affinity_cost AffinityCost cost_multiplier N/A test_get_extended_cost_matrix_one_inst N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance N/A N/A objects Instance uuid inst1 N/A instance_uuid N/A instance uuid N/A N/A N/A fake_hosts N/A 1 instances N/A instance_uuid instance N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_same_host instance_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 1 0 -1 -2 N/A 0 -1 -2 -3 N/A 1 0 -1 -2 N/A 1 0 -1 -2 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_multi_inst N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance1 N/A N/A objects Instance uuid inst1 N/A instance2 N/A N/A objects Instance uuid inst2 N/A instance1_uuid N/A instance1 uuid N/A instance2_uuid N/A instance2 uuid N/A N/A N/A fake_hosts N/A 0 instances N/A instance1_uuid instance1 N/A N/A N/A fake_hosts N/A 2 instances N/A instance2_uuid instance2 N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_same_host N/A instance1_uuid instance2_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 -1 -2 -3 N/A 1 0 -1 -2 N/A 0 -1 -2 -3 N/A 1 0 -1 -2 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_change_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags affinity_cost_multiplier 0.5 group solver_scheduler N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance1 N/A N/A objects Instance uuid inst1 N/A instance2 N/A N/A objects Instance uuid inst2 N/A instance1_uuid N/A instance1 uuid N/A instance2_uuid N/A instance2 uuid N/A N/A N/A fake_hosts N/A 0 instances N/A instance1_uuid instance1 N/A N/A N/A fake_hosts N/A 2 instances N/A instance2_uuid instance2 N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_same_host N/A instance1_uuid instance2_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 -2 -4 -6 N/A 1 -1 -3 -5 N/A 0 -2 -4 -6 N/A 1 -1 -3 -5 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_zero_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags affinity_cost_multiplier 0 group solver_scheduler N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance N/A N/A objects Instance uuid inst1 N/A instance_uuid N/A instance uuid N/A N/A N/A fake_hosts N/A 1 instances N/A instance_uuid instance N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_same_host instance_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_no_instance_list N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_same_host N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 -1 -2 -3 N/A 0 -1 -2 -3 N/A 0 -1 -2 -3 N/A 0 -1 -2 -3 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_no_hint N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A N/A TestAntiAffinityCost N/A N/A test NoDBTestCase N/A N/A USES_DB True setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAntiAffinityCost self setUp N/A N/A self context N/A N/A context RequestContext fake_usr fake_proj N/A N/A self cost_handler N/A N/A costs CostHandler N/A N/A self cost_classes N/A N/A N/A self cost_handler get_matching_classes N/A nova_solverscheduler.scheduler.solvers.costs.affinity_cost.AntiAffinityCost N/A _get_fake_hosts N/A N/A self N/A N/A N/A host1 N/A N/A fakes FakeSolverSchedulerHostState host1 node1 N/A N/A host2 N/A N/A fakes FakeSolverSchedulerHostState host2 node2 N/A N/A host3 N/A N/A fakes FakeSolverSchedulerHostState host3 node3 N/A N/A host4 N/A N/A fakes FakeSolverSchedulerHostState host4 node4 N/A N/A N/A host1 host2 host3 host4 N/A test_anti_affinity_cost_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags anti_affinity_cost_multiplier 2 group solver_scheduler N/A N/A N/A self assertEqual 2 N/A N/A N/A N/A affinity_cost AntiAffinityCost cost_multiplier N/A test_get_extended_cost_matrix_one_inst N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance N/A N/A objects Instance uuid inst1 N/A instance_uuid N/A instance uuid N/A N/A N/A fake_hosts N/A 1 instances N/A instance_uuid instance N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_different_host instance_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 1 2 3 N/A 1 2 3 4 N/A 0 1 2 3 N/A 0 1 2 3 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_multi_inst N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance1 N/A N/A objects Instance uuid inst1 N/A instance2 N/A N/A objects Instance uuid inst2 N/A instance1_uuid N/A instance1 uuid N/A instance2_uuid N/A instance2 uuid N/A N/A N/A fake_hosts N/A 0 instances N/A instance1_uuid instance1 N/A N/A N/A fake_hosts N/A 2 instances N/A instance2_uuid instance2 N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_different_host N/A instance1_uuid instance2_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 1 2 3 4 N/A 0 1 2 3 N/A 1 2 3 4 N/A 0 1 2 3 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_change_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags anti_affinity_cost_multiplier 0.5 group solver_scheduler N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance1 N/A N/A objects Instance uuid inst1 N/A instance2 N/A N/A objects Instance uuid inst2 N/A instance1_uuid N/A instance1 uuid N/A instance2_uuid N/A instance2 uuid N/A N/A N/A fake_hosts N/A 0 instances N/A instance1_uuid instance1 N/A N/A N/A fake_hosts N/A 2 instances N/A instance2_uuid instance2 N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_different_host N/A instance1_uuid instance2_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 1 3 5 7 N/A 0 2 4 6 N/A 1 3 5 7 N/A 0 2 4 6 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_zero_multiplier N/A N/A self N/A N/A N/A N/A N/A self flags anti_affinity_cost_multiplier 0 group solver_scheduler N/A fake_hosts N/A N/A self _get_fake_hosts N/A instance N/A N/A objects Instance uuid inst1 N/A instance_uuid N/A instance uuid N/A N/A N/A fake_hosts N/A 1 instances N/A instance_uuid instance N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_different_host instance_uuid N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_no_instance_list N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A soft_different_host N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 1 2 3 N/A 0 1 2 3 N/A 0 1 2 3 N/A 0 1 2 3 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A test_get_extended_cost_matrix_no_hint N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_fake_hosts N/A fake_filter_properties N/A context num_instances instance_uuids scheduler_hints N/A N/A N/A self context elevated 3 N/A N/A fake_uuid_%s x N/A x N/A range 3 N/A N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A 0 0 0 0 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A N/A