Module Expr Str Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad If BoolOpAnd CompareIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Dict If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str If CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return CompareIs AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If BoolOpOr CompareNotIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad For NameStore NameLoad body TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Return If CompareIn Str NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore IfExp AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn Str NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad orelse Assign NameStore Num Assign NameStore Num Assign NameStore IfExp AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Index Str AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr BinOpMult NameLoad Call AttributeLoad NameLoad attr Str Num AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr BinOpMult NameLoad Call AttributeLoad NameLoad attr Str Num AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr BinOpMult NameLoad Call AttributeLoad NameLoad attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareEq NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn AttributeLoad NameLoad attr TupleLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Return Call NameLoad NameLoad BinOpAdd NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign NameStore BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Str orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr TryExcept body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Continue decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore CompareNotIn NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num For NameStore NameLoad body If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore CompareIn AttributeLoad NameLoad attr TupleLoad Str If NameLoad body Return Call NameLoad NameLoad BinOpMod Str NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Dict If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad Str body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Track resources like memory and disk for a compute host.  Provides the
scheduler with useful information about availability through the ComputeNode
model.
 N/A copy oslo_log log logging oslo_serialization jsonutils oslo_utils importutils nova.compute claims nova.compute monitors nova.compute task_states nova.compute vm_states N/A nova.conf nova exception nova.i18n _ _LE _LI _LW nova objects nova.objects base obj_base nova.objects migration migration_obj nova.pci manager pci_manager nova rpc nova.scheduler client scheduler_client nova utils nova.virt hardware N/A CONF N/A N/A nova conf CONF N/A LOG N/A N/A logging getLogger __name__ N/A COMPUTE_RESOURCE_SEMAPHORE compute_resources N/A N/A N/A CONF import_opt my_ip nova.netconf _instance_in_resize_state N/A N/A instance N/A N/A N/A Returns True if the instance is in one of the resizing states.

    :param instance: `nova.objects.Instance` object
     N/A vm N/A instance vm_state N/A task N/A instance task_state N/A N/A vm N/A vm_states RESIZED N/A N/A True N/A N/A N/A vm N/A N/A vm_states ACTIVE N/A vm_states STOPPED N/A task N/A N/A task_states RESIZE_PREP N/A task_states RESIZE_MIGRATING N/A task_states RESIZE_MIGRATED N/A task_states RESIZE_FINISH N/A task_states REBUILDING N/A N/A True N/A False N/A ResourceTracker N/A object N/A N/A Compute helper class for keeping track of resource usage as instances
    are built and destroyed.
     __init__ N/A N/A self host driver nodename N/A N/A N/A N/A self host host N/A N/A self driver driver N/A N/A self pci_tracker None N/A N/A self nodename nodename N/A N/A self compute_node None N/A N/A self stats N/A N/A importutils import_object N/A CONF compute_stats_class N/A N/A self tracked_instances N/A N/A N/A self tracked_migrations N/A N/A monitor_handler N/A N/A monitors MonitorHandler self N/A N/A self monitors N/A monitor_handler monitors N/A N/A self old_resources N/A N/A objects ComputeNode N/A N/A self scheduler_client N/A N/A scheduler_client SchedulerClient N/A N/A self ram_allocation_ratio N/A CONF ram_allocation_ratio N/A N/A self cpu_allocation_ratio N/A CONF cpu_allocation_ratio N/A N/A self disk_allocation_ratio N/A CONF disk_allocation_ratio N/A instance_claim N/A N/A self context instance_ref limits N/A None N/A N/A Indicate that some resources are needed for an upcoming compute
        instance build operation.

        This should be called before the compute node is about to perform
        an instance build operation that will consume additional resources.

        :param context: security context
        :param instance_ref: instance to reserve resources for.
        :type instance_ref: nova.objects.instance.Instance object
        :param limits: Dict of oversubscription limits for memory, disk,
                       and CPUs.
        :returns: A Claim ticket representing the reserved resources.  It can
                  be used to revert the resource usage if an error occurs
                  during the instance build.
         N/A N/A self disabled N/A N/A N/A N/A self _set_instance_host_and_node instance_ref N/A N/A N/A claims NopClaim N/A N/A instance_ref host N/A N/A N/A N/A LOG warning N/A _LW Host field should not be set on the instance until resources have been claimed. instance instance_ref N/A N/A instance_ref node N/A N/A N/A N/A LOG warning N/A _LW Node field should not be set on the instance until resources have been claimed. instance instance_ref N/A overhead N/A N/A N/A self driver estimate_instance_overhead instance_ref N/A N/A N/A LOG debug Memory overhead for %(flavor)d MB instance; %(overhead)d MB N/A flavor overhead N/A instance_ref memory_mb N/A overhead N/A memory_mb N/A claim N/A N/A claims Claim context instance_ref self N/A self compute_node overhead overhead limits limits N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker claim_instance context instance_ref N/A N/A instance_ref numa_topology N/A claim claimed_numa_topology N/A N/A N/A self _set_instance_host_and_node instance_ref N/A N/A N/A self _update_usage_from_instance context instance_ref N/A elevated N/A N/A context elevated N/A N/A N/A self _update elevated N/A claim N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE rebuild_claim N/A N/A self context instance limits image_meta migration N/A None None None N/A N/A Create a claim for a rebuild operation. N/A instance_type N/A instance flavor N/A N/A N/A self _move_claim context instance instance_type move_type evacuation limits limits image_meta image_meta migration migration N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE resize_claim N/A N/A self context instance instance_type image_meta limits N/A None None N/A N/A Create a claim for a resize or cold-migration move. N/A N/A N/A self _move_claim context instance instance_type image_meta image_meta limits limits N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE _move_claim N/A N/A self context instance new_instance_type move_type image_meta limits migration N/A None None None None N/A N/A Indicate that resources are needed for a move to this host.

        Move can be either a migrate/resize, live-migrate or an
        evacuate/rebuild operation.

        :param context: security context
        :param instance: instance object to reserve resources for
        :param new_instance_type: new instance_type being resized to
        :param image_meta: instance image metadata
        :param move_type: move type - can be one of 'migration', 'resize',
                         'live-migration', 'evacuate'
        :param limits: Dict of oversubscription limits for memory, disk,
        and CPUs
        :param migration: A migration object if one was already created
                          elsewhere for this operation
        :returns: A Claim ticket representing the reserved resources.  This
        should be turned into finalize  a resource claim or free
        resources after the compute operation is finished.
         N/A image_meta N/A image_meta N/A N/A migration N/A N/A N/A N/A self _claim_existing_migration migration N/A N/A migration N/A N/A self _create_migration context instance new_instance_type move_type N/A N/A self disabled N/A N/A N/A N/A claims NopClaim migration migration N/A overhead N/A N/A N/A self driver estimate_instance_overhead new_instance_type N/A N/A N/A LOG debug Memory overhead for %(flavor)d MB instance; %(overhead)d MB N/A flavor overhead N/A new_instance_type memory_mb N/A overhead N/A memory_mb N/A claim N/A N/A claims MoveClaim context instance new_instance_type image_meta self N/A self compute_node overhead overhead limits limits N/A N/A claim migration migration N/A N/A instance migration_context N/A N/A claim create_migration_context N/A N/A N/A instance save N/A N/A N/A self _update_usage_from_migration context instance image_meta migration N/A elevated N/A N/A context elevated N/A N/A N/A self _update elevated N/A claim N/A _create_migration N/A N/A self context instance new_instance_type move_type N/A None N/A N/A Create a migration record for the upcoming resize.  This should
        be done while the COMPUTE_RESOURCES_SEMAPHORE is held so the resource
        claim will not be lost if the audit process starts.
         N/A migration N/A N/A objects Migration context N/A N/A context elevated N/A N/A migration dest_compute N/A self host N/A N/A migration dest_node N/A self nodename N/A N/A migration dest_host N/A N/A N/A self driver get_host_ip_addr N/A N/A migration old_instance_type_id N/A N/A instance flavor id N/A N/A migration new_instance_type_id N/A new_instance_type id N/A N/A migration status pre-migrating N/A N/A migration instance_uuid N/A instance uuid N/A N/A migration source_compute N/A instance host N/A N/A migration source_node N/A instance node N/A move_type N/A N/A N/A migration migration_type move_type N/A N/A N/A migration migration_type N/A N/A migration_obj determine_migration_type migration N/A N/A N/A migration create N/A migration N/A _claim_existing_migration N/A N/A self migration N/A N/A N/A Make an existing migration record count for resource tracking.

        If a migration record was created already before the request made
        it to this compute host, only set up the migration so it's included in
        resource tracking. This should be done while the
        COMPUTE_RESOURCES_SEMAPHORE is held.
         N/A N/A migration dest_compute N/A self host N/A N/A migration dest_node N/A self nodename N/A N/A migration dest_host N/A N/A N/A self driver get_host_ip_addr N/A N/A migration status pre-migrating N/A N/A N/A migration save N/A _set_instance_host_and_node N/A N/A self instance N/A N/A N/A Tag the instance as belonging to this host.  This should be done
        while the COMPUTE_RESOURCES_SEMAPHORE is held so the resource claim
        will not be lost if the audit process starts.
         N/A N/A instance host N/A self host N/A N/A instance launched_on N/A self host N/A N/A instance node N/A self nodename N/A N/A N/A instance save N/A _unset_instance_host_and_node N/A N/A self instance N/A N/A N/A Untag the instance so it no longer belongs to the host.

        This should be done while the COMPUTE_RESOURCES_SEMAPHORE is held so
        the resource claim will not be lost if the audit process starts.
         N/A N/A instance host None N/A N/A instance node None N/A N/A N/A instance save N/A abort_instance_claim N/A N/A self context instance N/A N/A N/A Remove usage from the given instance. N/A N/A N/A self _update_usage_from_instance context instance is_removed True N/A N/A N/A instance clear_numa_topology N/A N/A N/A self _unset_instance_host_and_node instance N/A N/A N/A self _update N/A N/A context elevated N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE drop_move_claim N/A N/A self context instance instance_type prefix N/A None new_ N/A N/A Remove usage for an incoming/outgoing migration. N/A N/A N/A instance N/A uuid N/A self tracked_migrations N/A N/A N/A migration itype N/A N/A N/A self tracked_migrations pop N/A instance N/A uuid N/A N/A instance_type N/A N/A ctxt N/A N/A context elevated N/A instance_type N/A N/A self _get_instance_type ctxt instance prefix migration N/A N/A N/A instance_type None N/A N/A instance_type id N/A itype N/A id N/A N/A numa_topology N/A N/A self _get_migration_context_resource numa_topology instance N/A usage N/A N/A self _get_usage_dict itype numa_topology numa_topology N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker update_pci_for_migration context instance sign -1 N/A N/A N/A self _update_usage usage sign -1 N/A ctxt N/A N/A context elevated N/A N/A N/A self _update ctxt N/A N/A N/A instance drop_migration_context N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE update_usage N/A N/A self context instance N/A N/A N/A Update the resource usage and stats after a change in an
        instance
         N/A N/A self disabled N/A N/A N/A uuid N/A instance N/A uuid N/A N/A uuid N/A self tracked_instances N/A N/A N/A N/A self _update_usage_from_instance context instance N/A N/A N/A self _update N/A N/A context elevated N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE disabled N/A N/A self N/A N/A N/A N/A N/A self compute_node None N/A property _init_compute_node N/A N/A self context resources N/A N/A N/A Initialise the compute node if it does not already exist.

        The resource tracker will be inoperable if compute_node
        is not defined. The compute_node will remain undefined if
        we fail to create it or if there is no associated service
        registered.

        If this method has to create a compute node it needs initial
        values - these come from resources.

        :param context: security context
        :param resources: initial values
         N/A N/A self compute_node N/A N/A N/A N/A self _copy_resources resources N/A N/A N/A self compute_node N/A N/A self _get_compute_node context N/A N/A self compute_node N/A N/A N/A N/A self _copy_resources resources N/A N/A N/A self compute_node N/A N/A objects ComputeNode context N/A N/A N/A self compute_node host N/A self host N/A N/A N/A self _copy_resources resources N/A N/A N/A N/A self compute_node create N/A N/A N/A LOG info N/A _LI Compute_service record created for %(host)s:%(node)s N/A host node N/A self host N/A self nodename N/A _copy_resources N/A N/A self resources N/A N/A N/A Copy resource values to initialise compute_node and related
        data structures.
         N/A N/A N/A N/A self stats clear N/A N/A N/A N/A self stats digest_stats N/A N/A resources get stats N/A N/A N/A self compute_node stats N/A N/A copy deepcopy N/A self stats N/A N/A N/A self compute_node ram_allocation_ratio N/A self ram_allocation_ratio N/A N/A N/A self compute_node cpu_allocation_ratio N/A self cpu_allocation_ratio N/A N/A N/A self compute_node disk_allocation_ratio N/A self disk_allocation_ratio N/A N/A N/A N/A self compute_node update_from_virt_driver resources N/A _get_host_metrics N/A N/A self context nodename N/A N/A N/A Get the metrics from monitors and
        notify information to message bus.
         N/A metrics N/A N/A objects MonitorMetricList N/A metrics_info N/A N/A monitor N/A self monitors N/A N/A N/A N/A N/A N/A monitor add_metrics_to_list metrics N/A N/A N/A Exception N/A exc N/A N/A N/A N/A LOG warning N/A _LW Cannot get the metrics from %(mon)s; error: %(exc)s N/A mon exc monitor exc N/A metrics N/A N/A metrics to_list N/A N/A len metrics N/A N/A N/A metrics_info N/A nodename nodename N/A N/A metrics_info N/A metrics metrics N/A N/A metrics_info N/A host N/A self host N/A N/A metrics_info N/A host_ip N/A CONF my_ip N/A notifier N/A N/A rpc get_notifier service compute host nodename N/A N/A N/A notifier info context compute.metrics.update metrics_info N/A metrics N/A update_available_resource N/A N/A self context N/A N/A N/A Override in-memory calculations of compute node resource usage based
        on data audited from the hypervisor layer.

        Add in resource claims in progress to account for operations that have
        declared a need for resources, but not necessarily retrieved them from
        the hypervisor layer yet.
         N/A N/A N/A LOG info N/A _LI Auditing locally available compute resources for node %(node)s N/A node N/A self nodename N/A resources N/A N/A N/A self driver get_available_resource N/A self nodename N/A N/A resources N/A N/A N/A N/A LOG info N/A _LI Virt driver does not support 'get_available_resource'. Compute tracking is disabled. N/A N/A self compute_node None N/A N/A N/A resources N/A host_ip N/A CONF my_ip N/A N/A N/A cpu_info resources N/A N/A resources N/A cpu_info None N/A N/A N/A resources N/A cpu_info N/A N/A N/A self _verify_resources resources N/A N/A N/A self _report_hypervisor_resource_view resources N/A N/A N/A self _update_available_resource context resources N/A _pair_instances_to_migrations N/A N/A self migrations instances N/A N/A N/A instance_by_uuid N/A N/A inst uuid inst N/A inst instances N/A migration migrations N/A N/A N/A N/A N/A migration instance N/A instance_by_uuid N/A N/A migration instance_uuid N/A N/A N/A KeyError N/A N/A N/A N/A LOG error N/A _LE Migration for instance %(uuid)s refers to another host's instance! N/A uuid N/A migration instance_uuid N/A _update_available_resource N/A N/A self context resources N/A N/A N/A N/A N/A self _init_compute_node context resources N/A N/A self disabled N/A N/A N/A N/A pci_passthrough_devices resources N/A N/A N/A N/A self pci_tracker N/A N/A n_id N/A N/A self compute_node N/A N/A self compute_node id None N/A N/A self pci_tracker N/A N/A pci_manager PciDevTracker context node_id n_id N/A dev_json N/A N/A resources pop pci_passthrough_devices N/A N/A N/A N/A self pci_tracker update_devices_from_hypervisor_resources dev_json N/A instances N/A N/A N/A objects InstanceList get_by_host_and_node context N/A self host N/A self nodename expected_attrs N/A system_metadata numa_topology flavor migration_context N/A N/A N/A self _update_usage_from_instances context instances N/A migrations N/A N/A N/A objects MigrationList get_in_progress_by_host_and_node context N/A self host N/A self nodename N/A N/A N/A self _pair_instances_to_migrations migrations instances N/A N/A N/A self _update_usage_from_migrations context migrations N/A orphans N/A N/A self _find_orphaned_instances N/A N/A N/A self _update_usage_from_orphans orphans N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker clean_usage instances migrations orphans N/A dev_pools_obj N/A N/A N/A N/A self pci_tracker stats to_device_pools_obj N/A N/A N/A self compute_node pci_device_pools dev_pools_obj N/A N/A N/A N/A self compute_node pci_device_pools N/A N/A objects PciDevicePoolList N/A N/A N/A self _report_final_resource_view N/A metrics N/A N/A self _get_host_metrics context N/A self nodename N/A N/A N/A self compute_node metrics N/A N/A jsonutils dumps metrics N/A N/A N/A self _update context N/A N/A N/A LOG info N/A _LI Compute_service record updated for %(host)s:%(node)s N/A host node N/A self host N/A self nodename N/A N/A N/A utils synchronized COMPUTE_RESOURCE_SEMAPHORE _get_compute_node N/A N/A self context N/A N/A N/A Returns compute node for the host and nodename. N/A N/A N/A N/A N/A N/A objects ComputeNode get_by_host_and_nodename context N/A self host N/A self nodename N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A LOG warning N/A _LW No compute node record for %(host)s:%(node)s N/A host node N/A self host N/A self nodename N/A _report_hypervisor_resource_view N/A N/A self resources N/A N/A N/A Log the hypervisor's view of free resources.

        This is just a snapshot of resource usage recorded by the
        virt driver.

        The following resources are logged:
            - free memory
            - free disk
            - free CPUs
            - assignable PCI devices
         N/A free_ram_mb N/A N/A resources N/A memory_mb N/A resources N/A memory_mb_used N/A free_disk_gb N/A N/A resources N/A local_gb N/A resources N/A local_gb_used N/A vcpus N/A resources N/A vcpus N/A vcpus N/A N/A free_vcpus N/A vcpus N/A resources N/A vcpus_used N/A N/A N/A LOG debug Hypervisor: free VCPUs: %s free_vcpus N/A N/A free_vcpus unknown N/A N/A N/A LOG debug Hypervisor: VCPU information unavailable N/A N/A N/A pci_passthrough_devices resources N/A resources N/A pci_passthrough_devices N/A N/A N/A N/A LOG debug Hypervisor: assignable PCI devices: %s N/A resources N/A pci_passthrough_devices N/A pci_devices N/A N/A resources get pci_passthrough_devices N/A N/A N/A LOG debug Hypervisor/Node resource view: name=%(node)s free_ram=%(free_ram)sMB free_disk=%(free_disk)sGB free_vcpus=%(free_vcpus)s pci_devices=%(pci_devices)s N/A node free_ram free_disk free_vcpus pci_devices N/A self nodename free_ram_mb free_disk_gb free_vcpus pci_devices N/A _report_final_resource_view N/A N/A self N/A N/A N/A Report final calculate of physical memory, used virtual memory,
        disk, usable vCPUs, used virtual CPUs and PCI devices,
        including instance calculations and in-progress resource claims. These
        values will be exposed via the compute node table to the scheduler.
         N/A vcpus N/A N/A self compute_node vcpus N/A vcpus N/A N/A tcpu vcpus N/A ucpu N/A N/A self compute_node vcpus_used N/A N/A N/A LOG info N/A _LI Total usable vcpus: %(tcpu)s, total allocated vcpus: %(ucpu)s N/A tcpu ucpu vcpus ucpu N/A N/A tcpu 0 N/A ucpu 0 N/A pci_stats N/A N/A N/A self compute_node pci_device_pools N/A list N/A N/A self compute_node pci_device_pools N/A N/A N/A N/A LOG info N/A _LI Final resource view: name=%(node)s phys_ram=%(phys_ram)sMB used_ram=%(used_ram)sMB phys_disk=%(phys_disk)sGB used_disk=%(used_disk)sGB total_vcpus=%(total_vcpus)s used_vcpus=%(used_vcpus)s pci_stats=%(pci_stats)s N/A node phys_ram used_ram phys_disk used_disk total_vcpus used_vcpus pci_stats N/A self nodename N/A N/A self compute_node memory_mb N/A N/A self compute_node memory_mb_used N/A N/A self compute_node local_gb N/A N/A self compute_node local_gb_used tcpu ucpu pci_stats N/A _resource_change N/A N/A self N/A N/A N/A Check to see if any resources have changed. N/A N/A N/A N/A obj_base obj_equal_prims N/A self compute_node N/A self old_resources N/A N/A N/A self old_resources N/A N/A copy deepcopy N/A self compute_node N/A True N/A False N/A _update N/A N/A self context N/A N/A N/A Update partial stats locally and populate them to Scheduler. N/A N/A N/A N/A self _resource_change N/A N/A N/A N/A N/A N/A self scheduler_client update_resource_stats N/A self compute_node N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker save context N/A _update_usage N/A N/A self usage sign N/A 1 N/A N/A mem_usage N/A usage N/A memory_mb N/A overhead N/A N/A N/A self driver estimate_instance_overhead usage N/A mem_usage N/A overhead N/A memory_mb N/A N/A N/A self compute_node memory_mb_used N/A sign mem_usage N/A N/A N/A self compute_node local_gb_used N/A sign N/A N/A usage get root_gb 0 N/A N/A N/A self compute_node local_gb_used N/A sign N/A N/A usage get ephemeral_gb 0 N/A N/A N/A self compute_node vcpus_used N/A sign N/A N/A usage get vcpus 0 N/A N/A N/A self compute_node free_ram_mb N/A N/A N/A self compute_node memory_mb N/A N/A self compute_node memory_mb_used N/A N/A N/A self compute_node free_disk_gb N/A N/A N/A self compute_node local_gb N/A N/A self compute_node local_gb_used N/A N/A N/A self compute_node running_vms N/A N/A self stats num_instances N/A free N/A sign -1 N/A updated_numa_topology N/A N/A hardware get_host_numa_usage_from_instance N/A self compute_node usage free N/A N/A N/A self compute_node numa_topology updated_numa_topology N/A _is_trackable_migration N/A N/A self migration N/A N/A N/A N/A N/A migration migration_type N/A resize migration evacuation N/A _get_migration_context_resource N/A N/A self resource instance prefix itype N/A new_ None N/A N/A migration_context N/A instance migration_context N/A migration_context N/A N/A N/A getattr migration_context N/A prefix resource N/A N/A None N/A _update_usage_from_migration N/A N/A self context instance image_meta migration N/A N/A N/A Update usage for a single migration.  The record may
        represent an incoming or outbound migration.
         N/A N/A N/A N/A self _is_trackable_migration migration N/A N/A N/A uuid N/A migration instance_uuid N/A N/A N/A LOG info N/A _LI Updating from migration %s uuid N/A incoming N/A N/A N/A migration dest_compute N/A self host N/A N/A migration dest_node N/A self nodename N/A outbound N/A N/A N/A migration source_compute N/A self host N/A N/A migration source_node N/A self nodename N/A same_node N/A incoming outbound N/A record N/A N/A N/A self tracked_instances get uuid None N/A itype None N/A numa_topology None N/A same_node N/A N/A N/A N/A instance N/A instance_type_id N/A migration old_instance_type_id N/A N/A itype N/A N/A self _get_instance_type context instance new_ migration N/A numa_topology N/A N/A self _get_migration_context_resource numa_topology instance N/A N/A itype N/A N/A self _get_instance_type context instance old_ migration N/A numa_topology N/A N/A self _get_migration_context_resource numa_topology instance prefix old_ N/A N/A N/A incoming N/A record N/A N/A itype N/A N/A self _get_instance_type context instance new_ migration N/A numa_topology N/A N/A self _get_migration_context_resource numa_topology instance N/A N/A N/A outbound N/A record N/A N/A itype N/A N/A self _get_instance_type context instance old_ migration N/A numa_topology N/A N/A self _get_migration_context_resource numa_topology instance prefix old_ N/A N/A image_meta None N/A N/A image_meta N/A N/A N/A objects ImageMeta from_instance instance N/A N/A N/A N/A isinstance image_meta N/A objects ImageMeta N/A N/A image_meta N/A N/A N/A objects ImageMeta from_dict image_meta N/A itype N/A N/A usage N/A N/A self _get_usage_dict itype numa_topology numa_topology N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker update_pci_for_migration context instance N/A N/A N/A self _update_usage usage N/A N/A self pci_tracker N/A N/A obj N/A N/A N/A N/A self pci_tracker stats to_device_pools_obj N/A N/A N/A self compute_node pci_device_pools obj N/A N/A obj N/A N/A objects PciDevicePoolList N/A N/A N/A self compute_node pci_device_pools obj N/A N/A N/A self tracked_migrations N/A uuid N/A migration itype N/A _update_usage_from_migrations N/A N/A self context migrations N/A N/A N/A filtered N/A N/A instances N/A N/A N/A N/A N/A self tracked_migrations clear N/A migration migrations N/A N/A uuid N/A migration instance_uuid N/A N/A N/A N/A uuid instances N/A N/A N/A instances N/A uuid N/A migration instance N/A N/A N/A N/A exception InstanceNotFound N/A e N/A N/A N/A N/A LOG debug Migration instance not found: %s e N/A N/A N/A N/A _instance_in_resize_state N/A instances N/A uuid N/A N/A N/A N/A LOG warning N/A _LW Instance not resizing, skipping migration. instance_uuid uuid N/A N/A other_migration N/A N/A filtered get uuid None N/A N/A N/A other_migration N/A N/A migration updated_at N/A other_migration updated_at N/A N/A migration updated_at N/A other_migration updated_at N/A N/A N/A filtered N/A uuid migration N/A migration N/A N/A filtered values N/A N/A instance N/A instances N/A N/A migration instance_uuid N/A N/A N/A N/A N/A self _update_usage_from_migration context instance None migration N/A N/A N/A N/A exception FlavorNotFound N/A N/A N/A N/A LOG warning N/A _LW Flavor could not be found, skipping migration. instance_uuid uuid N/A N/A _update_usage_from_instance N/A N/A self context instance is_removed N/A False N/A N/A Update usage for a single instance. N/A uuid N/A instance N/A uuid N/A is_new_instance N/A uuid N/A self tracked_instances N/A is_removed_instance N/A is_removed N/A N/A instance N/A vm_state N/A vm_states ALLOW_RESOURCE_REMOVAL N/A is_new_instance N/A N/A N/A N/A self tracked_instances N/A uuid N/A N/A obj_base obj_to_primitive instance N/A sign 1 N/A is_removed_instance N/A N/A N/A N/A N/A self tracked_instances pop uuid N/A sign -1 N/A N/A N/A N/A self stats update_stats_for_instance instance is_removed_instance N/A N/A N/A self compute_node stats N/A N/A copy deepcopy N/A self stats N/A N/A is_new_instance is_removed_instance N/A N/A N/A self pci_tracker N/A N/A N/A N/A N/A self pci_tracker update_pci_for_instance context instance sign sign N/A N/A N/A self _update_usage instance sign sign N/A N/A N/A self compute_node current_workload N/A N/A N/A self stats calculate_workload N/A N/A self pci_tracker N/A N/A obj N/A N/A N/A N/A self pci_tracker stats to_device_pools_obj N/A N/A N/A self compute_node pci_device_pools obj N/A N/A N/A N/A self compute_node pci_device_pools N/A N/A objects PciDevicePoolList N/A _update_usage_from_instances N/A N/A self context instances N/A N/A N/A Calculate resource usage based on instance utilization.  This is
        different than the hypervisor's view as it will account for all
        instances assigned to the local compute host, even if they are not
        currently powered on.
         N/A N/A N/A N/A self tracked_instances clear N/A N/A N/A self compute_node local_gb_used N/A N/A CONF reserved_host_disk_mb 1024 N/A N/A N/A self compute_node memory_mb_used N/A CONF reserved_host_memory_mb N/A N/A N/A self compute_node vcpus_used 0 N/A N/A N/A self compute_node free_ram_mb N/A N/A N/A self compute_node memory_mb N/A N/A self compute_node memory_mb_used N/A N/A N/A self compute_node free_disk_gb N/A N/A N/A self compute_node local_gb N/A N/A self compute_node local_gb_used N/A N/A N/A self compute_node current_workload 0 N/A N/A N/A self compute_node running_vms 0 N/A instance instances N/A N/A N/A N/A instance vm_state N/A vm_states ALLOW_RESOURCE_REMOVAL N/A N/A N/A N/A self _update_usage_from_instance context instance N/A _find_orphaned_instances N/A N/A self N/A N/A N/A Given the set of instances and migrations already account for
        by resource tracker, sanity check the hypervisor to determine
        if there are any "orphaned" instances left hanging around.

        Orphans could be consuming memory and should be accounted for in
        usage calculations to guard against potential out of memory
        errors.
         N/A uuids1 N/A frozenset N/A N/A N/A self tracked_instances keys N/A uuids2 N/A frozenset N/A N/A N/A self tracked_migrations keys N/A uuids N/A uuids1 uuids2 N/A usage N/A N/A N/A self driver get_per_instance_usage N/A vuuids N/A frozenset N/A N/A usage keys N/A orphan_uuids N/A vuuids uuids N/A orphans N/A N/A usage N/A uuid N/A uuid orphan_uuids N/A orphans N/A _update_usage_from_orphans N/A N/A self orphans N/A N/A N/A Include orphaned instances in usage. N/A orphan orphans N/A N/A memory_mb N/A orphan N/A memory_mb N/A N/A N/A LOG warning N/A _LW Detected running orphan instance: %(uuid)s (consuming %(memory_mb)s MB memory) N/A uuid memory_mb N/A orphan N/A uuid memory_mb N/A usage N/A memory_mb memory_mb N/A N/A N/A self _update_usage usage N/A _verify_resources N/A N/A self resources N/A N/A N/A resource_keys N/A vcpus memory_mb local_gb cpu_info vcpus_used memory_mb_used local_gb_used numa_topology N/A missing_keys N/A k N/A k resource_keys N/A k resources N/A missing_keys N/A N/A reason N/A N/A _ Missing keys: %s missing_keys N/A N/A N/A exception InvalidInput reason reason N/A _get_instance_type N/A N/A self context instance prefix migration N/A N/A N/A Get the instance type from instance. N/A stashed_flavors N/A N/A migration migration_type N/A resize N/A stashed_flavors N/A N/A N/A getattr instance N/A %sflavor prefix N/A N/A N/A instance flavor N/A _get_usage_dict N/A N/A self object_or_dict N/A updates N/A N/A Make a usage dict _update methods expect.

        Accepts a dict or an Instance or Flavor object, and a set of updates.
        Converts the object to a dict and applies the updates.

        :param object_or_dict: instance or flavor as an object or just a dict
        :param updates: key-value pairs to update the passed object.
                        Currently only considers 'numa_topology', all other
                        keys are ignored.

        :returns: a dict with all the information from object_or_dict updated
                  with updates
         N/A usage N/A N/A N/A isinstance object_or_dict N/A objects Instance N/A N/A usage N/A N/A obj_base obj_to_primitive object_or_dict N/A N/A N/A isinstance object_or_dict N/A objects Flavor N/A N/A usage N/A N/A obj_base obj_to_primitive object_or_dict N/A N/A N/A N/A usage update object_or_dict N/A key N/A numa_topology N/A N/A N/A key updates N/A N/A N/A usage N/A key N/A updates N/A key N/A usage N/A N/A