Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad ListLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad ListLoad ListLoad NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpBitOr Call NameLoad ListLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListComp TupleLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareNotEq AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareGt Call NameLoad Call NameLoad GeneratorExp AttributeLoad SubscriptLoad NameLoad Index NameLoad attr comprehension NameStore NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt Call NameLoad Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr comprehension NameStore NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpBitAnd NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad ListLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Assert UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad ListLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareEq Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad ListLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr ListLoad If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad ListLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Assert UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assert UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad comprehension NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd ListLoad NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad NameLoad Str NameLoad keyword Call NameLoad NameLoad Str NameLoad keyword Call NameLoad NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad comprehension NameStore NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str For NameStore SubscriptLoad NameLoad Slice Num body For NameStore NameLoad body Assign AttributeStore NameLoad attr ListLoad TupleLoad Num ListLoad Str Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Assert UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assert UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpBitAnd Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Continue Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Continue For TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListComp TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Continue Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A Logical units dealing with node groups. N/A itertools N/A logging ganeti constants ganeti errors ganeti locking ganeti objects ganeti opcodes ganeti utils ganeti.masterd iallocator ganeti.cmdlib.base LogicalUnit NoHooksLU ResultWithJobs ganeti.cmdlib.common MergeAndVerifyHvState MergeAndVerifyDiskState GetWantedNodes GetUpdatedParams CheckNodeGroupInstances GetUpdatedIPolicy ComputeNewInstanceViolations GetDefaultIAllocator ShareAll CheckInstancesNodeGroups LoadNodeEvacResult MapInstanceLvsToNodes CheckIpolicyVsDiskTemplates CheckDiskAccessModeValidity CheckDiskAccessModeConsistency ConnectInstanceCommunicationNetworkOp N/A ganeti.masterd.instance LUGroupAdd N/A LogicalUnit N/A N/A Logical unit for creating node groups.

   N/A HPATH group-add N/A HTYPE N/A constants HTYPE_GROUP N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg GenerateUniqueID N/A N/A N/A self proc GetECId N/A N/A self needed_locks N/A N/A N/A N/A self add_locks N/A N/A locking LEVEL_NODEGROUP N/A self group_uuid N/A _CheckIpolicy N/A N/A self N/A N/A N/A Checks the group's ipolicy for consistency and validity.

     N/A N/A N/A self op ipolicy N/A N/A cluster N/A N/A N/A self cfg GetClusterInfo N/A full_ipolicy N/A N/A cluster SimpleFillIPolicy N/A N/A self op ipolicy N/A N/A N/A N/A N/A N/A objects InstancePolicy CheckParameterSyntax full_ipolicy False N/A N/A N/A N/A errors ConfigurationError N/A err N/A N/A N/A N/A errors OpPrereqError N/A Invalid instance policy: %s err N/A errors ECODE_INVAL N/A N/A CheckIpolicyVsDiskTemplates full_ipolicy N/A cluster enabled_disk_templates N/A CheckPrereq N/A N/A self N/A N/A N/A Check prerequisites.

    This checks that the given group name is not an existing node group
    already.

     N/A N/A N/A existing_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A N/A N/A errors OpPrereqError N/A N/A N/A N/A N/A N/A errors OpPrereqError N/A Desired group name '%s' already exists as a node group (UUID: %s) N/A N/A N/A self op group_name existing_uuid N/A errors ECODE_EXISTS N/A N/A N/A self op ndparams N/A N/A N/A N/A utils ForceDictType N/A N/A self op ndparams N/A constants NDS_PARAMETER_TYPES N/A N/A N/A self op hv_state N/A N/A N/A self new_hv_state N/A MergeAndVerifyHvState N/A N/A self op hv_state None N/A N/A N/A self new_hv_state None N/A N/A N/A self op disk_state N/A N/A N/A self new_disk_state N/A MergeAndVerifyDiskState N/A N/A self op disk_state None N/A N/A N/A self new_disk_state None N/A N/A N/A self op diskparams N/A N/A templ N/A constants DISK_TEMPLATES N/A N/A N/A templ N/A N/A self op diskparams N/A N/A N/A N/A utils ForceDictType N/A N/A N/A self op diskparams N/A templ N/A constants DISK_DT_TYPES N/A N/A self new_diskparams N/A N/A self op diskparams N/A N/A N/A N/A N/A utils VerifyDictOptions N/A self new_diskparams N/A constants DISK_DT_DEFAULTS N/A N/A N/A N/A errors OpPrereqError N/A err N/A N/A N/A N/A errors OpPrereqError N/A While verify diskparams options: %s err N/A errors ECODE_INVAL N/A N/A N/A self new_diskparams N/A N/A N/A N/A self _CheckIpolicy N/A BuildHooksEnv N/A N/A self N/A N/A N/A Build hooks env.

     N/A N/A GROUP_NAME N/A N/A self op group_name N/A BuildHooksNodes N/A N/A self N/A N/A N/A Build hooks nodes.

     N/A mn N/A N/A N/A self cfg GetMasterNode N/A N/A N/A mn N/A mn N/A _ConnectInstanceCommunicationNetwork N/A N/A cfg group_uuid network_name N/A N/A N/A Connect a node group to the instance communication network.

    The group is connected to the instance communication network via
    the Opcode 'OpNetworkConnect'.

    @type cfg: L{ganeti.config.ConfigWriter}
    @param cfg: Ganeti configuration

    @type group_uuid: string
    @param group_uuid: UUID of the group to connect

    @type network_name: string
    @param network_name: name of the network to connect to

    @rtype: L{ganeti.cmdlib.ResultWithJobs} or L{None}
    @return: L{ganeti.cmdlib.ResultWithJobs} if the group needs to be
             connected, otherwise (the group is already connected)
             L{None}

     N/A N/A N/A N/A N/A cfg LookupNetwork network_name N/A network_exists True N/A N/A N/A N/A errors OpPrereqError N/A N/A network_exists False N/A network_exists N/A N/A op N/A ConnectInstanceCommunicationNetworkOp group_uuid network_name N/A N/A ResultWithJobs N/A N/A op N/A N/A None N/A staticmethod Exec N/A N/A self feedback_fn N/A N/A N/A Add the node group to the cluster.

     N/A group_obj N/A N/A objects NodeGroup name N/A N/A self op group_name members N/A uuid N/A self group_uuid alloc_policy N/A N/A self op alloc_policy ndparams N/A N/A self op ndparams diskparams N/A self new_diskparams ipolicy N/A N/A self op ipolicy hv_state_static N/A self new_hv_state disk_state_static N/A self new_disk_state N/A N/A N/A N/A self cfg AddNodeGroup group_obj N/A N/A N/A self proc GetECId check_uuid False N/A network_name N/A N/A N/A N/A self cfg GetClusterInfo instance_communication_network N/A network_name N/A N/A N/A N/A self _ConnectInstanceCommunicationNetwork N/A self cfg N/A self group_uuid network_name N/A N/A LUGroupAssignNodes N/A NoHooksLU N/A N/A Logical unit for assigning nodes to groups.

   N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A N/A N/A self op node_uuids N/A N/A self op nodes N/A GetWantedNodes self N/A N/A self op nodes N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A locking LEVEL_NODE N/A set N/A N/A self group_uuid N/A N/A self op node_uuids N/A DeclareLocks N/A N/A self level N/A N/A N/A N/A level N/A locking LEVEL_NODEGROUP N/A N/A N/A N/A len N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP 1 N/A groups N/A N/A N/A self cfg GetNodeGroupsFromNodes N/A N/A self op node_uuids N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP update groups N/A CheckPrereq N/A N/A self N/A N/A N/A Check prerequisites.

     N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A N/A N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODE N/A frozenset N/A N/A self op node_uuids N/A expected_locks N/A N/A set N/A N/A self group_uuid N/A N/A N/A self cfg GetNodeGroupsFromNodes N/A N/A self op node_uuids N/A actual_locks N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A N/A actual_locks expected_locks N/A N/A N/A N/A errors OpExecError N/A Nodes changed groups since locks were acquired, current groups are '%s', used to be '%s' N/A N/A N/A utils CommaJoin expected_locks N/A N/A utils CommaJoin actual_locks N/A N/A self node_data N/A N/A N/A self cfg GetAllNodesInfo N/A N/A self group N/A N/A N/A self cfg GetNodeGroup N/A self group_uuid N/A instance_data N/A N/A N/A self cfg GetAllInstancesInfo N/A N/A N/A self group None N/A N/A N/A N/A errors OpExecError N/A Could not retrieve group '%s' (UUID: %s) N/A N/A N/A self op group_name N/A self group_uuid N/A N/A new_splits previous_splits N/A N/A self CheckAssignmentForSplitInstances N/A N/A uuid N/A self group_uuid N/A uuid N/A N/A self op node_uuids N/A self node_data instance_data N/A new_splits N/A N/A fmt_new_splits N/A N/A utils CommaJoin N/A N/A utils NiceSort N/A N/A N/A self cfg GetInstanceNames new_splits N/A N/A N/A N/A self op force N/A N/A N/A N/A errors OpExecError N/A The following instances get split by this change and --force was not given: %s fmt_new_splits N/A N/A N/A N/A self LogWarning This operation will split the following instances: %s fmt_new_splits N/A previous_splits N/A N/A N/A N/A self LogWarning In addition, these already-split instances continue to be split across groups: %s N/A N/A utils CommaJoin N/A N/A utils NiceSort N/A N/A N/A self cfg GetInstanceNames previous_splits N/A Exec N/A N/A self feedback_fn N/A N/A N/A Assign nodes to a new group.

     N/A mods N/A N/A node_uuid N/A self group_uuid N/A node_uuid N/A N/A self op node_uuids N/A N/A N/A N/A self cfg AssignGroupNodes mods N/A CheckAssignmentForSplitInstances N/A N/A self changes node_data instance_data N/A N/A N/A Check for split instances after a node assignment.

    This method considers a series of node assignments as an atomic operation,
    and returns information about split instances after applying the set of
    changes.

    In particular, it returns information about newly split instances, and
    instances that were already split, and remain so after the change.

    Only disks whose template is listed in constants.DTS_INT_MIRROR are
    considered.

    @type changes: list of (node_uuid, new_group_uuid) pairs.
    @param changes: list of node assignments to consider.
    @param node_data: a dict with data for all nodes
    @param instance_data: a dict with all instances to consider
    @rtype: a two-tuple
    @return: a list of instances that were previously okay and result split as a
      consequence of this change, and a list of instances that were previously
      split and this change does not fix.

     N/A changed_nodes N/A dict N/A N/A uuid group N/A N/A uuid group changes N/A N/A N/A node_data N/A uuid group group N/A all_split_instances N/A set N/A previously_split_instances N/A set N/A inst N/A N/A instance_data values N/A N/A inst_disks N/A N/A N/A self cfg GetInstanceDisks N/A inst uuid N/A N/A N/A N/A utils AnyDiskOfType inst_disks N/A constants DTS_INT_MIRROR N/A N/A N/A inst_nodes N/A N/A N/A self cfg GetInstanceNodes N/A inst uuid N/A N/A N/A len N/A set N/A N/A N/A node_data N/A node_uuid group N/A node_uuid inst_nodes 1 N/A N/A N/A N/A previously_split_instances add N/A inst uuid N/A N/A N/A len N/A set N/A N/A N/A changed_nodes get node_uuid N/A N/A node_data N/A node_uuid group N/A node_uuid inst_nodes 1 N/A N/A N/A N/A all_split_instances add N/A inst uuid N/A N/A N/A list N/A all_split_instances previously_split_instances N/A list N/A previously_split_instances all_split_instances N/A N/A LUGroupSetParams N/A LogicalUnit N/A N/A Modifies the parameters of a node group.

   N/A HPATH group-modify N/A HTYPE N/A constants HTYPE_GROUP N/A REQ_BGL False CheckArguments N/A N/A self N/A N/A N/A all_changes N/A N/A N/A self op ndparams N/A N/A self op diskparams N/A N/A self op alloc_policy N/A N/A self op hv_state N/A N/A self op disk_state N/A N/A self op ipolicy N/A N/A N/A N/A all_changes count None N/A len all_changes N/A N/A N/A N/A errors OpPrereqError Please pass at least one modification N/A errors ECODE_INVAL N/A N/A N/A self op diskparams N/A N/A N/A CheckDiskAccessModeValidity N/A N/A self op diskparams N/A ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A locking LEVEL_NODEGROUP N/A N/A N/A self group_uuid N/A N/A N/A self share_locks N/A N/A locking LEVEL_INSTANCE 1 N/A DeclareLocks N/A N/A self level N/A N/A N/A N/A level N/A locking LEVEL_INSTANCE N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self cfg GetInstanceNames N/A N/A N/A self cfg GetNodeGroupInstances N/A self group_uuid N/A _UpdateAndVerifyDiskParams N/A N/A old new N/A N/A N/A Updates and verifies disk parameters.

     N/A new_params N/A GetUpdatedParams old new N/A N/A N/A utils ForceDictType new_params N/A constants DISK_DT_TYPES N/A new_params N/A staticmethod _CheckIpolicy N/A N/A self cluster owned_instance_names N/A N/A N/A Sanity checks for the ipolicy.

    @type cluster: C{objects.Cluster}
    @param cluster: the cluster's configuration
    @type owned_instance_names: list of string
    @param owned_instance_names: list of instances

     N/A N/A N/A self op ipolicy N/A N/A N/A self new_ipolicy N/A GetUpdatedIPolicy N/A N/A self group ipolicy N/A N/A self op ipolicy group_policy True N/A new_ipolicy N/A N/A cluster SimpleFillIPolicy N/A self new_ipolicy N/A N/A CheckIpolicyVsDiskTemplates new_ipolicy N/A cluster enabled_disk_templates N/A instances N/A dict N/A N/A N/A self cfg GetMultiInstanceInfoByName owned_instance_names N/A gmi N/A N/A ganeti masterd instance N/A violations N/A ComputeNewInstanceViolations N/A N/A gmi CalculateGroupIPolicy cluster N/A self group new_ipolicy N/A N/A instances values N/A self cfg N/A violations N/A N/A N/A N/A self LogWarning After the ipolicy change the following instances violate them: %s N/A N/A utils CommaJoin violations N/A CheckPrereq N/A N/A self N/A N/A N/A Check prerequisites.

     N/A owned_instance_names N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A N/A CheckNodeGroupInstances N/A self cfg N/A self group_uuid owned_instance_names N/A N/A self group N/A N/A N/A self cfg GetNodeGroup N/A self group_uuid N/A cluster N/A N/A N/A self cfg GetClusterInfo N/A N/A N/A self group None N/A N/A N/A N/A errors OpExecError N/A Could not retrieve group '%s' (UUID: %s) N/A N/A N/A self op group_name N/A self group_uuid N/A N/A N/A self op ndparams N/A N/A new_ndparams N/A GetUpdatedParams N/A N/A self group ndparams N/A N/A self op ndparams N/A N/A N/A utils ForceDictType new_ndparams N/A constants NDS_PARAMETER_TYPES N/A N/A self new_ndparams new_ndparams N/A N/A N/A self op diskparams N/A N/A diskparams N/A N/A self group diskparams N/A uavdp N/A self _UpdateAndVerifyDiskParams N/A new_diskparams N/A dict N/A N/A dt N/A uavdp N/A N/A diskparams get dt N/A N/A N/A N/A self op diskparams N/A dt N/A dt N/A constants DISK_TEMPLATES N/A dt N/A N/A self op diskparams N/A N/A self new_diskparams N/A N/A objects FillDict diskparams new_diskparams N/A N/A N/A N/A N/A utils VerifyDictOptions N/A self new_diskparams N/A constants DISK_DT_DEFAULTS N/A N/A CheckDiskAccessModeConsistency N/A self new_diskparams N/A self cfg group N/A self group N/A N/A N/A N/A errors OpPrereqError N/A err N/A N/A N/A N/A errors OpPrereqError N/A While verify diskparams options: %s err N/A errors ECODE_INVAL N/A N/A N/A self op hv_state N/A N/A N/A self new_hv_state N/A MergeAndVerifyHvState N/A N/A self op hv_state N/A N/A self group hv_state_static N/A N/A N/A self op disk_state N/A N/A N/A self new_disk_state N/A MergeAndVerifyDiskState N/A N/A self op disk_state N/A N/A self group disk_state_static N/A N/A N/A self _CheckIpolicy cluster owned_instance_names N/A BuildHooksEnv N/A N/A self N/A N/A N/A Build hooks env.

     N/A N/A GROUP_NAME NEW_ALLOC_POLICY N/A N/A self op group_name N/A N/A self op alloc_policy N/A BuildHooksNodes N/A N/A self N/A N/A N/A Build hooks nodes.

     N/A mn N/A N/A N/A self cfg GetMasterNode N/A N/A N/A mn N/A mn N/A Exec N/A N/A self feedback_fn N/A N/A N/A Modifies the node group.

     N/A result N/A N/A N/A N/A self op ndparams N/A N/A N/A N/A self group ndparams N/A self new_ndparams N/A N/A N/A result append N/A ndparams N/A str N/A N/A self group ndparams N/A N/A N/A self op diskparams N/A N/A N/A N/A self group diskparams N/A self new_diskparams N/A N/A N/A result append N/A diskparams N/A str N/A N/A self group diskparams N/A N/A N/A self op alloc_policy N/A N/A N/A N/A self group alloc_policy N/A N/A self op alloc_policy N/A N/A N/A self op hv_state N/A N/A N/A N/A self group hv_state_static N/A self new_hv_state N/A N/A N/A self op disk_state N/A N/A N/A N/A self group disk_state_static N/A self new_disk_state N/A N/A N/A self op ipolicy N/A N/A N/A N/A self group ipolicy N/A self new_ipolicy N/A N/A N/A N/A self cfg Update N/A self group feedback_fn N/A result N/A N/A LUGroupRemove N/A LogicalUnit N/A N/A HPATH group-remove N/A HTYPE N/A constants HTYPE_GROUP N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A N/A self group_uuid N/A CheckPrereq N/A N/A self N/A N/A N/A Check prerequisites.

    This checks that the given group name exists as a node group, that is
    empty (i.e., contains no nodes), and that is not the last group of the
    cluster.

     N/A group_nodes N/A N/A node uuid N/A node N/A N/A N/A N/A N/A self cfg GetAllNodesInfo values N/A N/A node group N/A self group_uuid N/A group_nodes N/A N/A N/A N/A errors OpPrereqError N/A Group '%s' not empty, has the following nodes: %s N/A N/A N/A self op group_name N/A N/A utils CommaJoin N/A N/A utils NiceSort group_nodes N/A errors ECODE_STATE N/A N/A N/A len N/A N/A N/A self cfg GetNodeGroupList 1 N/A N/A N/A N/A errors OpPrereqError N/A Group '%s' is the only group, cannot be removed N/A N/A self op group_name N/A errors ECODE_STATE N/A BuildHooksEnv N/A N/A self N/A N/A N/A Build hooks env.

     N/A N/A GROUP_NAME N/A N/A self op group_name N/A BuildHooksNodes N/A N/A self N/A N/A N/A Build hooks nodes.

     N/A mn N/A N/A N/A self cfg GetMasterNode N/A N/A N/A mn N/A mn N/A Exec N/A N/A self feedback_fn N/A N/A N/A Remove the node group.

     N/A N/A N/A N/A N/A N/A self cfg RemoveNodeGroup N/A self group_uuid N/A N/A N/A N/A errors ConfigurationError N/A N/A N/A N/A errors OpExecError N/A Group '%s' with UUID %s disappeared N/A N/A N/A self op group_name N/A self group_uuid N/A N/A LUGroupRename N/A LogicalUnit N/A N/A HPATH group-rename N/A HTYPE N/A constants HTYPE_GROUP N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A N/A self group_uuid N/A CheckPrereq N/A N/A self N/A N/A N/A Check prerequisites.

    Ensures requested new name is not yet used.

     N/A N/A N/A new_name_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op new_name N/A N/A N/A N/A errors OpPrereqError N/A N/A N/A N/A N/A N/A errors OpPrereqError N/A Desired new name '%s' clashes with existing node group (UUID: %s) N/A N/A N/A self op new_name new_name_uuid N/A errors ECODE_EXISTS N/A BuildHooksEnv N/A N/A self N/A N/A N/A Build hooks env.

     N/A N/A OLD_NAME NEW_NAME N/A N/A self op group_name N/A N/A self op new_name N/A BuildHooksNodes N/A N/A self N/A N/A N/A Build hooks nodes.

     N/A mn N/A N/A N/A self cfg GetMasterNode N/A all_nodes N/A N/A N/A self cfg GetAllNodesInfo N/A N/A N/A all_nodes pop mn None N/A run_nodes N/A mn N/A N/A N/A run_nodes extend N/A N/A node uuid N/A node N/A N/A all_nodes values N/A N/A node group N/A self group_uuid N/A N/A run_nodes run_nodes N/A Exec N/A N/A self feedback_fn N/A N/A N/A Rename the node group.

     N/A group N/A N/A N/A self cfg GetNodeGroup N/A self group_uuid N/A N/A group None N/A N/A N/A N/A errors OpExecError N/A Could not retrieve group '%s' (UUID: %s) N/A N/A N/A self op group_name N/A self group_uuid N/A N/A group name N/A N/A self op new_name N/A N/A N/A N/A self cfg Update group feedback_fn N/A N/A N/A self op new_name N/A N/A LUGroupEvacuate N/A LogicalUnit N/A N/A HPATH group-evacuate N/A HTYPE N/A constants HTYPE_GROUP N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A N/A self op target_groups N/A N/A N/A self req_target_uuids N/A map N/A N/A self cfg LookupNodeGroup N/A N/A self op target_groups N/A N/A N/A self req_target_uuids N/A N/A N/A N/A self group_uuid N/A self req_target_uuids N/A N/A N/A N/A errors OpPrereqError N/A Group to be evacuated (%s) can not be used as a target group (targets are %s) N/A N/A self group_uuid N/A N/A utils CommaJoin N/A self req_target_uuids N/A errors ECODE_INVAL N/A N/A N/A self op iallocator N/A GetDefaultIAllocator N/A self cfg N/A N/A self op iallocator N/A N/A self share_locks N/A ShareAll N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A locking LEVEL_NODEGROUP N/A locking LEVEL_NODE N/A N/A N/A N/A DeclareLocks N/A N/A self level N/A N/A N/A N/A level N/A locking LEVEL_INSTANCE N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self cfg GetInstanceNames N/A N/A N/A self cfg GetNodeGroupInstances N/A self group_uuid N/A N/A N/A level N/A locking LEVEL_NODEGROUP N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A N/A self req_target_uuids N/A N/A lock_groups N/A set N/A N/A N/A self group_uuid N/A self req_target_uuids N/A N/A N/A lock_groups update N/A group_uuid N/A instance_name N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A group_uuid N/A N/A N/A self cfg GetInstanceNodeGroups N/A N/A N/A N/A self cfg GetInstanceInfoByName instance_name uuid N/A N/A lock_groups N/A locking ALL_SET N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP lock_groups N/A N/A N/A level N/A locking LEVEL_NODE N/A N/A N/A N/A self recalculate_locks N/A N/A locking LEVEL_NODE N/A constants LOCKS_APPEND N/A N/A N/A self _LockInstancesNodes N/A owned_groups N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A N/A N/A self group_uuid owned_groups N/A member_node_uuids N/A node_uuid N/A group owned_groups N/A node_uuid N/A N/A N/A N/A self cfg GetNodeGroup group members N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODE extend member_node_uuids N/A CheckPrereq N/A N/A self N/A N/A N/A owned_instance_names N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A owned_groups N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A owned_node_uuids N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODE N/A N/A N/A owned_groups issuperset N/A self req_target_uuids N/A N/A N/A self group_uuid owned_groups N/A N/A CheckNodeGroupInstances N/A self cfg N/A self group_uuid owned_instance_names N/A N/A self instances N/A dict N/A N/A N/A self cfg GetMultiInstanceInfoByName owned_instance_names N/A N/A CheckInstancesNodeGroups N/A self cfg N/A self instances owned_groups owned_node_uuids N/A self group_uuid N/A N/A self req_target_uuids N/A N/A N/A self target_uuids N/A self req_target_uuids N/A N/A N/A self target_uuids N/A group_uuid N/A group_uuid owned_groups N/A group_uuid N/A self group_uuid N/A N/A N/A self target_uuids N/A N/A N/A N/A errors OpPrereqError There are no possible target groups N/A errors ECODE_INVAL N/A BuildHooksEnv N/A N/A self N/A N/A N/A Build hooks env.

     N/A N/A GROUP_NAME TARGET_GROUPS N/A N/A self op group_name N/A N/A join N/A self target_uuids N/A BuildHooksNodes N/A N/A self N/A N/A N/A Build hooks nodes.

     N/A mn N/A N/A N/A self cfg GetMasterNode N/A N/A N/A self group_uuid N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A run_nodes N/A N/A mn N/A N/A N/A N/A self cfg GetNodeGroup N/A self group_uuid members N/A N/A run_nodes run_nodes N/A _MigrateToFailover N/A N/A op N/A N/A N/A Return an equivalent failover opcode for a migrate one.

    If the argument is not a failover opcode, return it unchanged.

     N/A N/A N/A isinstance op N/A opcodes OpInstanceMigrate N/A N/A op N/A N/A N/A N/A opcodes OpInstanceFailover instance_name N/A op instance_name instance_uuid N/A getattr op instance_uuid None target_node N/A getattr op target_node None target_node_uuid N/A getattr op target_node_uuid None ignore_ipolicy N/A op ignore_ipolicy cleanup N/A op cleanup N/A staticmethod Exec N/A N/A self feedback_fn N/A N/A N/A inst_names N/A list N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A N/A N/A self group_uuid N/A self target_uuids N/A req N/A N/A iallocator IAReqGroupChange instances inst_names target_groups N/A self target_uuids N/A ial N/A N/A iallocator IAllocator N/A self cfg N/A self rpc req N/A N/A N/A ial Run N/A N/A self op iallocator N/A N/A N/A ial success N/A N/A N/A N/A errors OpPrereqError N/A Can't compute group evacuation using iallocator '%s': %s N/A N/A N/A self op iallocator N/A ial info N/A errors ECODE_NORES N/A jobs N/A LoadNodeEvacResult self N/A ial result N/A N/A self op early_release False N/A N/A N/A self LogInfo Iallocator returned %s job(s) for evacuating node group %s N/A len jobs N/A N/A self op group_name N/A N/A N/A self op force_failover N/A N/A N/A N/A self LogInfo Will insist on failovers N/A jobs N/A N/A N/A N/A self _MigrateToFailover op N/A op job N/A job jobs N/A N/A N/A self op sequential N/A N/A N/A N/A self LogInfo Jobs will be submitted to run sequentially N/A job N/A jobs N/A 1 N/A N/A op job N/A N/A N/A op depends N/A N/A -1 N/A error success N/A N/A ResultWithJobs jobs N/A N/A LUGroupVerifyDisks N/A NoHooksLU N/A N/A Verifies the status of all disks in a node group.

   N/A REQ_BGL False ExpandNames N/A N/A self N/A N/A N/A N/A self group_uuid N/A N/A N/A self cfg LookupNodeGroup N/A N/A self op group_name N/A N/A self share_locks N/A ShareAll N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A locking LEVEL_NODEGROUP N/A locking LEVEL_NODE N/A N/A N/A N/A N/A N/A self dont_collate_locks N/A N/A locking LEVEL_NODEGROUP True N/A N/A N/A self dont_collate_locks N/A N/A locking LEVEL_NODE True N/A DeclareLocks N/A N/A self level N/A N/A N/A N/A level N/A locking LEVEL_INSTANCE N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self needed_locks N/A N/A locking LEVEL_INSTANCE N/A N/A N/A self cfg GetInstanceNames N/A N/A N/A self cfg GetNodeGroupInstances N/A self group_uuid N/A N/A N/A level N/A locking LEVEL_NODEGROUP N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODEGROUP N/A set N/A N/A N/A self group_uuid N/A group_uuid N/A instance_name N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A group_uuid N/A N/A N/A self cfg GetInstanceNodeGroups N/A N/A N/A N/A self cfg GetInstanceInfoByName instance_name uuid N/A N/A N/A level N/A locking LEVEL_NODE N/A N/A N/A N/A self recalculate_locks N/A N/A locking LEVEL_NODE N/A constants LOCKS_APPEND N/A N/A N/A self _LockInstancesNodes N/A N/A N/A self group_uuid N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A member_node_uuids N/A N/A N/A N/A self cfg GetNodeGroup N/A self group_uuid members N/A N/A N/A N/A N/A self needed_locks N/A N/A locking LEVEL_NODE extend member_node_uuids N/A CheckPrereq N/A N/A self N/A N/A N/A owned_inst_names N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_INSTANCE N/A owned_groups N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODEGROUP N/A owned_node_uuids N/A frozenset N/A N/A self owned_locks N/A locking LEVEL_NODE N/A N/A N/A self group_uuid owned_groups N/A N/A CheckNodeGroupInstances N/A self cfg N/A self group_uuid owned_inst_names N/A N/A self instances N/A dict N/A N/A N/A self cfg GetMultiInstanceInfoByName owned_inst_names N/A N/A CheckInstancesNodeGroups N/A self cfg N/A self instances owned_groups owned_node_uuids N/A self group_uuid N/A _VerifyInstanceLvs N/A N/A self node_errors offline_disk_instance_names missing_disks N/A N/A N/A node_lv_to_inst N/A MapInstanceLvsToNodes N/A self cfg N/A inst N/A inst N/A N/A N/A self instances values N/A inst disks_active N/A node_lv_to_inst N/A N/A node_uuids N/A N/A utils NiceSort N/A N/A set N/A N/A self owned_locks N/A locking LEVEL_NODE N/A set N/A N/A N/A self cfg GetVmCapableNodeList N/A node_lvs N/A N/A N/A self rpc call_lv_list node_uuids N/A N/A N/A node_uuid node_res N/A N/A node_lvs items N/A N/A N/A node_res offline N/A N/A N/A msg N/A node_res fail_msg N/A msg N/A N/A N/A N/A logging warning Error enumerating LVs on node %s: %s N/A N/A N/A self cfg GetNodeName node_uuid msg N/A N/A node_errors N/A node_uuid msg N/A N/A N/A lv_name N/A _ _ lv_online N/A N/A N/A node_res payload items N/A N/A inst N/A N/A node_lv_to_inst pop N/A node_uuid lv_name None N/A N/A N/A lv_online N/A inst None N/A N/A N/A N/A offline_disk_instance_names add N/A inst name N/A N/A key inst N/A N/A node_lv_to_inst iteritems N/A N/A N/A N/A N/A N/A missing_disks setdefault N/A inst name N/A append N/A list key N/A _VerifyDrbdStates N/A N/A self node_errors offline_disk_instance_names N/A N/A N/A node_to_inst N/A N/A inst N/A N/A N/A self instances values N/A N/A disks N/A N/A N/A self cfg GetInstanceDisks N/A inst uuid N/A N/A N/A N/A inst disks_active N/A N/A utils AnyDiskOfType disks N/A N/A constants DT_DRBD8 N/A N/A N/A secondary_nodes N/A N/A N/A self cfg GetInstanceSecondaryNodes N/A inst uuid N/A node_uuid N/A N/A itertools chain N/A N/A inst primary_node secondary_nodes N/A N/A N/A N/A N/A N/A node_to_inst setdefault node_uuid N/A append inst N/A N/A node_uuid insts N/A N/A node_to_inst items N/A N/A node_disks N/A N/A N/A N/A N/A self cfg GetInstanceDisks N/A inst uuid inst N/A inst insts N/A node_res N/A N/A N/A self rpc call_drbd_needs_activation node_uuid node_disks N/A msg N/A node_res fail_msg N/A msg N/A N/A N/A N/A logging warning Error getting DRBD status on node %s: %s N/A N/A N/A self cfg GetNodeName node_uuid msg N/A N/A node_errors N/A node_uuid msg N/A N/A faulty_disk_uuids N/A set N/A node_res payload N/A inst N/A N/A N/A self instances values N/A N/A disks N/A N/A N/A self cfg GetInstanceDisks N/A inst uuid N/A inst_disk_uuids N/A set N/A N/A disk uuid N/A disk disks N/A N/A N/A inst_disk_uuids intersection faulty_disk_uuids N/A N/A N/A N/A offline_disk_instance_names add N/A inst name N/A Exec N/A N/A self feedback_fn N/A N/A N/A Verify integrity of cluster disks.

    @rtype: tuple of three items
    @return: a tuple of (dict of node-to-node_error, list of instances
        which need activate-disks, dict of instance: (node, volume) for
        missing volumes

     N/A node_errors N/A N/A offline_disk_instance_names N/A set N/A missing_disks N/A N/A N/A N/A self _VerifyInstanceLvs node_errors offline_disk_instance_names missing_disks N/A N/A N/A self _VerifyDrbdStates node_errors offline_disk_instance_names N/A N/A node_errors N/A list offline_disk_instance_names missing_disks N/A N/A