Module ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp ListComp NameLoad comprehension NameStore Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str If CompareLtE NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd ListComp NameLoad comprehension NameStore Call NameLoad NameLoad ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str SubscriptLoad NameLoad Index NameLoad NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Index Str NameLoad Return NameLoad decorator_list decorator_list
N/A oslo_config cfg oslo_log log logging nova.i18n _LW nova_solverscheduler.scheduler.solvers constraints N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt ram_allocation_ratio nova.scheduler.filters.ram_filter N/A LOG N/A N/A logging getLogger __name__ RamConstraint N/A N/A constraints BaseLinearConstraint N/A N/A Constraint of the total ram demand acceptable on each host. _get_ram_allocation_ratio N/A N/A self host_state filter_properties N/A N/A N/A N/A CONF ram_allocation_ratio N/A get_constraint_matrix N/A N/A self hosts filter_properties N/A N/A N/A num_hosts N/A len hosts N/A num_instances N/A N/A filter_properties get num_instances N/A constraint_matrix N/A N/A True N/A j N/A xrange num_instances N/A i N/A xrange num_hosts N/A instance_type N/A N/A N/A filter_properties get instance_type N/A N/A requested_ram N/A N/A instance_type get memory_mb 0 N/A N/A memory_mb instance_type N/A N/A N/A N/A LOG warn N/A _LW No information about requested instances' RAM size was found, default value (0) is used. N/A N/A requested_ram 0 N/A N/A N/A N/A LOG warn N/A _LW RamConstraint is skipped because requested instance RAM size is 0 or invalid. N/A constraint_matrix N/A i N/A xrange num_hosts N/A N/A ram_allocation_ratio N/A N/A self _get_ram_allocation_ratio N/A hosts N/A i filter_properties N/A free_ram_mb N/A N/A hosts N/A i free_ram_mb N/A total_usable_ram_mb N/A N/A hosts N/A i total_usable_ram_mb N/A memory_mb_limit N/A total_usable_ram_mb ram_allocation_ratio N/A used_ram_mb N/A total_usable_ram_mb free_ram_mb N/A usable_ram N/A memory_mb_limit used_ram_mb N/A acceptable_num_instances N/A int N/A usable_ram requested_ram N/A N/A acceptable_num_instances num_instances N/A N/A inacceptable_num N/A num_instances acceptable_num_instances N/A N/A constraint_matrix N/A i N/A N/A True N/A j N/A xrange acceptable_num_instances N/A False N/A j N/A xrange inacceptable_num N/A N/A N/A LOG debug %(host)s can accept %(num)s requested instances according to RamConstraint. N/A host num N/A hosts N/A i acceptable_num_instances N/A N/A N/A N/A hosts N/A i limits N/A memory_mb memory_mb_limit N/A constraint_matrix N/A N/A