Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Raise Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad Num decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For NameStore NameLoad body If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore NameLoad Index NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A nova.compute task_states nova.compute vm_states nova.i18n _ Stats N/A dict N/A N/A Handler for updates to compute node workload stats. __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super Stats self __init__ N/A N/A self states N/A N/A clear N/A N/A self N/A N/A N/A N/A N/A N/A super Stats self clear N/A N/A N/A N/A self states clear N/A digest_stats N/A N/A self stats N/A N/A N/A Apply stats provided as a dict or a json encoded string. N/A N/A stats None N/A N/A N/A N/A isinstance stats dict N/A N/A N/A N/A self update stats N/A N/A N/A ValueError N/A _ Unexpected type adding stats N/A io_workload N/A N/A self N/A N/A N/A Calculate an I/O based load by counting I/O heavy operations. _get N/A N/A state state_type N/A N/A N/A key N/A num_%s_%s N/A state_type state N/A N/A N/A self get key 0 N/A N/A num_builds N/A _get N/A vm_states BUILDING vm N/A num_migrations N/A _get N/A task_states RESIZE_MIGRATING task N/A num_rebuilds N/A _get N/A task_states REBUILDING task N/A num_resizes N/A _get N/A task_states RESIZE_PREP task N/A num_snapshots N/A _get N/A task_states IMAGE_SNAPSHOT task N/A num_backups N/A _get N/A task_states IMAGE_BACKUP task N/A num_rescues N/A _get N/A task_states RESCUING task N/A num_unshelves N/A _get N/A task_states UNSHELVING task N/A N/A N/A N/A N/A N/A N/A N/A num_builds num_rebuilds num_resizes num_migrations num_snapshots num_backups num_rescues num_unshelves N/A property calculate_workload N/A N/A self N/A N/A N/A Calculate current load of the compute host based on
        task states.
         N/A current_workload 0 N/A k self N/A N/A N/A N/A N/A k startswith num_task N/A N/A N/A k endswith None N/A N/A current_workload N/A self N/A k N/A current_workload N/A num_instances N/A N/A self N/A N/A N/A N/A N/A self get num_instances 0 N/A property num_instances_for_project N/A N/A self project_id N/A N/A N/A key N/A num_proj_%s project_id N/A N/A N/A self get key 0 N/A num_os_type N/A N/A self os_type N/A N/A N/A key N/A num_os_type_%s os_type N/A N/A N/A self get key 0 N/A update_stats_for_instance N/A N/A self instance is_removed N/A False N/A N/A Update stats after an instance is changed. N/A uuid N/A instance N/A uuid N/A N/A uuid N/A self states N/A N/A old_state N/A N/A self states N/A uuid N/A N/A N/A self _decrement N/A num_vm_%s N/A old_state N/A vm_state N/A N/A N/A self _decrement N/A num_task_%s N/A old_state N/A task_state N/A N/A N/A self _decrement N/A num_os_type_%s N/A old_state N/A os_type N/A N/A N/A self _decrement N/A num_proj_%s N/A old_state N/A project_id N/A N/A N/A N/A self _increment num_instances N/A N/A vm_state task_state os_type project_id N/A N/A self _extract_state_from_instance instance N/A N/A is_removed N/A vm_state N/A vm_states ALLOW_RESOURCE_REMOVAL N/A N/A N/A N/A self _decrement num_instances N/A N/A N/A N/A self states pop uuid N/A N/A N/A N/A self _increment N/A num_vm_%s vm_state N/A N/A N/A self _increment N/A num_task_%s task_state N/A N/A N/A self _increment N/A num_os_type_%s os_type N/A N/A N/A self _increment N/A num_proj_%s project_id N/A N/A self N/A io_workload N/A self io_workload N/A _decrement N/A N/A self key N/A N/A N/A x N/A N/A self get key 0 N/A N/A self N/A key N/A x 1 N/A _increment N/A N/A self key N/A N/A N/A x N/A N/A self get key 0 N/A N/A self N/A key N/A x 1 N/A _extract_state_from_instance N/A N/A self instance N/A N/A N/A Save the useful bits of instance state for tracking purposes. N/A uuid N/A instance N/A uuid N/A vm_state N/A instance N/A vm_state N/A task_state N/A instance N/A task_state N/A os_type N/A instance N/A os_type N/A project_id N/A instance N/A project_id N/A N/A N/A self states N/A uuid N/A dict vm_state vm_state task_state task_state os_type os_type project_id project_id N/A N/A vm_state task_state os_type project_id N/A N/A