Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str Str Dict Str Num TupleLoad Str Str Dict Str Num TupleLoad Str Str Dict Str Num TupleLoad Str Str Dict Str Num Return ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore BinOpAdd Call NameLoad NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A 
Tests For Scheduler RAM weights.
 nova.scheduler weights nova.scheduler.weights ram nova test nova.tests.unit.scheduler fakes RamWeigherTestCase N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super RamWeigherTestCase self setUp N/A N/A self weight_handler N/A N/A weights HostWeightHandler N/A N/A self weighers N/A N/A N/A ram RAMWeigher N/A _get_weighed_host N/A N/A self hosts weight_properties N/A None N/A N/A N/A weight_properties None N/A N/A weight_properties N/A N/A N/A N/A N/A N/A self weight_handler get_weighed_objects N/A self weighers hosts weight_properties N/A 0 N/A _get_all_hosts N/A N/A self N/A N/A N/A host_values N/A N/A host1 node1 N/A free_ram_mb 512 N/A host2 node2 N/A free_ram_mb 1024 N/A host3 node3 N/A free_ram_mb 3072 N/A host4 node4 N/A free_ram_mb 8192 N/A N/A N/A N/A fakes FakeHostState host node values N/A N/A host node values host_values N/A test_default_of_spreading_first N/A N/A self N/A N/A N/A hostinfo_list N/A N/A self _get_all_hosts N/A weighed_host N/A N/A self _get_weighed_host hostinfo_list N/A N/A N/A self assertEqual 1.0 N/A weighed_host weight N/A N/A N/A self assertEqual host4 N/A N/A weighed_host obj host N/A test_ram_filter_multiplier1 N/A N/A self N/A N/A N/A N/A N/A self flags ram_weight_multiplier 0.0 N/A hostinfo_list N/A N/A self _get_all_hosts N/A weighed_host N/A N/A self _get_weighed_host hostinfo_list N/A N/A N/A self assertEqual 0.0 N/A weighed_host weight N/A test_ram_filter_multiplier2 N/A N/A self N/A N/A N/A N/A N/A self flags ram_weight_multiplier 2.0 N/A hostinfo_list N/A N/A self _get_all_hosts N/A weighed_host N/A N/A self _get_weighed_host hostinfo_list N/A N/A N/A self assertEqual N/A 1.0 2 N/A weighed_host weight N/A N/A N/A self assertEqual host4 N/A N/A weighed_host obj host N/A test_ram_filter_negative N/A N/A self N/A N/A N/A N/A N/A self flags ram_weight_multiplier 1.0 N/A hostinfo_list N/A N/A self _get_all_hosts N/A host_attr N/A id memory_mb free_ram_mb 100 8192 -512 N/A host_state N/A N/A fakes FakeHostState negative negative host_attr N/A hostinfo_list N/A N/A list hostinfo_list N/A host_state N/A weights N/A N/A N/A self weight_handler get_weighed_objects N/A self weighers hostinfo_list N/A N/A weighed_host N/A weights N/A 0 N/A N/A N/A self assertEqual 1 N/A weighed_host weight N/A N/A N/A self assertEqual host4 N/A N/A weighed_host obj host N/A weighed_host N/A weights N/A -1 N/A N/A N/A self assertEqual 0 N/A weighed_host weight N/A N/A N/A self assertEqual negative N/A N/A weighed_host obj host N/A N/A