Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword Num FunctionDef arguments args defaults body AugAssignAdd SubscriptStore NameLoad Index Str Num Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd SubscriptStore NameLoad Index Str Num FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr 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 Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Continue Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Break Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict If NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body If CompareEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad If BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore BinOpAdd Str NameLoad AugAssignAdd NameStore BinOpAdd Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list NameLoad If NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryExcept body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return ListComp TupleLoad Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad CompareIs Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareGtE NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore CompareEq NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr While CompareLt Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Break Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad NameStore body Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMult BinOpDiv Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword Num FunctionDef arguments args defaults body Pass decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad Expr Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword Num Expr Str FunctionDef arguments args defaults body Pass decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Num For TupleStore NameStore NameStore Call NameLoad NameLoad keyword Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return Call NameLoad NameLoad NameLoad Assign NameStore ListLoad If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd Call NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad NameStore body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad keyword Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore ListLoad Expr Call NameLoad NameLoad ListLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num If NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad keyword Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num NameLoad decorator_list NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Expr Call NameLoad Assign NameStore NameLoad Expr Call NameLoad Return With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameStore body Expr Call NameLoad Expr Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr If CompareGt NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore CompareGt NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Num CompareNotEq NameLoad Num body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad keyword Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad TryExcept body If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return orelse Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Return Call AttributeLoad Str attr ListComp BoolOpOr BoolOpAnd CompareIn NameLoad NameLoad NameLoad Str comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpOr BoolOpAnd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Return FunctionDef arguments args NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return Dict Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return If UnaryOpNot BoolOpAnd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore BoolOpOr SubscriptLoad NameLoad Index Str ListLoad If UnaryOpNot NameLoad body Return For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore BinOpMod Str NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad TryExcept body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Return If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Str body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad BinOpMod Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore 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 defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Call NameLoad NameLoad keyword NameLoad If CompareGt SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotIn Str SubscriptLoad NameLoad Index Str body Continue Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr CompareIs NameLoad NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Dict Str NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Raise Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Str Num body Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr orelse Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return Dict Str Str Str Str SubscriptLoad NameLoad Index Str Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Call NameLoad SubscriptLoad NameLoad Index Str decorator_list Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Num Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Assign SubscriptStore NameLoad Index Str ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign SubscriptStore NameLoad Index Str ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args defaults body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Str orelse Assign NameStore Str Return Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Dict If BoolOpOr NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad keyword NameLoad Return Dict Str Str Str NameLoad orelse If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad keyword NameLoad Return Dict Str Str Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str Str NameLoad NameLoad NameLoad keyword NameLoad Return Dict Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareNotIn Str NameLoad body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore BinOpMod Call NameLoad Str NameLoad If CompareEq Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareNotIn NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad Return SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareNotEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign NameStore BinOpMod Call NameLoad Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Index Str TryExcept body Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore UnaryOpNot SubscriptLoad NameLoad Index Str If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr CompareEq NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareGt Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num body If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If BoolOpAnd CompareIn Str NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad If CompareEq NameLoad Str body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad For NameStore NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad keyword NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareEq Call NameLoad NameLoad Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return DictComp NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad Assign NameStore Dict Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Dict Str Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BoolOpOr SubscriptLoad NameLoad Index Str ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return CompareIn NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict TryExcept body If CompareIsNot NameLoad NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Management class for VM-related functions (spawn, reboot, etc).
 N/A base64 N/A functools N/A time N/A zlib N/A eventlet eventlet greenthread N/A netaddr oslo_log log logging oslo_serialization jsonutils oslo_utils excutils oslo_utils importutils oslo_utils netutils oslo_utils strutils oslo_utils timeutils oslo_utils units N/A six nova block_device nova compute nova.compute power_state nova.compute task_states nova.compute vm_mode nova.compute vm_states N/A nova.conf nova.console type ctype nova context nova_context nova exception nova.i18n _ _LE _LI _LW nova objects nova.objects migrate_data migrate_data_obj nova.pci manager pci_manager nova utils nova.virt configdrive nova.virt driver virt_driver nova.virt firewall nova.virt.xenapi agent xapi_agent nova.virt.xenapi pool_states nova.virt.xenapi vm_utils nova.virt.xenapi volume_utils nova.virt.xenapi volumeops N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A N/A nova conf CONF N/A N/A N/A CONF import_opt host nova.netconf N/A DEFAULT_FIREWALL_DRIVER N/A %s.%s N/A N/A firewall __name__ N/A N/A firewall IptablesFirewallDriver __name__ N/A RESIZE_TOTAL_STEPS 5 N/A DEVICE_ROOT 0 N/A DEVICE_RESCUE 1 N/A DEVICE_SWAP 2 N/A DEVICE_CONFIGDRIVE 3 N/A DEVICE_EPHEMERAL 4 N/A DEVICE_CD 1 make_step_decorator N/A N/A context instance update_instance_progress total_offset N/A 0 N/A N/A Factory to create a decorator that records instance progress as a series
    of discrete steps.

    Each time the decorator is invoked we bump the total-step-count, so after::

        @step
        def step1():
            ...

        @step
        def step2():
            ...

    we have a total-step-count of 2.

    Each time the step-function (not the step-decorator!) is invoked, we bump
    the current-step-count by 1, so after::

        step1()

    the current-step-count would be 1 giving a progress of ``1 / 2 *
    100`` or 50%.
     N/A step_info N/A dict total total_offset current 0 bump_progress N/A N/A N/A N/A N/A N/A step_info N/A current 1 N/A N/A update_instance_progress context instance N/A step_info N/A current N/A step_info N/A total N/A step_decorator N/A N/A f N/A N/A N/A N/A step_info N/A total 1 inner N/A N/A N/A args kwargs N/A N/A rv N/A f args kwargs N/A N/A bump_progress N/A rv N/A N/A N/A functools wraps f N/A inner N/A N/A step_decorator N/A VMOps N/A object N/A N/A Management class for VM-related tasks. __init__ N/A N/A self session virtapi N/A N/A N/A N/A self compute_api N/A N/A compute API N/A N/A self _session session N/A N/A self _virtapi virtapi N/A N/A self _volumeops N/A N/A volumeops VolumeOps N/A self _session N/A N/A self firewall_driver N/A N/A firewall load_driver DEFAULT_FIREWALL_DRIVER xenapi_session N/A self _session N/A vif_impl N/A N/A importutils import_class N/A N/A CONF xenserver vif_driver N/A N/A self vif_driver N/A vif_impl xenapi_session N/A self _session N/A N/A self default_root_dev /dev/sda N/A N/A N/A LOG debug Importing image upload handler: %s N/A N/A CONF xenserver image_upload_handler N/A N/A self image_upload_handler N/A N/A importutils import_object N/A N/A CONF xenserver image_upload_handler N/A agent_enabled N/A N/A self instance N/A N/A N/A N/A N/A CONF xenserver disable_agent N/A N/A False N/A N/A N/A xapi_agent should_use_agent instance N/A _get_agent N/A N/A self instance vm_ref N/A N/A N/A N/A N/A self agent_enabled instance N/A N/A N/A N/A xapi_agent XenAPIBasedAgent N/A self _session N/A self _virtapi instance vm_ref N/A N/A N/A exception NovaException N/A _ Error: Agent is disabled N/A instance_exists N/A N/A self name_label N/A N/A N/A N/A N/A N/A vm_utils lookup N/A self _session name_label None N/A list_instances N/A N/A self N/A N/A N/A List VM instances. N/A name_labels N/A N/A N/A vm_ref vm_rec N/A N/A vm_utils list_vms N/A self _session N/A N/A N/A N/A name_labels append N/A vm_rec N/A name_label N/A name_labels N/A list_instance_uuids N/A N/A self N/A N/A N/A Get the list of nova instance uuids for VMs found on the
        hypervisor.
         N/A nova_uuids N/A N/A N/A vm_ref vm_rec N/A N/A vm_utils list_vms N/A self _session N/A N/A other_config N/A vm_rec N/A other_config N/A nova_uuid N/A N/A other_config get nova_uuid N/A nova_uuid N/A N/A N/A N/A nova_uuids append nova_uuid N/A nova_uuids N/A confirm_migration N/A N/A self migration instance network_info N/A N/A N/A N/A N/A self _destroy_orig_vm instance network_info N/A _destroy_orig_vm N/A N/A self instance network_info N/A N/A N/A name_label N/A N/A self _get_orig_vm_name_label instance N/A vm_ref N/A N/A vm_utils lookup N/A self _session name_label N/A N/A N/A self _destroy instance vm_ref network_info network_info N/A _attach_mapped_block_devices N/A N/A self instance block_device_info N/A N/A N/A block_device_mapping N/A N/A virt_driver block_device_info_get_mapping block_device_info N/A vol block_device_mapping N/A N/A N/A N/A vol N/A mount_device N/A instance N/A root_device_name N/A N/A N/A connection_info N/A vol N/A connection_info N/A mount_device N/A N/A N/A N/A vol N/A mount_device rpartition / N/A 2 N/A N/A N/A N/A self _volumeops attach_volume connection_info N/A instance N/A name mount_device hotplug False N/A finish_revert_migration N/A N/A self context instance block_device_info power_on N/A None True N/A N/A N/A N/A self _restore_orig_vm_and_cleanup_orphan instance block_device_info power_on N/A _restore_orig_vm_and_cleanup_orphan N/A N/A self instance block_device_info power_on N/A None True N/A N/A name_label N/A N/A self _get_orig_vm_name_label instance N/A vm_ref N/A N/A vm_utils lookup N/A self _session name_label N/A new_ref N/A N/A vm_utils lookup N/A self _session N/A instance N/A name N/A N/A vm_ref None N/A N/A N/A new_ref None N/A N/A N/A N/A self _destroy instance new_ref N/A name_label N/A instance N/A name N/A N/A N/A vm_utils set_vm_name_label N/A self _session vm_ref name_label N/A N/A N/A self _attach_mapped_block_devices instance block_device_info N/A N/A N/A new_ref None N/A N/A vm_ref new_ref N/A N/A power_on N/A N/A vm_utils is_vm_shutdown N/A self _session vm_ref N/A N/A N/A N/A self _start instance vm_ref N/A finish_migration N/A N/A self context migration instance disk_info network_info image_meta resize_instance block_device_info power_on N/A None True N/A null_step_decorator N/A N/A f N/A N/A N/A f N/A create_disks_step N/A N/A undo_mgr disk_image_type image_meta name_label N/A N/A N/A import_root True N/A root_vol_vdi None N/A block_device_info N/A N/A N/A N/A LOG debug Block device information present: %s block_device_info instance instance N/A bdm N/A block_device_info N/A block_device_mapping N/A N/A N/A N/A bdm N/A mount_device N/A instance N/A root_device_name N/A N/A connection_info N/A bdm N/A connection_info N/A N/A _sr root_vol_vdi N/A N/A N/A self _volumeops connect_volume connection_info N/A import_root False N/A N/A vdis N/A N/A vm_utils import_all_migrated_disks N/A self _session instance import_root import_root N/A root_vol_vdi N/A N/A vol_vdi_ref N/A N/A N/A self _session call_xenapi VDI.get_by_uuid root_vol_vdi N/A N/A vdis N/A root N/A dict uuid root_vol_vdi file None ref vol_vdi_ref osvol True undo_create_disks N/A N/A N/A N/A N/A eph_vdis N/A vdis N/A ephemerals N/A root_vdi N/A vdis N/A root N/A vdi_refs N/A N/A vdi N/A ref N/A vdi N/A N/A eph_vdis values N/A N/A N/A N/A root_vdi get osvol False N/A N/A N/A N/A vdi_refs append N/A root_vdi N/A ref N/A N/A N/A N/A N/A self _volumeops safe_cleanup_from_vdis N/A root_vdi N/A ref N/A N/A N/A vm_utils safe_destroy_vdis N/A self _session vdi_refs N/A N/A N/A N/A undo_mgr undo_with undo_create_disks N/A vdis N/A completed_callback N/A N/A N/A N/A N/A N/A N/A self _update_instance_progress context instance step 5 total_steps RESIZE_TOTAL_STEPS N/A N/A N/A N/A self _spawn context instance image_meta null_step_decorator create_disks_step first_boot False injected_files None admin_password None network_info network_info block_device_info block_device_info name_label None rescue False power_on power_on resize resize_instance completed_callback completed_callback N/A _start N/A N/A self instance vm_ref bad_volumes_callback start_pause N/A None None False N/A N/A Power on a VM instance. N/A vm_ref N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A LOG debug Starting instance instance instance N/A bad_volumes_callback N/A N/A bad_devices N/A N/A N/A self _volumeops find_bad_volumes vm_ref N/A device_name bad_devices N/A N/A N/A N/A N/A self _volumeops detach_volume None N/A instance N/A name device_name N/A N/A N/A N/A self _session call_xenapi VM.start_on vm_ref N/A N/A self _session host_ref start_pause False N/A N/A bad_volumes_callback bad_devices N/A N/A N/A bad_volumes_callback bad_devices N/A _get_vdis_for_instance N/A N/A self context instance name_label image_meta image_type block_device_info N/A N/A N/A Create or connect to all virtual disks for this instance. N/A vdis N/A N/A self _connect_cinder_volumes instance block_device_info N/A N/A root vdis N/A N/A create_image_vdis N/A N/A vm_utils create_image context N/A self _session instance name_label N/A image_meta id image_type N/A N/A N/A vdis update create_image_vdis N/A vdi N/A N/A six itervalues vdis N/A N/A N/A vdi N/A ref N/A N/A N/A self _session call_xenapi VDI.get_by_uuid N/A vdi N/A uuid N/A vdis N/A _connect_cinder_volumes N/A N/A self instance block_device_info N/A N/A N/A Attach all the cinder volumes described in block_device_info. N/A vdis N/A N/A block_device_info N/A N/A msg N/A block device info: %s block_device_info N/A N/A N/A LOG debug N/A N/A strutils mask_password msg instance instance N/A root_device_name N/A block_device_info N/A root_device_name N/A bdm N/A block_device_info N/A block_device_mapping N/A N/A N/A N/A N/A block_device strip_prefix N/A bdm N/A mount_device N/A N/A block_device strip_prefix root_device_name N/A N/A type_ root N/A N/A type_ N/A bdm N/A mount_device N/A conn_info N/A bdm N/A connection_info N/A N/A _sr vdi_uuid N/A N/A N/A self _volumeops connect_volume conn_info N/A vdi_uuid N/A N/A N/A vdis N/A type_ N/A dict uuid vdi_uuid file None osvol True N/A vdis N/A _update_last_dom_id N/A N/A self vm_ref N/A N/A N/A other_config N/A N/A N/A N/A self _session VM get_other_config vm_ref N/A N/A other_config N/A last_dom_id N/A N/A N/A N/A self _session VM get_domid vm_ref N/A N/A N/A N/A N/A self _session VM set_other_config vm_ref other_config N/A spawn N/A N/A self context instance image_meta injected_files admin_password network_info block_device_info name_label rescue N/A None None None False N/A N/A block_device_info N/A N/A N/A N/A LOG debug Block device information present: %s block_device_info instance instance N/A N/A block_device_info N/A N/A block_device_info N/A root_device_name N/A N/A N/A block_device_info N/A root_device_name N/A self default_root_dev N/A step N/A make_step_decorator context instance N/A self _update_instance_progress create_disks_step N/A N/A undo_mgr disk_image_type image_meta name_label N/A N/A N/A vdis N/A N/A self _get_vdis_for_instance context instance name_label image_meta disk_image_type block_device_info undo_create_disks N/A N/A N/A N/A N/A vdi_refs N/A N/A vdi N/A ref N/A vdi N/A N/A vdis values N/A N/A N/A vdi get osvol N/A N/A N/A vm_utils safe_destroy_vdis N/A self _session vdi_refs N/A vol_vdi_refs N/A N/A vdi N/A ref N/A vdi N/A N/A vdis values N/A N/A vdi get osvol N/A N/A N/A N/A self _volumeops safe_cleanup_from_vdis vol_vdi_refs N/A N/A N/A N/A undo_mgr undo_with undo_create_disks N/A vdis N/A step N/A N/A N/A self _spawn context instance image_meta step create_disks_step True injected_files admin_password network_info block_device_info name_label rescue N/A _spawn N/A N/A self context instance image_meta step create_disks_step first_boot injected_files admin_password network_info block_device_info name_label rescue power_on resize completed_callback N/A None None None None None False True True None N/A N/A N/A name_label None N/A N/A name_label N/A instance N/A name N/A N/A N/A self _ensure_instance_name_unique name_label N/A N/A N/A self _ensure_enough_free_mem instance attach_disks N/A N/A undo_mgr vm_ref vdis disk_image_type N/A N/A N/A N/A N/A N/A image_meta properties get hw_ipxe_boot False N/A N/A N/A iso vdis N/A N/A N/A N/A vm_utils handle_ipxe_iso N/A self _session instance N/A vdis N/A iso network_info N/A N/A N/A N/A LOG warning N/A _LW ipxe_boot is True but no ISO image found instance instance N/A resize N/A N/A N/A N/A self _resize_up_vdis instance vdis N/A N/A N/A self _attach_disks instance image_meta vm_ref name_label vdis disk_image_type network_info rescue admin_password injected_files N/A N/A first_boot N/A N/A N/A N/A self _attach_mapped_block_devices instance block_device_info N/A attach_pci_devices N/A N/A undo_mgr vm_ref N/A N/A N/A dev_to_passthrough N/A devices N/A N/A pci_manager get_instance_pci_devs instance N/A d devices N/A N/A pci_address N/A d N/A address N/A N/A N/A N/A pci_address count : 1 N/A N/A pci_address N/A 0000: pci_address N/A dev_to_passthrough N/A ,0/ pci_address N/A dev_to_passthrough N/A N/A N/A N/A vm_utils set_other_config_pci N/A self _session vm_ref N/A dev_to_passthrough N/A 1 N/A determine_disk_image_type_step N/A N/A undo_mgr N/A N/A N/A N/A N/A vm_utils determine_disk_image_type image_meta N/A step create_kernel_ramdisk_step N/A N/A undo_mgr N/A N/A N/A N/A kernel_file ramdisk_file N/A N/A vm_utils create_kernel_and_ramdisk context N/A self _session instance name_label undo_create_kernel_ramdisk N/A N/A N/A N/A N/A N/A N/A vm_utils destroy_kernel_ramdisk N/A self _session instance kernel_file ramdisk_file N/A N/A N/A N/A undo_mgr undo_with undo_create_kernel_ramdisk N/A N/A kernel_file ramdisk_file N/A step create_vm_record_step N/A N/A undo_mgr disk_image_type kernel_file ramdisk_file N/A N/A N/A vm_ref N/A N/A self _create_vm_record context instance name_label disk_image_type kernel_file ramdisk_file image_meta rescue undo_create_vm N/A N/A N/A N/A N/A N/A N/A self _destroy instance vm_ref network_info network_info N/A N/A N/A N/A undo_mgr undo_with undo_create_vm N/A vm_ref N/A step attach_devices_step N/A N/A undo_mgr vm_ref vdis disk_image_type N/A N/A N/A N/A attach_disks undo_mgr vm_ref vdis disk_image_type N/A N/A attach_pci_devices undo_mgr vm_ref N/A step N/A rescue N/A attach_orig_disks_step N/A N/A undo_mgr vm_ref N/A N/A N/A vbd_refs N/A N/A self _attach_orig_disks instance vm_ref undo_attach_orig_disks N/A N/A N/A N/A N/A vbd_ref vbd_refs N/A N/A N/A N/A vm_utils destroy_vbd N/A self _session vbd_ref N/A N/A N/A N/A undo_mgr undo_with undo_attach_orig_disks N/A step inject_instance_data_step N/A N/A undo_mgr vm_ref vdis N/A N/A N/A N/A N/A self _inject_instance_metadata instance vm_ref N/A N/A N/A self _inject_auto_disk_config instance vm_ref N/A first_boot N/A N/A N/A N/A self _inject_hostname instance vm_ref rescue N/A N/A N/A self _file_inject_vm_settings instance vm_ref vdis network_info N/A N/A N/A self inject_network_info instance network_info vm_ref N/A step setup_network_step N/A N/A undo_mgr vm_ref N/A N/A N/A N/A N/A self _create_vifs instance vm_ref network_info N/A N/A N/A self _prepare_instance_filter instance network_info N/A step start_paused_step N/A N/A undo_mgr vm_ref N/A N/A N/A power_on N/A N/A N/A N/A self _start instance vm_ref start_pause True N/A step boot_and_configure_instance_step N/A N/A undo_mgr vm_ref N/A N/A N/A N/A N/A self _unpause_and_wait vm_ref instance power_on N/A first_boot N/A N/A N/A N/A self _configure_new_instance_with_agent instance vm_ref injected_files admin_password N/A N/A N/A self _remove_hostname instance vm_ref N/A step apply_security_group_filters_step N/A N/A undo_mgr N/A N/A N/A N/A N/A N/A self firewall_driver apply_instance_filter instance network_info N/A step N/A undo_mgr N/A N/A utils UndoManager N/A N/A N/A disk_image_type N/A determine_disk_image_type_step undo_mgr N/A vdis N/A create_disks_step undo_mgr disk_image_type image_meta name_label N/A N/A kernel_file ramdisk_file N/A create_kernel_ramdisk_step undo_mgr N/A vm_ref N/A create_vm_record_step undo_mgr disk_image_type kernel_file ramdisk_file N/A N/A attach_devices_step undo_mgr vm_ref vdis disk_image_type N/A N/A inject_instance_data_step undo_mgr vm_ref vdis N/A timeout N/A CONF vif_plugging_timeout N/A events N/A N/A self _get_neutron_events network_info power_on first_boot N/A N/A N/A N/A N/A N/A self _virtapi wait_for_instance_event instance events deadline timeout error_callback N/A self _neutron_failed_callback N/A N/A N/A N/A LOG debug wait for instance event:%s events N/A N/A setup_network_step undo_mgr vm_ref N/A rescue N/A N/A N/A attach_orig_disks_step undo_mgr vm_ref N/A N/A start_paused_step undo_mgr vm_ref N/A N/A N/A N/A N/A eventlet timeout Timeout N/A N/A N/A N/A self _handle_neutron_event_timeout instance undo_mgr N/A N/A apply_security_group_filters_step undo_mgr N/A N/A boot_and_configure_instance_step undo_mgr vm_ref N/A completed_callback N/A N/A N/A completed_callback N/A N/A N/A Exception N/A N/A msg N/A _ Failed to spawn, rolling back N/A N/A N/A undo_mgr rollback_and_reraise msg msg instance instance N/A _handle_neutron_event_timeout N/A N/A self instance undo_mgr N/A N/A N/A N/A N/A LOG warn N/A _LW Timeout waiting for vif plugging callback instance instance N/A N/A CONF vif_plugging_is_fatal N/A N/A N/A N/A exception VirtualInterfaceCreateException N/A _unpause_and_wait N/A N/A self vm_ref instance power_on N/A N/A N/A power_on N/A N/A N/A N/A LOG debug Update instance when power on instance instance N/A N/A N/A N/A N/A self _session VM unpause vm_ref N/A N/A N/A self _wait_for_instance_to_start instance vm_ref N/A N/A N/A self _update_last_dom_id vm_ref N/A _neutron_failed_callback N/A N/A self event_name instance N/A N/A N/A N/A N/A LOG warn N/A _LW Neutron Reported failure on event %(event)s N/A event event_name instance instance N/A N/A CONF vif_plugging_is_fatal N/A N/A N/A N/A exception VirtualInterfaceCreateException N/A _get_neutron_events N/A N/A self network_info power_on first_boot N/A N/A N/A timeout N/A CONF vif_plugging_timeout N/A N/A N/A N/A utils is_neutron power_on timeout first_boot N/A N/A N/A N/A network-vif-plugged N/A vif N/A id N/A vif network_info N/A N/A N/A vif get active True False N/A N/A N/A N/A _attach_orig_disks N/A N/A self instance vm_ref N/A N/A N/A orig_vm_ref N/A N/A vm_utils lookup N/A self _session N/A instance N/A name N/A orig_vdi_refs N/A N/A self _find_vdi_refs orig_vm_ref exclude_volumes True N/A root_vdi_ref N/A N/A orig_vdi_refs get DEVICE_ROOT N/A N/A root_vdi_ref N/A N/A N/A N/A exception NotFound N/A _ Unable to find root VBD/VDI for VM N/A vbd_ref N/A N/A vm_utils create_vbd N/A self _session vm_ref root_vdi_ref DEVICE_RESCUE bootable False N/A vbd_refs N/A vbd_ref N/A swap_vdi_ref N/A N/A orig_vdi_refs get DEVICE_SWAP N/A swap_vdi_ref N/A N/A vbd_ref N/A N/A vm_utils create_vbd N/A self _session vm_ref swap_vdi_ref DEVICE_SWAP bootable False N/A N/A N/A vbd_refs append vbd_ref N/A N/A userdevice vdi_ref N/A N/A six iteritems orig_vdi_refs N/A N/A N/A userdevice DEVICE_EPHEMERAL N/A N/A vbd_ref N/A N/A vm_utils create_vbd N/A self _session vm_ref vdi_ref userdevice bootable False N/A N/A N/A vbd_refs append vbd_ref N/A vbd_refs N/A _file_inject_vm_settings N/A N/A self instance vm_ref vdis network_info N/A N/A N/A N/A CONF flat_injected N/A N/A N/A N/A vm_utils preconfigure_instance N/A self _session instance N/A N/A vdis N/A root N/A ref network_info N/A _ensure_instance_name_unique N/A N/A self name_label N/A N/A N/A vm_ref N/A N/A vm_utils lookup N/A self _session name_label N/A N/A vm_ref None N/A N/A N/A N/A exception InstanceExists name name_label N/A _ensure_enough_free_mem N/A N/A self instance N/A N/A N/A N/A N/A N/A vm_utils is_enough_free_mem N/A self _session instance N/A N/A N/A N/A exception InsufficientFreeMemory uuid N/A instance N/A uuid N/A _create_vm_record N/A N/A self context instance name_label disk_image_type kernel_file ramdisk_file image_meta rescue N/A False N/A N/A Create the VM record in Xen, making sure that we do not create
        a duplicate name-label.  Also do a rough sanity check on memory
        to try to short-circuit a potential failure later.  (The memory
        check only accounts for running VMs, so it can miss other builds
        that are in progress.)
         N/A mode N/A N/A vm_utils determine_vm_mode instance disk_image_type N/A rescue N/A N/A rescue_vm_mode N/A N/A N/A image_meta properties get hw_vm_mode None N/A N/A rescue_vm_mode None N/A N/A N/A N/A LOG debug vm_mode not found in rescue image properties.Setting vm_mode to %s mode instance instance N/A N/A mode N/A N/A vm_mode canonicalize rescue_vm_mode N/A N/A N/A instance vm_mode mode N/A N/A N/A instance vm_mode mode N/A N/A N/A instance save N/A device_id N/A N/A vm_utils get_vm_device_id N/A self _session image_meta N/A use_pv_kernel N/A mode N/A vm_mode XEN N/A N/A N/A LOG debug Using PV kernel: %s use_pv_kernel instance instance N/A vm_ref N/A N/A vm_utils create_vm N/A self _session instance name_label kernel_file ramdisk_file use_pv_kernel device_id N/A vm_ref N/A _attach_disks N/A N/A self instance image_meta vm_ref name_label vdis disk_image_type network_info rescue admin_password files N/A False None None N/A N/A flavor N/A N/A instance get_flavor N/A N/A disk_image_type N/A N/A vm_utils ImageType DISK_ISO N/A N/A root_disk_size N/A flavor root_gb N/A N/A root_disk_size 0 N/A N/A N/A N/A vm_utils generate_iso_blank_root_disk N/A self _session instance vm_ref DEVICE_ROOT name_label root_disk_size N/A cd_vdi N/A N/A vdis pop iso N/A N/A N/A vm_utils attach_cd N/A self _session vm_ref N/A cd_vdi N/A ref DEVICE_CD N/A N/A root_vdi N/A vdis N/A root N/A auto_disk_config N/A instance N/A auto_disk_config N/A rescue N/A N/A N/A N/A N/A N/A image_meta properties obj_attr_is_set hw_auto_disk_config N/A N/A N/A N/A LOG debug 'hw_auto_disk_config' value not found inrescue image_properties. Setting value to %s auto_disk_config instance instance N/A N/A auto_disk_config N/A N/A strutils bool_from_string N/A N/A image_meta properties hw_auto_disk_config N/A auto_disk_config N/A N/A N/A N/A LOG debug Auto configuring disk, attempting to resize root disk... instance instance N/A N/A N/A vm_utils try_auto_configure_disk N/A self _session N/A root_vdi N/A ref N/A flavor root_gb N/A N/A N/A vm_utils create_vbd N/A self _session vm_ref N/A root_vdi N/A ref DEVICE_ROOT bootable True osvol N/A N/A root_vdi get osvol N/A N/A type_ vdi_info N/A N/A vdis items N/A N/A N/A N/A N/A type_ startswith /dev N/A N/A N/A userdevice N/A N/A ord N/A N/A block_device strip_prefix type_ N/A ord a N/A N/A N/A vm_utils create_vbd N/A self _session vm_ref N/A vdi_info N/A ref userdevice bootable False osvol N/A N/A vdi_info get osvol N/A swap_mb N/A flavor swap N/A N/A N/A rescue swap_mb N/A N/A N/A N/A vm_utils generate_swap N/A self _session instance vm_ref DEVICE_SWAP name_label swap_mb N/A ephemeral_gb N/A flavor ephemeral_gb N/A N/A N/A rescue ephemeral_gb N/A N/A ephemeral_vdis N/A N/A vdis get ephemerals N/A ephemeral_vdis N/A N/A N/A userdevice ephemeral_vdi N/A N/A six iteritems ephemeral_vdis N/A N/A N/A N/A vm_utils create_vbd N/A self _session vm_ref N/A ephemeral_vdi N/A ref userdevice bootable False N/A N/A N/A N/A vm_utils generate_ephemeral N/A self _session instance vm_ref DEVICE_EPHEMERAL name_label ephemeral_gb N/A N/A N/A configdrive required_by instance N/A N/A N/A N/A vm_utils generate_configdrive N/A self _session instance vm_ref DEVICE_CONFIGDRIVE network_info admin_password admin_password files files N/A _wait_for_instance_to_start N/A N/A self instance vm_ref N/A N/A N/A N/A N/A LOG debug Waiting for instance state to become running instance instance N/A expiration N/A N/A N/A time time N/A N/A CONF xenserver running_timeout N/A N/A N/A N/A time time expiration N/A N/A state N/A N/A vm_utils get_power_state N/A self _session vm_ref N/A N/A state N/A power_state RUNNING N/A N/A N/A N/A N/A greenthread sleep 0.5 N/A _configure_new_instance_with_agent N/A N/A self instance vm_ref injected_files admin_password N/A N/A N/A N/A N/A N/A self agent_enabled instance N/A N/A N/A N/A LOG debug Skip agent setup, not enabled. instance instance N/A N/A agent N/A N/A self _get_agent instance vm_ref N/A version N/A N/A agent get_version N/A N/A version N/A N/A N/A N/A LOG debug Skip agent setup, unable to contact agent. instance instance N/A N/A N/A N/A LOG debug Detected agent version: %s version instance instance N/A N/A N/A agent inject_ssh_key N/A injected_files N/A N/A N/A N/A agent inject_files injected_files N/A admin_password N/A N/A N/A N/A agent set_admin_password admin_password N/A N/A N/A agent resetnetwork N/A N/A N/A agent update_if_needed version N/A _prepare_instance_filter N/A N/A self instance network_info N/A N/A N/A N/A N/A N/A N/A N/A self firewall_driver setup_basic_filtering instance network_info N/A N/A N/A NotImplementedError N/A N/A N/A N/A N/A N/A self firewall_driver prepare_instance_filter instance network_info N/A _get_vm_opaque_ref N/A N/A self instance check_rescue N/A False N/A N/A Get xapi OpaqueRef from a db record.
        :param check_rescue: if True will return the 'name'-rescue vm if it
                             exists, instead of just 'name'
         N/A vm_ref N/A N/A vm_utils lookup N/A self _session N/A instance N/A name check_rescue N/A N/A vm_ref None N/A N/A N/A N/A exception InstanceNotFound instance_id N/A instance N/A name N/A vm_ref N/A _acquire_bootlock N/A N/A self vm N/A N/A N/A Prevent an instance from booting. N/A N/A N/A N/A self _session call_xenapi VM.set_blocked_operations vm N/A start N/A _release_bootlock N/A N/A self vm N/A N/A N/A Allow an instance to boot. N/A N/A N/A N/A self _session call_xenapi VM.remove_from_blocked_operations vm start N/A snapshot N/A N/A self context instance image_id update_task_state N/A N/A N/A Create snapshot from a running VM instance.

        :param context: request context
        :param instance: instance to be snapshotted
        :param image_id: id of image to upload to

        Steps involved in a XenServer snapshot:

        1. XAPI-Snapshot: Snapshotting the instance using XenAPI. This
           creates: Snapshot (Template) VM, Snapshot VBD, Snapshot VDI,
           Snapshot VHD

        2. Wait-for-coalesce: The Snapshot VDI and Instance VDI both point to
           a 'base-copy' VDI.  The base_copy is immutable and may be chained
           with other base_copies.  If chained, the base_copies
           coalesce together, so, we must wait for this coalescing to occur to
           get a stable representation of the data on disk.

        3. Push-to-data-store: Once coalesced, we call
           'image_upload_handler' to upload the images.

         N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A label N/A %s-snapshot N/A instance N/A name N/A start_time N/A N/A timeutils utcnow N/A N/A N/A vm_utils snapshot_attached_here N/A self _session instance vm_ref label post_snapshot_callback update_task_state vdi_uuids N/A N/A N/A update_task_state task_state N/A task_states IMAGE_UPLOADING expected_state N/A task_states IMAGE_PENDING_UPLOAD N/A N/A N/A N/A self image_upload_handler upload_image context N/A self _session instance image_id vdi_uuids N/A duration N/A N/A timeutils delta_seconds start_time N/A N/A timeutils utcnow N/A N/A N/A LOG debug Finished snapshot and upload for VM, duration: %(duration).2f secs for image %(image_id)s N/A image_id duration image_id duration instance instance N/A post_interrupted_snapshot_cleanup N/A N/A self context instance N/A N/A N/A Cleans up any resources left after a failed snapshot. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A vm_utils remove_old_snapshots N/A self _session instance vm_ref N/A _get_orig_vm_name_label N/A N/A self instance N/A N/A N/A N/A N/A instance N/A name -orig N/A _update_instance_progress N/A N/A self context instance step total_steps N/A N/A N/A Update instance progress percent to reflect current step number
         N/A progress N/A round N/A N/A N/A float step total_steps 100 N/A N/A N/A LOG debug Updating progress to %d progress instance instance N/A N/A instance progress progress N/A N/A N/A instance save N/A _resize_ensure_vm_is_shutdown N/A N/A self instance vm_ref N/A N/A N/A N/A N/A vm_utils is_vm_shutdown N/A self _session vm_ref N/A N/A N/A N/A LOG debug VM was already shutdown. instance instance N/A N/A N/A N/A N/A vm_utils clean_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A N/A LOG debug Clean shutdown did not complete successfully, trying hard shutdown. instance instance N/A N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A N/A exception ResizeError reason N/A _ Unable to terminate instance. N/A _migrate_disk_resizing_down N/A N/A self context instance dest flavor vm_ref sr_path N/A N/A N/A step N/A make_step_decorator context instance N/A self _update_instance_progress total_offset 1 fake_step_to_match_resizing_up N/A N/A N/A N/A N/A N/A step rename_and_power_off_vm N/A N/A undo_mgr N/A N/A N/A N/A N/A self _resize_ensure_vm_is_shutdown instance vm_ref N/A N/A N/A self _apply_orig_vm_name_label instance vm_ref restore_orig_vm N/A N/A N/A N/A N/A N/A N/A self _restore_orig_vm_and_cleanup_orphan instance N/A N/A N/A N/A undo_mgr undo_with restore_orig_vm N/A step create_copy_vdi_and_resize N/A N/A undo_mgr old_vdi_ref N/A N/A N/A N/A new_vdi_ref new_vdi_uuid N/A N/A vm_utils resize_disk N/A self _session instance old_vdi_ref flavor cleanup_vdi_copy N/A N/A N/A N/A N/A N/A N/A vm_utils destroy_vdi N/A self _session new_vdi_ref N/A N/A N/A N/A undo_mgr undo_with cleanup_vdi_copy N/A N/A new_vdi_ref new_vdi_uuid N/A step transfer_vhd_to_dest N/A N/A new_vdi_ref new_vdi_uuid N/A N/A N/A N/A N/A vm_utils migrate_vhd N/A self _session instance new_vdi_uuid dest sr_path 0 N/A N/A N/A vm_utils destroy_vdi N/A self _session new_vdi_ref N/A step N/A undo_mgr N/A N/A utils UndoManager N/A N/A N/A N/A fake_step_to_match_resizing_up N/A N/A rename_and_power_off_vm undo_mgr N/A N/A old_vdi_ref _ignore N/A N/A vm_utils get_vdi_for_vm_safely N/A self _session vm_ref N/A N/A new_vdi_ref new_vdi_uuid N/A create_copy_vdi_and_resize undo_mgr old_vdi_ref N/A N/A transfer_vhd_to_dest new_vdi_ref new_vdi_uuid N/A N/A N/A Exception N/A error N/A N/A N/A N/A LOG exception N/A _LE _migrate_disk_resizing_down failed. Restoring orig vm instance instance N/A N/A N/A undo_mgr _rollback N/A N/A N/A exception InstanceFaultRollback error N/A _migrate_disk_resizing_up N/A N/A self context instance dest vm_ref sr_path N/A N/A N/A step N/A make_step_decorator context instance N/A self _update_instance_progress total_offset 1 N/A 
        NOTE(johngarbutt) Understanding how resize up works.

        For resize up, we attempt to minimize the amount of downtime
        for users by copying snapshots of their disks, while their
        VM is still running.

        It is worth noting, that migrating the snapshot, means migrating
        the whole VHD chain up to, but not including, the leaf VHD the VM
        is still writing to.

        Once the snapshots have been migrated, we power down the VM
        and migrate all the disk changes since the snapshots were taken.

        In addition, the snapshots are taken at the latest possible point,
        to help minimize the time it takes to migrate the disk changes
        after the VM has been turned off.

        Before starting to migrate any of the disks, we rename the VM,
        to <current_vm_name>-orig, in case we attempt to migrate the VM
        back onto this host, and so once we have completed the migration
        of the disk, confirm/rollback migrate can work in the usual way.

        If there is a failure at any point, we need to rollback to the
        position we were in before starting to migrate. In particular,
        we need to delete and snapshot VDIs that may have been created,
        and restore the VM back to its original name.
         fake_step_to_show_snapshot_complete N/A N/A N/A N/A N/A N/A step transfer_immutable_vhds N/A N/A root_vdi_uuids N/A N/A N/A immutable_root_vdi_uuids N/A root_vdi_uuids N/A 1 N/A N/A vhd_num vdi_uuid N/A enumerate immutable_root_vdi_uuids start 1 N/A N/A N/A N/A vm_utils migrate_vhd N/A self _session instance vdi_uuid dest sr_path vhd_num N/A N/A N/A LOG debug Migrated root base vhds instance instance N/A step _process_ephemeral_chain_recursive N/A N/A ephemeral_chains active_vdi_uuids N/A N/A N/A number_of_chains N/A len ephemeral_chains N/A N/A number_of_chains 0 N/A N/A N/A N/A LOG debug Migrated all base vhds. instance instance N/A N/A power_down_and_transfer_leaf_vhds active_root_vdi_uuid active_vdi_uuids N/A remaining_chains N/A N/A N/A number_of_chains 1 N/A N/A remaining_chains N/A ephemeral_chains N/A 1 N/A ephemeral_disk_index N/A len active_vdi_uuids N/A userdevice N/A N/A int DEVICE_EPHEMERAL ephemeral_disk_index N/A N/A N/A vm_utils snapshot_attached_here N/A self _session instance vm_ref label N/A str userdevice chain_vdi_uuids N/A N/A N/A vdi_ref vm_vdi_rec N/A N/A vm_utils get_vdi_for_vm_safely N/A self _session vm_ref N/A str userdevice N/A active_uuid N/A vm_vdi_rec N/A uuid N/A N/A N/A active_vdi_uuids append active_uuid N/A inactive_vdi_uuids N/A chain_vdi_uuids N/A 1 N/A ephemeral_disk_number N/A ephemeral_disk_index 1 N/A N/A seq_num vdi_uuid N/A enumerate inactive_vdi_uuids start 1 N/A N/A N/A N/A vm_utils migrate_vhd N/A self _session instance vdi_uuid dest sr_path seq_num ephemeral_disk_number N/A N/A N/A LOG debug Read-only migrated for disk: %s userdevice instance instance N/A N/A _process_ephemeral_chain_recursive remaining_chains active_vdi_uuids N/A transfer_ephemeral_disks_then_all_leaf_vdis N/A N/A N/A N/A N/A ephemeral_chains N/A N/A vm_utils get_all_vdi_uuids_for_vm N/A self _session vm_ref min_userdevice N/A int DEVICE_EPHEMERAL N/A ephemeral_chains N/A N/A ephemeral_chains N/A list ephemeral_chains N/A N/A ephemeral_chains N/A N/A N/A _process_ephemeral_chain_recursive ephemeral_chains N/A N/A step power_down_and_transfer_leaf_vhds N/A N/A root_vdi_uuid ephemeral_vdi_uuids N/A None N/A N/A N/A N/A self _resize_ensure_vm_is_shutdown instance vm_ref N/A N/A root_vdi_uuid None N/A N/A N/A N/A vm_utils migrate_vhd N/A self _session instance root_vdi_uuid dest sr_path 0 N/A ephemeral_vdi_uuids N/A N/A N/A ephemeral_disk_number ephemeral_vdi_uuid N/A enumerate ephemeral_vdi_uuids start 1 N/A N/A N/A N/A vm_utils migrate_vhd N/A self _session instance ephemeral_vdi_uuid dest sr_path 0 ephemeral_disk_number N/A step N/A N/A N/A self _apply_orig_vm_name_label instance vm_ref N/A N/A N/A label N/A %s-snapshot N/A instance N/A name N/A N/A N/A volume_utils is_booted_from_volume N/A self _session vm_ref N/A N/A N/A N/A LOG debug Not snapshotting root disk since it is a volume instance instance N/A N/A fake_step_to_show_snapshot_complete N/A N/A fake_step_to_show_snapshot_complete N/A active_root_vdi_uuid None N/A N/A transfer_ephemeral_disks_then_all_leaf_vdis N/A N/A N/A N/A vm_utils snapshot_attached_here N/A self _session instance vm_ref label root_vdi_uuids N/A N/A N/A fake_step_to_show_snapshot_complete N/A N/A transfer_immutable_vhds root_vdi_uuids N/A N/A vdi_ref vm_vdi_rec N/A N/A vm_utils get_vdi_for_vm_safely N/A self _session vm_ref N/A active_root_vdi_uuid N/A vm_vdi_rec N/A uuid N/A N/A transfer_ephemeral_disks_then_all_leaf_vdis N/A N/A N/A Exception N/A error N/A N/A N/A N/A LOG exception N/A _LE _migrate_disk_resizing_up failed. Restoring orig vm due_to: %s. error instance instance N/A N/A N/A N/A N/A self _restore_orig_vm_and_cleanup_orphan instance N/A N/A N/A Exception N/A rollback_error N/A N/A N/A N/A LOG warning N/A _LW _migrate_disk_resizing_up failed to rollback: %s rollback_error instance instance N/A N/A N/A exception InstanceFaultRollback error N/A _apply_orig_vm_name_label N/A N/A self instance vm_ref N/A N/A N/A name_label N/A N/A self _get_orig_vm_name_label instance N/A N/A N/A vm_utils set_vm_name_label N/A self _session vm_ref name_label N/A _ensure_not_resize_down_ephemeral N/A N/A self instance flavor N/A N/A N/A old_gb N/A instance N/A ephemeral_gb N/A new_gb N/A flavor ephemeral_gb N/A N/A old_gb new_gb N/A N/A reason N/A _ Can't resize down ephemeral disks. N/A N/A N/A exception ResizeError reason N/A migrate_disk_and_power_off N/A N/A self context instance dest flavor block_device_info N/A N/A N/A Copies a VHD from one host machine to another, possibly
        resizing filesystem beforehand.

        :param instance: the instance that owns the VHD in question.
        :param dest: the destination host machine.
        :param flavor: flavor to resize to
         N/A N/A N/A self _ensure_not_resize_down_ephemeral instance flavor N/A N/A N/A self _update_instance_progress context instance step 0 total_steps RESIZE_TOTAL_STEPS N/A old_gb N/A instance N/A root_gb N/A new_gb N/A flavor root_gb N/A resize_down N/A old_gb new_gb N/A N/A N/A new_gb 0 N/A old_gb 0 N/A N/A reason N/A _ Can't resize a disk to 0 GB. N/A N/A N/A exception ResizeError reason reason N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A sr_path N/A N/A vm_utils get_sr_path N/A self _session N/A resize_down N/A N/A N/A N/A self _migrate_disk_resizing_down context instance dest flavor vm_ref sr_path N/A N/A N/A N/A self _migrate_disk_resizing_up context instance dest vm_ref sr_path N/A N/A N/A self _detach_block_devices_from_orig_vm instance block_device_info N/A disk_info N/A N/A disk_info N/A _detach_block_devices_from_orig_vm N/A N/A self instance block_device_info N/A N/A N/A block_device_mapping N/A N/A virt_driver block_device_info_get_mapping block_device_info N/A name_label N/A N/A self _get_orig_vm_name_label instance N/A vol block_device_mapping N/A N/A connection_info N/A vol N/A connection_info N/A mount_device N/A N/A N/A N/A vol N/A mount_device rpartition / N/A 2 N/A N/A N/A N/A self _volumeops detach_volume connection_info name_label mount_device N/A _resize_up_vdis N/A N/A self instance vdis N/A N/A N/A new_root_gb N/A instance N/A root_gb N/A root_vdi N/A N/A vdis get root N/A N/A new_root_gb root_vdi N/A N/A N/A N/A root_vdi get osvol False N/A N/A N/A N/A LOG debug Not resizing the root volume. instance instance N/A N/A vdi_ref N/A root_vdi N/A ref N/A N/A N/A vm_utils update_vdi_virtual_size N/A self _session instance vdi_ref new_root_gb N/A ephemeral_vdis N/A N/A vdis get ephemerals N/A N/A ephemeral_vdis N/A N/A N/A total_ephemeral_gb N/A instance N/A ephemeral_gb N/A total_ephemeral_gb N/A N/A sizes N/A N/A vm_utils get_ephemeral_disk_sizes total_ephemeral_gb N/A N/A userdevice new_size N/A enumerate sizes start N/A int DEVICE_EPHEMERAL N/A N/A vdi N/A N/A ephemeral_vdis get N/A str userdevice N/A vdi N/A N/A vdi_ref N/A vdi N/A ref N/A N/A N/A vm_utils update_vdi_virtual_size N/A self _session instance vdi_ref new_size N/A N/A N/A N/A LOG debug Generating new ephemeral vdi %d during resize userdevice instance instance N/A vdi_ref N/A N/A vm_utils generate_single_ephemeral N/A self _session instance None userdevice new_size N/A N/A vdis N/A N/A str userdevice N/A ref generated vdi_ref True N/A reboot N/A N/A self instance reboot_type bad_volumes_callback N/A None N/A N/A Reboot VM instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance check_rescue True N/A N/A N/A N/A reboot_type HARD N/A N/A N/A N/A N/A self _session call_xenapi VM.hard_reboot vm_ref N/A N/A N/A N/A N/A self _session call_xenapi VM.clean_reboot vm_ref N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A exc N/A N/A details N/A exc details N/A N/A N/A N/A details N/A 0 VM_BAD_POWER_STATE N/A N/A details N/A -1 halted N/A N/A N/A N/A LOG info N/A _LI Starting halted instance found during reboot instance instance N/A N/A N/A self _start instance vm_ref vm_ref bad_volumes_callback bad_volumes_callback N/A N/A N/A N/A N/A details N/A 0 SR_BACKEND_FAILURE_46 N/A N/A N/A N/A LOG warning N/A _LW Reboot failed due to bad volumes, detaching bad volumes and starting halted instance instance instance N/A N/A N/A self _start instance vm_ref vm_ref bad_volumes_callback bad_volumes_callback N/A N/A N/A N/A set_admin_password N/A N/A self instance new_pass N/A N/A N/A Set the root/admin password on the VM instance. N/A N/A N/A self agent_enabled instance N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A agent N/A N/A self _get_agent instance vm_ref N/A N/A N/A agent set_admin_password new_pass N/A N/A N/A NotImplementedError N/A inject_file N/A N/A self instance path contents N/A N/A N/A Write a file to the VM instance. N/A N/A N/A self agent_enabled instance N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A agent N/A N/A self _get_agent instance vm_ref N/A N/A N/A agent inject_file path contents N/A N/A N/A NotImplementedError N/A _sanitize_xenstore_key N/A N/A key N/A N/A N/A Xenstore only allows the following characters as keys:

        ABCDEFGHIJKLMNOPQRSTUVWXYZ
        abcdefghijklmnopqrstuvwxyz
        0123456789-/_@

        So convert the others to _

        Also convert / to _, because that is somewhat like a path
        separator.
         N/A allowed_chars ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@ N/A N/A N/A join N/A N/A N/A N/A x allowed_chars x _ N/A x key N/A staticmethod _inject_instance_metadata N/A N/A self instance vm_ref N/A N/A N/A Inject instance metadata into xenstore. store_meta N/A N/A topdir data_dict N/A N/A N/A N/A key value N/A N/A data_dict items N/A N/A key N/A N/A self _sanitize_xenstore_key key N/A value N/A value N/A N/A N/A self _add_to_param_xenstore vm_ref N/A %s/%s N/A topdir key N/A N/A jsonutils dumps value N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A store_meta vm-data/user-metadata N/A N/A utils instance_meta instance N/A _inject_auto_disk_config N/A N/A self instance vm_ref N/A N/A N/A Inject instance's auto_disk_config attribute into xenstore. store_auto_disk_config N/A N/A key value N/A N/A N/A value N/A N/A value True False N/A N/A N/A self _add_to_param_xenstore vm_ref key N/A str value N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A store_auto_disk_config vm-data/auto-disk-config N/A instance N/A auto_disk_config N/A change_instance_metadata N/A N/A self instance diff N/A N/A N/A Apply changes to instance metadata to xenstore. N/A N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A LOG warning N/A _LW Unable to update metadata, VM not found. instance instance exc_info True N/A process_change N/A N/A location change N/A N/A N/A N/A N/A change N/A 0 - N/A N/A N/A N/A self _remove_from_param_xenstore vm_ref location N/A N/A N/A N/A N/A self _delete_from_xenstore instance location vm_ref vm_ref N/A N/A N/A N/A exception InstanceNotFound N/A N/A N/A N/A N/A N/A change N/A 0 + N/A N/A N/A N/A self _add_to_param_xenstore vm_ref location N/A N/A jsonutils dumps N/A change N/A 1 N/A N/A N/A N/A N/A self _write_to_xenstore instance location N/A change N/A 1 vm_ref vm_ref N/A N/A N/A N/A exception InstanceNotFound N/A N/A N/A update_meta N/A N/A N/A N/A N/A N/A key change N/A N/A diff items N/A N/A key N/A N/A self _sanitize_xenstore_key key N/A location N/A vm-data/user-metadata/%s key N/A N/A process_change location change N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A update_meta N/A _find_vdi_refs N/A N/A self vm_ref exclude_volumes N/A False N/A N/A Find and return the root and ephemeral vdi refs for a VM. N/A N/A vm_ref N/A N/A N/A N/A vdi_refs N/A N/A vbd_ref N/A N/A N/A self _session call_xenapi VM.get_VBDs vm_ref N/A N/A vbd N/A N/A N/A self _session call_xenapi VBD.get_record vbd_ref N/A N/A N/A exclude_volumes N/A osvol N/A vbd N/A other_config N/A N/A N/A vdi_refs N/A N/A vbd N/A userdevice N/A vbd N/A VDI N/A vdi_refs N/A _destroy_vdis N/A N/A self instance vm_ref N/A N/A N/A Destroys all VDIs associated with a VM. N/A N/A N/A LOG debug Destroying VDIs instance instance N/A vdi_refs N/A N/A vm_utils lookup_vm_vdis N/A self _session vm_ref N/A N/A vdi_refs N/A N/A N/A vdi_ref vdi_refs N/A N/A N/A N/A N/A N/A vm_utils destroy_vdi N/A self _session vdi_ref N/A N/A N/A N/A exception StorageError N/A exc N/A N/A N/A N/A LOG error exc N/A _destroy_kernel_ramdisk N/A N/A self instance vm_ref N/A N/A N/A Three situations can occur:

            1. We have neither a ramdisk nor a kernel, in which case we are a
               RAW image and can omit this step

            2. We have one or the other, in which case, we should flag as an
               error

            3. We have both, in which case we safely remove both the kernel
               and the ramdisk.

         N/A instance_uuid N/A instance N/A uuid N/A N/A N/A N/A instance N/A kernel_id N/A N/A instance N/A ramdisk_id N/A N/A N/A N/A LOG debug Using RAW or VHD, skipping kernel and ramdisk deletion instance instance N/A N/A N/A N/A N/A instance N/A kernel_id N/A instance N/A ramdisk_id N/A N/A N/A N/A exception InstanceUnacceptable instance_id instance_uuid reason N/A _ instance has a kernel or ramdisk but not both N/A N/A kernel ramdisk N/A N/A vm_utils lookup_kernel_ramdisk N/A self _session vm_ref N/A N/A kernel ramdisk N/A N/A N/A N/A vm_utils destroy_kernel_ramdisk N/A self _session instance kernel ramdisk N/A N/A N/A LOG debug kernel/ramdisk files removed instance instance N/A _destroy_rescue_instance N/A N/A self rescue_vm_ref original_vm_ref N/A N/A N/A Destroy a rescue instance. N/A state N/A N/A vm_utils get_power_state N/A self _session rescue_vm_ref N/A N/A state N/A power_state SHUTDOWN N/A N/A N/A N/A N/A self _session call_xenapi VM.hard_shutdown rescue_vm_ref N/A vdi_refs N/A N/A vm_utils lookup_vm_vdis N/A self _session rescue_vm_ref N/A orig_vdi_refs N/A N/A self _find_vdi_refs original_vm_ref N/A vdi_refs N/A N/A set vdi_refs N/A set N/A N/A orig_vdi_refs values N/A N/A N/A vm_utils safe_destroy_vdis N/A self _session vdi_refs N/A N/A N/A N/A self _session call_xenapi VM.destroy rescue_vm_ref N/A destroy N/A N/A self instance network_info block_device_info destroy_disks N/A None True N/A N/A Destroy VM instance.

        This is the method exposed by xenapi_conn.destroy(). The rest of the
        destroy_* methods are internal.

         N/A N/A N/A LOG info N/A _LI Destroying VM instance instance N/A vm_ref N/A N/A vm_utils lookup N/A self _session N/A instance N/A name N/A rescue_vm_ref N/A N/A vm_utils lookup N/A self _session N/A %s-rescue N/A instance N/A name N/A rescue_vm_ref N/A N/A N/A N/A self _destroy_rescue_instance rescue_vm_ref vm_ref N/A N/A N/A self _destroy instance vm_ref network_info network_info destroy_disks destroy_disks block_device_info block_device_info N/A _destroy N/A N/A self instance vm_ref network_info destroy_disks block_device_info N/A None True None N/A N/A Destroys VM instance by performing:

            1. A shutdown
            2. Destroying associated VDIs.
            3. Destroying kernel and ramdisk files (if necessary).
            4. Destroying that actual VM record.

         N/A N/A vm_ref None N/A N/A N/A N/A LOG warning N/A _LW VM is not present, skipping destroy... instance instance N/A bdms N/A N/A block_device_info N/A block_device_mapping N/A N/A N/A bdms N/A N/A N/A bdm bdms N/A N/A volume_id N/A N/A N/A bdm N/A connection_info N/A data N/A volume_id N/A sr_uuid N/A FA15E-D15C-%s volume_id N/A sr_ref None N/A N/A N/A sr_ref N/A N/A volume_utils find_sr_by_uuid N/A self _session sr_uuid N/A N/A sr_ref N/A N/A connection_data N/A N/A bdm N/A connection_info N/A data N/A N/A sr_uuid _ _ N/A N/A volume_utils parse_sr_info connection_data N/A sr_ref N/A N/A volume_utils find_sr_by_uuid N/A self _session sr_uuid N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Failed to find an SR for volume %s volume_id instance instance N/A N/A N/A sr_ref N/A N/A N/A N/A volume_utils forget_sr N/A self _session sr_ref N/A N/A N/A N/A LOG error N/A _LE Volume %s is associated with the instance but no SR was found for it volume_id instance instance N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Failed to forget the SR for volume %s volume_id instance instance N/A N/A N/A block_device_info N/A block_device_info N/A block_device_mapping N/A N/A N/A N/A N/A vm_utils clean_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A N/A LOG debug Clean shutdown did not complete successfully, trying hard shutdown. instance instance N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A destroy_disks N/A N/A N/A N/A N/A self _volumeops detach_all vm_ref N/A N/A N/A self _destroy_vdis instance vm_ref N/A N/A N/A self _destroy_kernel_ramdisk instance vm_ref N/A N/A N/A self unplug_vifs instance network_info vm_ref N/A N/A N/A N/A self firewall_driver unfilter_instance instance network_info network_info N/A N/A N/A vm_utils destroy_vm N/A self _session instance vm_ref N/A pause N/A N/A self instance N/A N/A N/A Pause VM instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A N/A self _session call_xenapi VM.pause vm_ref N/A unpause N/A N/A self instance N/A N/A N/A Unpause VM instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A N/A self _session call_xenapi VM.unpause vm_ref N/A suspend N/A N/A self instance N/A N/A N/A Suspend the specified instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A self _acquire_bootlock vm_ref N/A N/A N/A N/A self _session call_xenapi VM.suspend vm_ref N/A resume N/A N/A self instance N/A N/A N/A Resume the specified instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A self _release_bootlock vm_ref N/A N/A N/A N/A self _session call_xenapi VM.resume vm_ref False True N/A rescue N/A N/A self context instance network_info image_meta rescue_password N/A N/A N/A Rescue the specified instance.

            - shutdown the instance VM.
            - set 'bootlock' to prevent the instance from starting in rescue.
            - spawn a rescue VM (the vm name-label will be instance-N-rescue).

         N/A rescue_name_label N/A %s-rescue N/A instance name N/A rescue_vm_ref N/A N/A vm_utils lookup N/A self _session rescue_name_label N/A rescue_vm_ref N/A N/A N/A RuntimeError N/A N/A _ Instance is already in Rescue Mode: %s N/A instance name N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A self _acquire_bootlock vm_ref N/A N/A N/A self spawn context instance image_meta N/A rescue_password network_info name_label rescue_name_label rescue True N/A set_bootable N/A N/A self instance is_bootable N/A N/A N/A Set the ability to power on/off an instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A is_bootable N/A N/A N/A N/A self _release_bootlock vm_ref N/A N/A N/A N/A self _acquire_bootlock vm_ref N/A unrescue N/A N/A self instance N/A N/A N/A Unrescue the specified instance.

            - unplug the instance VM's disk from the rescue VM.
            - teardown the rescue VM.
            - release the bootlock to allow the instance VM to start.

         N/A rescue_vm_ref N/A N/A vm_utils lookup N/A self _session N/A %s-rescue N/A instance name N/A N/A rescue_vm_ref N/A N/A N/A N/A exception InstanceNotInRescueMode instance_id N/A instance uuid N/A original_vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A self _destroy_rescue_instance rescue_vm_ref original_vm_ref N/A N/A N/A self _release_bootlock original_vm_ref N/A N/A N/A self _start instance original_vm_ref N/A soft_delete N/A N/A self instance N/A N/A N/A Soft delete the specified instance. N/A N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A LOG warning N/A _LW VM is not present, skipping soft delete... instance instance N/A N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A N/A N/A self _acquire_bootlock vm_ref N/A restore N/A N/A self instance N/A N/A N/A Restore the specified instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A self _release_bootlock vm_ref N/A N/A N/A self _start instance vm_ref N/A power_off N/A N/A self instance N/A N/A N/A Power off the specified instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A vm_utils hard_shutdown_vm N/A self _session instance vm_ref N/A power_on N/A N/A self instance N/A N/A N/A Power on the specified instance. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A self _start instance vm_ref N/A _cancel_stale_tasks N/A N/A self timeout task N/A N/A N/A Cancel the given tasks that are older than the given timeout. N/A task_refs N/A N/A N/A self _session call_xenapi task.get_by_name_label task N/A task_ref task_refs N/A N/A task_rec N/A N/A N/A self _session call_xenapi task.get_record task_ref N/A task_created N/A N/A timeutils parse_strtime N/A N/A task_rec N/A created value %Y%m%dT%H:%M:%SZ N/A N/A N/A timeutils is_older_than task_created timeout N/A N/A N/A N/A N/A self _session call_xenapi task.cancel task_ref N/A poll_rebooting_instances N/A N/A self timeout instances N/A N/A N/A Look for rebooting instances that can be expired.

            - issue a "hard" reboot to any instance that has been stuck in a
              reboot state for >= the given timeout
         N/A N/A N/A self _cancel_stale_tasks timeout VM.clean_reboot N/A ctxt N/A N/A nova_context get_admin_context N/A instances_info N/A dict instance_count N/A len instances timeout timeout N/A N/A N/A instances_info N/A instance_count 0 N/A N/A N/A N/A LOG info N/A _LI Found %(instance_count)d hung reboots older than %(timeout)d seconds instances_info N/A instance instances N/A N/A N/A N/A LOG info N/A _LI Automatically hard rebooting instance instance N/A N/A N/A N/A self compute_api reboot ctxt instance HARD N/A get_info N/A N/A self instance vm_ref N/A None N/A N/A Return data about VM instance. N/A vm_ref N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A vm_utils compile_info N/A self _session vm_ref N/A get_diagnostics N/A N/A self instance N/A N/A N/A Return data about VM diagnostics. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A vm_rec N/A N/A N/A self _session call_xenapi VM.get_record vm_ref N/A N/A N/A vm_utils compile_diagnostics vm_rec N/A get_instance_diagnostics N/A N/A self instance N/A N/A N/A Return data about VM diagnostics using the common API. N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A vm_rec N/A N/A N/A N/A self _session VM get_record vm_ref N/A N/A N/A vm_utils compile_instance_diagnostics instance vm_rec N/A _get_vif_device_map N/A N/A self vm_rec N/A N/A N/A vif_map N/A N/A vif N/A N/A N/A N/A self _session call_xenapi VIF.get_record vrec N/A vrec N/A vm_rec N/A VIFs N/A N/A N/A vif_map N/A N/A vif N/A device N/A vif N/A MAC N/A vif_map N/A get_all_bw_counters N/A N/A self N/A N/A N/A Return running bandwidth counter for each interface on each
           running VM.
         N/A counters N/A N/A vm_utils fetch_bandwidth N/A self _session N/A bw N/A N/A N/A vm_ref vm_rec N/A N/A vm_utils list_vms N/A self _session N/A N/A vif_map N/A N/A self _get_vif_device_map vm_rec N/A name N/A vm_rec N/A name_label N/A N/A nova_uuid N/A vm_rec N/A other_config N/A N/A N/A dom N/A N/A vm_rec get domid N/A N/A N/A dom None N/A dom counters N/A N/A N/A vifs_bw N/A N/A bw setdefault name N/A N/A N/A vif_num vif_data N/A N/A six iteritems N/A counters N/A dom N/A N/A mac N/A vif_map N/A vif_num N/A N/A vif_data N/A mac_address mac N/A N/A vifs_bw N/A mac vif_data N/A bw N/A get_console_output N/A N/A self instance N/A N/A N/A Return last few lines of instance console. N/A dom_id N/A N/A self _get_last_dom_id instance check_rescue True N/A N/A N/A raw_console_data N/A N/A N/A self _session call_plugin console get_console_log N/A dom_id dom_id N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A N/A N/A N/A LOG exception N/A _LE Guest does not have a console available N/A N/A N/A exception ConsoleNotAvailable N/A N/A N/A zlib decompress N/A N/A base64 b64decode raw_console_data N/A get_vnc_console N/A N/A self instance N/A N/A N/A Return connection info for a vnc console. N/A N/A N/A instance vm_state N/A vm_states RESCUED N/A N/A name N/A %s-rescue N/A instance name N/A vm_ref N/A N/A vm_utils lookup N/A self _session name N/A N/A vm_ref None N/A N/A N/A N/A exception InstanceNotReady instance_id N/A instance uuid N/A N/A vm_ref N/A N/A vm_utils lookup N/A self _session N/A instance name N/A N/A vm_ref None N/A N/A N/A N/A exception InstanceNotFound instance_id N/A instance uuid N/A session_id N/A N/A N/A self _session get_session_id N/A path N/A /console?ref=%s&session_id=%s N/A N/A str vm_ref session_id N/A N/A N/A ctype ConsoleVNC host N/A N/A CONF vnc vncserver_proxyclient_address port 80 internal_access_path path N/A _vif_xenstore_data N/A N/A self vif N/A N/A N/A convert a network info vif to injectable instance data. get_ip N/A N/A ip N/A N/A N/A N/A ip N/A N/A None N/A N/A ip N/A address N/A fixed_ip_dict N/A N/A ip subnet N/A N/A N/A N/A N/A ip N/A version 4 N/A N/A netmask N/A str N/A N/A N/A subnet as_netaddr netmask N/A N/A netmask N/A N/A N/A subnet as_netaddr _prefixlen N/A N/A ip enabled netmask gateway N/A ip N/A address 1 netmask N/A get_ip N/A subnet N/A gateway N/A convert_route N/A N/A route N/A N/A N/A N/A route netmask gateway N/A str N/A N/A N/A netaddr IPNetwork N/A route N/A cidr network N/A str N/A N/A N/A netaddr IPNetwork N/A route N/A cidr netmask N/A get_ip N/A route N/A gateway N/A N/A network N/A vif N/A network N/A v4_subnets N/A subnet N/A subnet N/A network N/A subnets N/A N/A subnet N/A version 4 N/A v6_subnets N/A subnet N/A subnet N/A network N/A subnets N/A N/A subnet N/A version 6 N/A routes N/A N/A convert_route route N/A subnet N/A network N/A subnets N/A route N/A subnet N/A routes N/A dns N/A N/A get_ip ip N/A subnet N/A network N/A subnets N/A ip N/A subnet N/A dns N/A info_dict N/A label mac N/A network N/A label N/A vif N/A address N/A v4_subnets N/A N/A N/A info_dict N/A gateway N/A get_ip N/A N/A v4_subnets N/A 0 N/A gateway N/A N/A info_dict N/A broadcast N/A str N/A N/A N/A N/A v4_subnets N/A 0 as_netaddr broadcast N/A N/A info_dict N/A ips N/A N/A fixed_ip_dict ip subnet N/A subnet v4_subnets N/A ip N/A subnet N/A ips N/A v6_subnets N/A N/A N/A info_dict N/A gateway_v6 N/A get_ip N/A N/A v6_subnets N/A 0 N/A gateway N/A N/A info_dict N/A ip6s N/A N/A fixed_ip_dict ip subnet N/A subnet v6_subnets N/A ip N/A subnet N/A ips N/A routes N/A N/A N/A info_dict N/A routes routes N/A dns N/A N/A N/A info_dict N/A dns N/A list N/A set dns N/A info_dict N/A inject_network_info N/A N/A self instance network_info vm_ref N/A None N/A N/A Generate the network info and make calls to place it into the
        xenstore and the xenstore param list.
        vm_ref can be passed in because it will sometimes be different than
        what vm_utils.lookup(session, instance['name']) will find (ex: rescue)
         N/A vm_ref N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A LOG debug Injecting network info to xenstore instance instance update_nwinfo N/A N/A N/A N/A N/A vif network_info N/A N/A xs_data N/A N/A self _vif_xenstore_data vif N/A location N/A vm-data/networking/%s N/A N/A N/A vif N/A address replace : N/A N/A N/A self _add_to_param_xenstore vm_ref location N/A N/A jsonutils dumps xs_data N/A N/A N/A N/A N/A self _write_to_xenstore instance location xs_data vm_ref vm_ref N/A N/A N/A N/A exception InstanceNotFound N/A N/A N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A update_nwinfo N/A _create_vifs N/A N/A self instance vm_ref network_info N/A N/A N/A Creates vifs for an instance. N/A N/A N/A LOG debug Creating vifs instance instance N/A N/A N/A N/A self _session call_xenapi VM.get_domid vm_ref N/A N/A device vif N/A enumerate network_info N/A N/A N/A N/A LOG debug Create VIF %s vif instance instance N/A N/A N/A N/A self vif_driver plug instance vif vm_ref vm_ref device device N/A plug_vifs N/A N/A self instance network_info N/A N/A N/A Set up VIF networking on the host. N/A N/A device vif N/A enumerate network_info N/A N/A N/A N/A N/A self vif_driver plug instance vif device device N/A unplug_vifs N/A N/A self instance network_info vm_ref N/A N/A N/A network_info N/A N/A vif network_info N/A N/A N/A N/A N/A self vif_driver unplug instance vif vm_ref N/A reset_network N/A N/A self instance rescue N/A False N/A N/A Calls resetnetwork method in agent. N/A N/A N/A self agent_enabled instance N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A agent N/A N/A self _get_agent instance vm_ref N/A N/A N/A self _inject_hostname instance vm_ref rescue N/A N/A N/A agent resetnetwork N/A N/A N/A self _remove_hostname instance vm_ref N/A N/A N/A NotImplementedError N/A _inject_hostname N/A N/A self instance vm_ref rescue N/A N/A N/A Inject the hostname of the instance into the xenstore. N/A hostname N/A instance N/A hostname N/A rescue N/A N/A hostname N/A RESCUE-%s hostname N/A N/A N/A instance N/A os_type windows N/A N/A hostname N/A hostname N/A 15 N/A N/A N/A LOG debug Injecting hostname (%s) into xenstore hostname instance instance update_hostname N/A N/A N/A N/A N/A N/A N/A self _add_to_param_xenstore vm_ref vm-data/hostname hostname N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A update_hostname N/A _remove_hostname N/A N/A self instance vm_ref N/A N/A N/A N/A N/A LOG debug Removing hostname from xenstore instance instance update_hostname N/A N/A N/A N/A N/A N/A N/A self _remove_from_param_xenstore vm_ref vm-data/hostname N/A N/A N/A utils synchronized N/A xenstore- N/A instance N/A uuid N/A N/A update_hostname N/A _write_to_xenstore N/A N/A self instance path value vm_ref N/A None N/A N/A Writes the passed value to the xenstore record for the given VM
        at the specified location. A XenAPIPlugin.PluginError will be raised
        if any error is encountered in the write process.
         N/A N/A N/A self _make_plugin_call xenstore.py write_record instance vm_ref vm_ref path path value N/A N/A jsonutils dumps value N/A _read_from_xenstore N/A N/A self instance path ignore_missing_path vm_ref N/A True None N/A N/A Reads the passed location from xenstore for the given vm. Missing
        paths are ignored, unless explicitly stated not to, which causes
        xenstore to raise an exception. A XenAPIPlugin.PluginError is raised
        if any error is encountered in the read process.
         N/A ignore_missing_path N/A N/A ignore_missing True N/A N/A ignore_missing False N/A N/A N/A self _make_plugin_call xenstore.py read_record instance vm_ref vm_ref path path ignore_missing_path ignore_missing N/A _delete_from_xenstore N/A N/A self instance path vm_ref N/A None N/A N/A Deletes the value from the xenstore record for the given VM at
        the specified location.  A XenAPIPlugin.PluginError will be
        raised if any error is encountered in the delete process.
         N/A N/A N/A self _make_plugin_call xenstore.py delete_record instance vm_ref vm_ref path path N/A _make_plugin_call N/A N/A self plugin method instance vm_ref N/A None None addl_args N/A N/A Abstracts out the process of calling a method of a xenapi plugin.
        Any errors raised by the plugin will in turn raise a RuntimeError here.
         N/A args N/A N/A N/A instance vm_ref N/A N/A N/A args N/A dom_id N/A N/A self _get_dom_id instance vm_ref N/A N/A N/A args update addl_args N/A N/A N/A N/A N/A N/A self _session call_plugin plugin method args N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A e N/A N/A err_msg N/A N/A N/A N/A N/A e details N/A -1 splitlines N/A -1 N/A N/A TIMEOUT: err_msg N/A N/A N/A N/A LOG error N/A _LE TIMEOUT: The call to %(method)s timed out. args=%(args)r N/A method args method args instance instance N/A N/A returncode message timeout err_msg N/A N/A N/A NOT IMPLEMENTED: err_msg N/A N/A N/A N/A LOG error N/A _LE NOT IMPLEMENTED: The call to %(method)s is not supported by the agent. args=%(args)r N/A method args method args instance instance N/A N/A returncode message notimplemented err_msg N/A N/A N/A N/A LOG error N/A _LE The call to %(method)s returned an error: %(e)s. args=%(args)r N/A method args e method args e instance instance N/A N/A returncode message error err_msg N/A _get_dom_id N/A N/A self instance vm_ref check_rescue N/A None None False N/A N/A vm_ref N/A vm_ref N/A N/A self _get_vm_opaque_ref instance check_rescue N/A domid N/A N/A N/A self _session call_xenapi VM.get_domid vm_ref N/A N/A N/A domid N/A domid -1 N/A N/A N/A N/A exception InstanceNotFound instance_id N/A instance N/A name N/A domid N/A _get_last_dom_id N/A N/A self instance vm_ref check_rescue N/A None None False N/A N/A vm_ref N/A vm_ref N/A N/A self _get_vm_opaque_ref instance check_rescue N/A other_config N/A N/A N/A self _session call_xenapi VM.get_other_config vm_ref N/A N/A last_dom_id other_config N/A N/A N/A N/A exception InstanceNotFound instance_id N/A instance N/A name N/A N/A other_config N/A last_dom_id N/A _add_to_param_xenstore N/A N/A self vm_ref key val N/A N/A N/A Takes a key/value pair and adds it to the xenstore parameter
        record for the given vm instance. If the key exists in xenstore,
        it is overwritten
         N/A N/A N/A self _remove_from_param_xenstore vm_ref key N/A N/A N/A N/A self _session call_xenapi VM.add_to_xenstore_data vm_ref key val N/A _remove_from_param_xenstore N/A N/A self vm_ref key N/A N/A N/A Takes a single key and removes it from the xenstore parameter
        record data for the given VM.
        If the key doesn't exist, the request is ignored.
         N/A N/A N/A N/A self _session call_xenapi VM.remove_from_xenstore_data vm_ref key N/A refresh_security_group_rules N/A N/A self security_group_id N/A N/A N/A recreates security group rules for every instance. N/A N/A N/A N/A self firewall_driver refresh_security_group_rules security_group_id N/A refresh_instance_security_rules N/A N/A self instance N/A N/A N/A recreates security group rules for specified instance. N/A N/A N/A N/A self firewall_driver refresh_instance_security_rules instance N/A unfilter_instance N/A N/A self instance_ref network_info N/A N/A N/A Removes filters for each VIF of the specified instance. N/A N/A N/A N/A self firewall_driver unfilter_instance instance_ref network_info network_info N/A _get_host_uuid_from_aggregate N/A N/A self context hostname N/A N/A N/A aggregate_list N/A N/A N/A objects AggregateList get_by_host context N/A CONF host key N/A pool_states POOL_FLAG N/A reason N/A N/A _ Destination host:%s must be in the same aggregate as the source server hostname N/A N/A N/A len aggregate_list 0 N/A N/A N/A N/A exception MigrationPreCheckError reason reason N/A N/A hostname N/A N/A aggregate_list N/A 0 metadata N/A N/A N/A N/A exception MigrationPreCheckError reason reason N/A N/A N/A N/A aggregate_list N/A 0 metadata N/A hostname N/A _ensure_host_in_aggregate N/A N/A self context hostname N/A N/A N/A N/A N/A self _get_host_uuid_from_aggregate context hostname N/A _get_host_opaque_ref N/A N/A self context hostname N/A N/A N/A host_uuid N/A N/A self _get_host_uuid_from_aggregate context hostname N/A N/A N/A N/A self _session call_xenapi host.get_by_uuid host_uuid N/A _migrate_receive N/A N/A self ctxt N/A N/A N/A destref N/A N/A self _session host_ref N/A expr field "management" = "true" N/A pifs N/A N/A N/A self _session call_xenapi PIF.get_all_records_where expr N/A N/A N/A len pifs 1 N/A N/A msg N/A _ No suitable network for migrate N/A N/A N/A exception MigrationPreCheckError reason msg N/A pifkey N/A N/A list N/A N/A pifs keys N/A 0 N/A N/A N/A N/A N/A netutils is_valid_ipv4 N/A N/A pifs N/A pifkey N/A IP N/A N/A netutils is_valid_ipv6 N/A N/A pifs N/A pifkey N/A IPv6 N/A N/A msg N/A N/A _ PIF %s does not contain IP address N/A N/A pifs N/A pifkey N/A uuid N/A N/A N/A exception MigrationPreCheckError reason msg N/A nwref N/A N/A pifs N/A N/A N/A list N/A N/A pifs keys N/A 0 N/A network N/A N/A N/A options N/A N/A migrate_data N/A N/A N/A self _session call_xenapi host.migrate_receive destref nwref options N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A N/A N/A N/A LOG exception N/A _LE Migrate Receive failed N/A msg N/A _ Migrate Receive failed N/A N/A N/A exception MigrationPreCheckError reason msg N/A migrate_data N/A _get_iscsi_srs N/A N/A self ctxt instance_ref N/A N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance_ref N/A vbd_refs N/A N/A N/A self _session call_xenapi VM.get_VBDs vm_ref N/A iscsi_srs N/A N/A vbd_ref vbd_refs N/A N/A vdi_ref N/A N/A N/A self _session call_xenapi VBD.get_VDI vbd_ref N/A sr_ref N/A N/A N/A self _session call_xenapi VDI.get_SR vdi_ref N/A N/A N/A N/A N/A self _session call_xenapi SR.get_type sr_ref iscsi N/A N/A N/A N/A iscsi_srs append sr_ref N/A iscsi_srs N/A check_can_live_migrate_destination N/A N/A self ctxt instance_ref block_migration disk_over_commit N/A False False N/A N/A Check if it is possible to execute live migration.

        :param ctxt: security context
        :param instance_ref: nova.db.sqlalchemy.models.Instance object
        :param block_migration: if true, prepare for block migration
                                if None, calculate it from driver
        :param disk_over_commit: if true, allow disk over commit

         N/A dest_check_data N/A N/A objects XenapiLiveMigrateData N/A N/A block_migration None N/A N/A src N/A instance_ref N/A host N/A N/A N/A N/A N/A self _ensure_host_in_aggregate ctxt src N/A N/A N/A N/A exception MigrationPreCheckError N/A N/A block_migration True N/A N/A sr_ref N/A N/A vm_utils safe_find_sr N/A self _session N/A sr_rec N/A N/A N/A self _session get_rec SR sr_ref N/A block_migration N/A N/A sr_rec N/A shared N/A block_migration N/A N/A N/A dest_check_data block_migration True N/A N/A dest_check_data migrate_send_data N/A N/A self _migrate_receive ctxt N/A N/A dest_check_data destination_sr_ref N/A N/A vm_utils safe_find_sr N/A self _session N/A N/A N/A dest_check_data block_migration False N/A src N/A instance_ref N/A host N/A N/A N/A self _ensure_host_in_aggregate ctxt src N/A dest_check_data N/A _is_xsm_sr_check_relaxed N/A N/A self N/A N/A N/A N/A N/A N/A self cached_xsm_sr_relaxed N/A N/A N/A AttributeError N/A N/A config_value None N/A N/A N/A config_value N/A N/A self _make_plugin_call config_file get_val key relax-xsm-sr-check N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Plugin config_file get_val failed N/A N/A self cached_xsm_sr_relaxed N/A config_value true N/A N/A self cached_xsm_sr_relaxed N/A check_can_live_migrate_source N/A N/A self ctxt instance_ref dest_check_data N/A N/A N/A Check if it's possible to execute live migration on the source side.

        :param ctxt: security context
        :param instance_ref: nova.db.sqlalchemy.models.Instance object
        :param dest_check_data: data returned by the check on the
                                destination, includes block_migration flag

         N/A N/A N/A len N/A N/A self _get_iscsi_srs ctxt instance_ref 0 N/A N/A N/A N/A N/A self _is_xsm_sr_check_relaxed N/A N/A N/A N/A exception MigrationError reason N/A _ XAPI supporting relax-xsm-sr-check=true required N/A N/A N/A isinstance dest_check_data N/A migrate_data_obj LiveMigrateData N/A N/A obj N/A N/A objects XenapiLiveMigrateData N/A N/A N/A obj from_legacy_dict dest_check_data N/A dest_check_data obj N/A N/A N/A block_migration dest_check_data N/A dest_check_data block_migration N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance_ref N/A N/A N/A N/A N/A self _call_live_migrate_command VM.assert_can_migrate vm_ref dest_check_data N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A exc N/A N/A reason N/A N/A exc details N/A 0 N/A msg N/A N/A _ assert_can_migrate failed because: %s reason N/A N/A N/A LOG debug msg exc_info True N/A N/A N/A exception MigrationPreCheckError reason msg N/A dest_check_data N/A _ensure_pv_driver_info_for_live_migration N/A N/A self instance vm_ref N/A N/A N/A Checks if pv drivers are present for this instance. If it is
        present but not reported, try to fake the info for live-migration.
         N/A N/A N/A self _pv_driver_version_reported instance vm_ref N/A N/A N/A N/A N/A self _pv_device_reported instance vm_ref N/A N/A N/A N/A LOG debug PV device present but missing pv driver info. Attempting to insert missing info in xenstore. instance instance N/A N/A N/A self _write_fake_pv_version instance vm_ref N/A N/A N/A N/A LOG debug Could not determine the presence of pv device. Skipping inserting pv driver info. instance instance N/A _pv_driver_version_reported N/A N/A self instance vm_ref N/A N/A N/A xs_path attr/PVAddons/MajorVersion N/A major_version N/A N/A self _read_from_xenstore instance xs_path vm_ref vm_ref N/A N/A N/A LOG debug Major Version: %s reported. major_version instance instance N/A N/A major_version "None" N/A N/A False N/A N/A True N/A _pv_device_reported N/A N/A self instance vm_ref N/A N/A N/A vm_rec N/A N/A N/A N/A self _session VM get_record vm_ref N/A vif_list N/A N/A N/A N/A self _session call_xenapi VIF.get_record vrec N/A vrec N/A vm_rec N/A VIFs N/A net_devices N/A N/A vif N/A device N/A vif vif_list N/A device net_devices N/A N/A xs_path N/A device/vif/%s/state device N/A ret N/A N/A self _read_from_xenstore instance xs_path vm_ref vm_ref N/A N/A N/A LOG debug PV Device vif.%(vif_ref)s reporting state %(ret)s N/A vif_ref ret device ret instance instance N/A N/A N/A N/A strutils is_int_like ret N/A N/A int ret 4 N/A N/A True N/A False N/A _write_fake_pv_version N/A N/A self instance vm_ref N/A N/A N/A version N/A N/A self _session product_version N/A N/A N/A LOG debug Writing pvtools version major: %(major)s minor: %(minor)s micro: %(micro)s N/A major minor micro N/A version N/A 0 N/A version N/A 1 N/A version N/A 2 instance instance N/A major_ver attr/PVAddons/MajorVersion N/A N/A N/A self _write_to_xenstore instance major_ver N/A version N/A 0 vm_ref vm_ref N/A minor_ver attr/PVAddons/MinorVersion N/A N/A N/A self _write_to_xenstore instance minor_ver N/A version N/A 1 vm_ref vm_ref N/A micro_ver attr/PVAddons/MicroVersion N/A N/A N/A self _write_to_xenstore instance micro_ver N/A version N/A 2 vm_ref vm_ref N/A xs_path data/updated N/A N/A N/A self _write_to_xenstore instance xs_path 1 vm_ref vm_ref N/A _generate_vdi_map N/A N/A self destination_sr_ref vm_ref sr_ref N/A None N/A N/A generate a vdi_map for _call_live_migrate_command. N/A N/A sr_ref None N/A N/A sr_ref N/A N/A vm_utils safe_find_sr N/A self _session N/A vm_vdis N/A N/A vm_utils get_instance_vdis_for_sr N/A self _session vm_ref sr_ref N/A N/A vdi destination_sr_ref N/A vdi vm_vdis N/A _call_live_migrate_command N/A N/A self command_name vm_ref migrate_data N/A N/A N/A unpack xapi specific parameters, and call a live migrate command. N/A migrate_send_data None N/A N/A migrate_send_data migrate_data N/A N/A migrate_send_data N/A migrate_data migrate_send_data N/A N/A migrate_send_data N/A N/A N/A N/A exception InvalidParameterValue XenAPI requires destination migration data N/A migrate_send_data N/A dict migrate_send_data N/A destination_sr_ref N/A migrate_data destination_sr_ref N/A vdi_map N/A N/A self _generate_vdi_map destination_sr_ref vm_ref N/A sr_uuid_map None N/A N/A sr_uuid_map migrate_data N/A N/A sr_uuid_map N/A migrate_data sr_uuid_map N/A sr_uuid_map N/A N/A sr_uuid sr_uuid_map N/A N/A sr_ref N/A N/A N/A self _session call_xenapi SR.get_by_uuid sr_uuid N/A N/A N/A vdi_map update N/A N/A self _generate_vdi_map N/A sr_uuid_map N/A sr_uuid vm_ref sr_ref N/A vif_map N/A N/A options N/A N/A N/A N/A N/A self _session call_xenapi command_name vm_ref migrate_send_data True vdi_map vif_map options N/A pre_live_migration N/A N/A self context instance block_device_info network_info disk_info migrate_data N/A N/A N/A N/A migrate_data None N/A N/A N/A N/A exception InvalidParameterValue XenAPI requires migrate data N/A N/A migrate_data sr_uuid_map N/A N/A self connect_block_device_volumes block_device_info N/A migrate_data N/A live_migrate N/A N/A self context instance destination_hostname post_method recover_method block_migration migrate_data N/A None N/A N/A N/A N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A N/A N/A self _ensure_pv_driver_info_for_live_migration instance vm_ref N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG warning e N/A N/A migrate_data None N/A N/A N/A kernel ramdisk N/A N/A vm_utils lookup_kernel_ramdisk N/A self _session vm_ref N/A N/A migrate_data kernel_file kernel N/A N/A migrate_data ramdisk_file ramdisk N/A N/A N/A migrate_data None N/A migrate_data block_migration N/A N/A iscsi_srs N/A N/A self _get_iscsi_srs context instance N/A N/A N/A N/A N/A self _call_live_migrate_command VM.migrate_send vm_ref migrate_data N/A N/A N/A N/A N/A N/A self _session XenAPI Failure N/A N/A N/A N/A LOG exception N/A _LE Migrate Send failed N/A N/A N/A exception MigrationError reason N/A _ Migrate Send failed N/A sr_ref iscsi_srs N/A N/A N/A N/A volume_utils forget_sr N/A self _session sr_ref N/A N/A host_ref N/A N/A self _get_host_opaque_ref context destination_hostname N/A N/A N/A N/A self _session call_xenapi VM.pool_migrate vm_ref host_ref N/A live true N/A N/A post_method context instance destination_hostname block_migration migrate_data N/A N/A N/A Exception N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A recover_method context instance destination_hostname block_migration N/A post_live_migration N/A N/A self context instance migrate_data N/A None N/A N/A N/A migrate_data None N/A N/A N/A N/A vm_utils destroy_kernel_ramdisk N/A self _session instance N/A migrate_data kernel_file N/A migrate_data ramdisk_file N/A post_live_migration_at_destination N/A N/A self context instance network_info block_migration block_device_info N/A N/A N/A N/A N/A self _prepare_instance_filter instance network_info N/A N/A N/A N/A self firewall_driver apply_instance_filter instance network_info N/A N/A N/A vm_utils create_kernel_and_ramdisk context N/A self _session instance N/A instance N/A name N/A vm_ref N/A N/A self _get_vm_opaque_ref instance N/A N/A N/A vm_utils strip_base_mirror_from_vdis N/A self _session vm_ref N/A rollback_live_migration_at_destination N/A N/A self instance block_device_info N/A N/A N/A bdms N/A N/A block_device_info N/A block_device_mapping N/A N/A bdm bdms N/A N/A conn_data N/A N/A bdm N/A connection_info N/A data N/A N/A uuid label params N/A N/A volume_utils parse_sr_info conn_data N/A N/A N/A sr_ref N/A N/A volume_utils find_sr_by_uuid N/A self _session uuid N/A sr_ref N/A N/A N/A N/A volume_utils forget_sr N/A self _session sr_ref N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Failed to forget the SR for volume %s N/A params N/A id instance instance N/A get_per_instance_usage N/A N/A self N/A N/A N/A Get usage info about each active instance. N/A usage N/A _is_active N/A N/A vm_rec N/A N/A N/A power_state N/A N/A N/A vm_rec N/A power_state lower N/A N/A power_state N/A running paused N/A _get_uuid N/A N/A vm_rec N/A N/A N/A other_config N/A vm_rec N/A other_config N/A N/A N/A other_config get nova_uuid None N/A N/A N/A vm_ref vm_rec N/A N/A vm_utils list_vms N/A self _session N/A N/A uuid N/A _get_uuid vm_rec N/A N/A N/A _is_active vm_rec N/A uuid None N/A N/A memory_mb N/A N/A int N/A vm_rec N/A memory_static_max N/A units Mi N/A N/A usage N/A uuid N/A memory_mb uuid memory_mb uuid N/A usage N/A connect_block_device_volumes N/A N/A self block_device_info N/A N/A N/A sr_uuid_map N/A N/A N/A N/A N/A block_device_info None N/A N/A block_device_map N/A block_device_info N/A block_device_mapping N/A N/A N/A sr_uuid _ N/A N/A N/A self _volumeops connect_volume N/A block_device_map N/A connection_info N/A sr_ref N/A N/A N/A self _session call_xenapi SR.get_by_uuid sr_uuid N/A N/A sr_uuid_map N/A sr_uuid sr_ref N/A N/A N/A Exception N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A sr_ref N/A N/A six itervalues sr_uuid_map N/A N/A N/A N/A volume_utils forget_sr N/A self _session sr_ref N/A sr_uuid_map N/A N/A