Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body For NameStore ListLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Str ListLoad Str For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad Num Num Num keyword Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareLt Call AttributeLoad NameLoad attr Num keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad Num Num Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Num Num Num TupleLoad Num Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict ListLoad Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad TupleLoad AttributeLoad NameLoad attr NameLoad Num Num NameLoad NameLoad TupleLoad Str NameLoad Num Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Str Num Num Num Num TupleLoad Num Num Num Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str ListLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad Num Num Num body Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad comprehension NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListComp BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad NameLoad Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq SubscriptLoad NameLoad Slice Num ListLoad AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Dict If CompareIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad TupleLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword Dict keyword ListLoad keyword Str keyword Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr CompareNotIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareEq SubscriptLoad SubscriptLoad NameLoad Slice Num Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore NameLoad If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad orelse If CompareEq SubscriptLoad NameLoad Slice Num ListLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad NameLoad Assign NameStore Str orelse If BoolOpAnd UnaryOpNot NameLoad CompareEq SubscriptLoad NameLoad Slice Num ListLoad AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad NameLoad Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Str For NameStore ListLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str keyword Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Pass orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq SubscriptLoad NameLoad Slice Num ListLoad AttributeLoad NameLoad attr Str body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore ListLoad Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Num orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad ListLoad AttributeLoad NameLoad attr Str body If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assert CompareNotIn NameLoad Call NameLoad Assign SubscriptStore Call NameLoad Index NameLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Script for testing ganeti.hypervisor.hv_xen N/A string N/A unittest N/A tempfile N/A shutil N/A random N/A os N/A mock ganeti constants ganeti objects ganeti pathutils ganeti hypervisor ganeti utils ganeti errors ganeti compat ganeti.hypervisor hv_base ganeti.hypervisor hv_xen N/A testutils N/A HVCLASS_TO_HVNAME N/A N/A utils InvertDict N/A hypervisor _HYPERVISOR_MAP TestConsole N/A N/A unittest TestCase N/A test N/A N/A self N/A N/A N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A cls N/A N/A N/A hv_xen XenPvmHypervisor N/A N/A hv_xen XenHvmHypervisor N/A N/A instance N/A N/A objects Instance name xen.example.com primary_node node24828-uuid N/A node N/A N/A objects Node name node24828 uuid node24828-uuid ndparams N/A N/A group N/A N/A objects NodeGroup name group52341 ndparams N/A N/A cons N/A N/A cls GetInstanceConsole instance node group hvparams N/A N/A N/A N/A self assertEqual N/A N/A cons Validate None N/A N/A N/A self assertEqual N/A cons kind N/A constants CONS_SSH N/A N/A N/A self assertEqual N/A cons host N/A node name N/A N/A N/A self assertEqual N/A N/A cons command N/A -1 N/A instance name N/A N/A TestCreateConfigCpus N/A N/A unittest TestCase N/A testEmpty N/A N/A self N/A N/A N/A cpu_mask N/A None N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _CreateConfigCpus cpu_mask cpus = [  ] N/A testAll N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _CreateConfigCpus N/A constants CPU_PINNING_ALL None N/A testOne N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _CreateConfigCpus 9 cpu = "9" N/A testMultiple N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _CreateConfigCpus 0-2,4,5-5:3:all N/A cpus = [ "0,1,2,4,5", "3", "%s" ] N/A constants CPU_PINNING_ALL_XEN N/A N/A TestGetCommand N/A N/A testutils GanetiTestCase N/A testCommandExplicit N/A N/A self N/A N/A N/A Test the case when the command is given as class parameter explicitly.

     N/A expected_cmd xl N/A hv N/A N/A hv_xen XenHypervisor _cmd N/A constants XEN_CMD_XL N/A N/A N/A self assertEqual N/A N/A hv _GetCommand None expected_cmd N/A testCommandInvalid N/A N/A self N/A N/A N/A Test the case an invalid command is given as class parameter explicitly.

     N/A hv N/A N/A hv_xen XenHypervisor _cmd invalidcommand N/A N/A N/A self assertRaises N/A errors ProgrammerError N/A hv _GetCommand None N/A testCommandHvparams N/A N/A self N/A N/A N/A expected_cmd xl N/A test_hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A hv N/A N/A hv_xen XenHypervisor N/A N/A N/A self assertEqual N/A N/A hv _GetCommand test_hvparams expected_cmd N/A testCommandHvparamsInvalid N/A N/A self N/A N/A N/A test_hvparams N/A N/A hv N/A N/A hv_xen XenHypervisor N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv _GetCommand test_hvparams N/A testCommandHvparamsCmdInvalid N/A N/A self N/A N/A N/A test_hvparams N/A N/A constants HV_XEN_CMD invalidcommand N/A hv N/A N/A hv_xen XenHypervisor N/A N/A N/A self assertRaises N/A errors ProgrammerError N/A hv _GetCommand test_hvparams N/A N/A TestParseInstanceList N/A N/A testutils GanetiTestCase N/A test N/A N/A self N/A N/A N/A data N/A N/A testutils ReadTestData xen-xm-list-4.0.1-dom0-only.txt N/A N/A N/A self assertEqual N/A N/A hv_xen _ParseInstanceList N/A N/A data splitlines False N/A N/A result N/A N/A hv_xen _ParseInstanceList N/A N/A data splitlines True N/A N/A N/A self assertEqual N/A len result 1 N/A N/A N/A self assertEqual N/A len N/A result N/A 0 6 N/A N/A N/A self assertEqual N/A N/A result N/A 0 N/A 0 N/A hv_xen _DOM0_NAME N/A N/A N/A self assertEqual N/A N/A result N/A 0 N/A 1 0 N/A N/A N/A self assertEqual N/A N/A result N/A 0 N/A 2 1023 N/A N/A N/A self assertEqual N/A N/A result N/A 0 N/A 3 1 N/A N/A N/A self assertEqual N/A N/A result N/A 0 N/A 4 N/A N/A hv_base HvInstanceState RUNNING N/A N/A N/A self assertAlmostEqual N/A N/A result N/A 0 N/A 5 121152.6 N/A testWrongLineFormat N/A N/A self N/A N/A N/A tests N/A N/A three fields only N/A name InvalidID 128 1 r----- 12345 N/A lines tests N/A N/A N/A N/A N/A N/A hv_xen _ParseInstanceList N/A N/A Header would be here lines False N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A Can't parse instance list N/A str err N/A N/A N/A N/A self fail Exception was not raised N/A N/A TestInstanceStateParsing N/A N/A unittest TestCase N/A testRunningStates N/A N/A self N/A N/A N/A states N/A r----- r-p--- rb---- rbp--- -b---- -bp--- -----d --p--d ------ --p--- r--ss- r-pss- rb-ss- rbpss- -b-ss- -bpss- ---ss- r--sr- r-psr- rb-sr- rbpsr- -b-sr- -bpsr- ---sr- N/A state states N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _XenToHypervisorInstanceState state N/A N/A hv_base HvInstanceState RUNNING N/A testShutdownStates N/A N/A self N/A N/A N/A states N/A ---s-- --ps-- ---s-d --ps-d N/A state states N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _XenToHypervisorInstanceState state N/A N/A hv_base HvInstanceState SHUTDOWN N/A testCrashingStates N/A N/A self N/A N/A N/A states N/A --psc- ---sc- ---scd --p-c- ----c- ----cd N/A state states N/A N/A N/A N/A self assertRaises N/A hv_xen _InstanceCrashed N/A hv_xen _XenToHypervisorInstanceState state N/A N/A TestGetInstanceList N/A N/A testutils GanetiTestCase N/A _Fail N/A N/A self N/A N/A N/A N/A N/A utils RunResult N/A constants EXIT_FAILURE None stdout stderr None NotImplemented NotImplemented N/A testTimeout N/A N/A self N/A N/A N/A fn N/A N/A testutils CallCounter N/A self _Fail N/A N/A N/A N/A N/A hv_xen _GetRunningInstanceList fn False delays N/A 0.02 1.0 0.03 timeout 0.1 N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A timeout exceeded N/A str err N/A N/A N/A N/A self fail Exception was not raised N/A N/A N/A self assertTrue N/A N/A N/A fn Count 10 msg 'xm list' was called too many times N/A _Success N/A N/A self stdout N/A N/A N/A N/A N/A utils RunResult N/A constants EXIT_SUCCESS None stdout None NotImplemented NotImplemented N/A testSuccess N/A N/A self N/A N/A N/A data N/A N/A testutils ReadTestData xen-xm-list-4.0.1-four-instances.txt N/A fn N/A N/A testutils CallCounter N/A N/A compat partial N/A self _Success data N/A result N/A N/A hv_xen _GetRunningInstanceList fn True delays N/A 0.02 1.0 0.03 timeout 0.1 N/A N/A N/A self assertEqual N/A len result 4 N/A N/A N/A self assertEqual N/A map N/A compat fst result N/A Domain-0 server01.example.com web3106215069.example.com testinstance.example.com N/A N/A N/A self assertEqual N/A N/A fn Count 1 N/A testOmitCrashed N/A N/A self N/A N/A N/A data N/A N/A testutils ReadTestData xen-xl-list-4.4-crashed-instances.txt N/A fn N/A N/A testutils CallCounter N/A N/A compat partial N/A self _Success data N/A result N/A N/A hv_xen _GetAllInstanceList fn True delays N/A 0.02 1.0 0.03 timeout 0.1 N/A N/A N/A self assertEqual N/A len result 2 N/A N/A N/A self assertEqual N/A map N/A compat fst result N/A Domain-0 server01.example.com N/A N/A N/A self assertEqual N/A N/A fn Count 1 N/A N/A TestParseNodeInfo N/A N/A testutils GanetiTestCase N/A testEmpty N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _ParseNodeInfo N/A N/A testUnknownInput N/A N/A self N/A N/A N/A data N/A N/A join N/A foo bar something else goes here N/A N/A N/A self assertEqual N/A N/A hv_xen _ParseNodeInfo data N/A N/A testBasicInfo N/A N/A self N/A N/A N/A data N/A N/A testutils ReadTestData xen-xm-info-4.0.1.txt N/A result N/A N/A hv_xen _ParseNodeInfo data N/A N/A N/A self assertEqual result N/A cpu_nodes cpu_sockets cpu_total hv_version memory_free memory_total 1 2 4 N/A 4 0 8004 16378 N/A N/A TestMergeInstanceInfo N/A N/A testutils GanetiTestCase N/A testEmpty N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _MergeInstanceInfo N/A N/A N/A N/A _FakeXmList N/A N/A self include_node N/A N/A N/A N/A N/A N/A hv_xen _DOM0_NAME NotImplemented 4096 7 NotImplemented NotImplemented N/A inst1.example.com NotImplemented 2048 4 NotImplemented NotImplemented N/A testMissingNodeInfo N/A N/A self N/A N/A N/A instance_list N/A N/A self _FakeXmList True N/A result N/A N/A hv_xen _MergeInstanceInfo N/A instance_list N/A N/A N/A self assertEqual result N/A memory_dom0 cpu_dom0 4096 7 N/A testWithNodeInfo N/A N/A self N/A N/A N/A info N/A N/A testutils ReadTestData xen-xm-info-4.0.1.txt N/A instance_list N/A N/A self _FakeXmList True N/A result N/A N/A hv_xen _GetNodeInfo info instance_list N/A N/A N/A self assertEqual result N/A cpu_nodes cpu_sockets cpu_total cpu_dom0 hv_version memory_dom0 memory_free memory_hv memory_total 1 2 4 7 N/A 4 0 4096 8004 2230 16378 N/A N/A TestGetConfigFileDiskData N/A N/A unittest TestCase N/A testLetterCount N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A len N/A hv_xen _DISK_LETTERS 26 N/A testNoDisks N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A hv_xen _GetConfigFileDiskData N/A hd N/A N/A testManyDisks N/A N/A self N/A N/A N/A offset N/A 0 1 10 N/A N/A disks N/A N/A N/A N/A objects Disk dev_type N/A constants DT_PLAIN N/A /tmp/disk/%s idx NotImplemented N/A idx N/A range N/A N/A len N/A hv_xen _DISK_LETTERS offset N/A N/A offset 0 N/A N/A result N/A N/A hv_xen _GetConfigFileDiskData disks hd N/A N/A N/A self assertEqual result N/A N/A 'phy:/tmp/disk/%s,hd%s,r' N/A idx N/A N/A string ascii_lowercase N/A idx N/A idx N/A range N/A N/A len N/A hv_xen _DISK_LETTERS offset N/A N/A N/A N/A N/A N/A hv_xen _GetConfigFileDiskData disks hd N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertEqual N/A str err Too many disks N/A N/A N/A N/A self fail Exception was not raised N/A testTwoLvDisksWithMode N/A N/A self N/A N/A N/A disks N/A N/A N/A N/A objects Disk dev_type N/A constants DT_PLAIN mode N/A constants DISK_RDWR /tmp/diskFirst NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_PLAIN mode N/A constants DISK_RDONLY /tmp/diskLast NotImplemented N/A result N/A N/A hv_xen _GetConfigFileDiskData disks hd N/A N/A N/A self assertEqual result N/A 'phy:/tmp/diskFirst,hda,w' 'phy:/tmp/diskLast,hdb,r' N/A testFileDisks N/A N/A self N/A N/A N/A disks N/A N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDWR logical_id N/A N/A constants FD_LOOP /tmp/diskFirst NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDONLY logical_id N/A N/A constants FD_BLKTAP /tmp/diskTwo NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDWR logical_id N/A N/A constants FD_LOOP /tmp/diskThree NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDONLY logical_id N/A N/A constants FD_BLKTAP2 /tmp/diskFour NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDWR logical_id N/A N/A constants FD_BLKTAP /tmp/diskLast NotImplemented N/A result N/A N/A hv_xen _GetConfigFileDiskData disks sd N/A N/A N/A self assertEqual result N/A 'file:/tmp/diskFirst,sda,w' 'tap:aio:/tmp/diskTwo,sdb,r' 'file:/tmp/diskThree,sdc,w' 'tap2:tapdisk:aio:/tmp/diskFour,sdd,r' 'tap:aio:/tmp/diskLast,sde,w' N/A testInvalidFileDisk N/A N/A self N/A N/A N/A disks N/A N/A N/A N/A objects Disk dev_type N/A constants DT_FILE mode N/A constants DISK_RDWR logical_id N/A #unknown# /tmp/diskinvalid NotImplemented N/A N/A N/A self assertRaises KeyError N/A hv_xen _GetConfigFileDiskData disks sd N/A N/A TestXenHypervisorRunXen N/A N/A unittest TestCase N/A N/A XEN_SUB_CMD help testCommandUnknown N/A N/A self N/A N/A N/A cmd #unknown command# N/A N/A N/A self assertFalse N/A cmd N/A constants KNOWN_XEN_COMMANDS N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn NotImplemented _cmd cmd N/A N/A N/A self assertRaises N/A errors ProgrammerError N/A hv _RunXen N/A None N/A testCommandNoHvparams N/A N/A self N/A N/A N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn NotImplemented N/A hvparams None N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv _RunXen N/A N/A self XEN_SUB_CMD hvparams N/A testCommandFromHvparams N/A N/A self N/A N/A N/A expected_xen_cmd xl N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A mock_run_cmd N/A N/A mock Mock N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A hv _RunXen N/A N/A self XEN_SUB_CMD hvparams hvparams N/A N/A N/A mock_run_cmd assert_called_with N/A expected_xen_cmd N/A self XEN_SUB_CMD N/A N/A TestXenHypervisorGetInstanceList N/A N/A unittest TestCase N/A N/A RESULT_OK N/A N/A utils RunResult 0 None None None N/A XEN_LIST list testNoHvparams N/A N/A self N/A N/A N/A expected_xen_cmd xm N/A mock_run_cmd N/A N/A mock Mock return_value N/A self RESULT_OK N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv _GetInstanceList True None N/A testFromHvparams N/A N/A self N/A N/A N/A expected_xen_cmd xl N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A mock_run_cmd N/A N/A mock Mock return_value N/A self RESULT_OK N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A hv _GetInstanceList True hvparams N/A N/A N/A mock_run_cmd assert_called_with N/A expected_xen_cmd N/A self XEN_LIST N/A N/A TestXenHypervisorListInstances N/A N/A unittest TestCase N/A N/A RESULT_OK N/A N/A utils RunResult 0 None None None N/A XEN_LIST list testNoHvparams N/A N/A self N/A N/A N/A expected_xen_cmd xm N/A mock_run_cmd N/A N/A mock Mock return_value N/A self RESULT_OK N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv ListInstances N/A testHvparamsXl N/A N/A self N/A N/A N/A expected_xen_cmd xl N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A mock_run_cmd N/A N/A mock Mock return_value N/A self RESULT_OK N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A hv ListInstances hvparams hvparams N/A N/A N/A mock_run_cmd assert_called_with N/A expected_xen_cmd N/A self XEN_LIST N/A N/A TestXenHypervisorCheckToolstack N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self tmpdir N/A N/A tempfile mkdtemp N/A N/A self cfg_name xen_config N/A N/A self cfg_path N/A N/A utils PathJoin N/A self tmpdir N/A self cfg_name N/A N/A self hv N/A N/A hv_xen XenHypervisor N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self tmpdir N/A testBinaryNotFound N/A N/A self N/A N/A N/A RESULT_FAILED N/A N/A utils RunResult 1 None None None N/A mock_run_cmd N/A N/A mock Mock return_value RESULT_FAILED N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A result N/A N/A hv _CheckToolstackBinary xl N/A N/A N/A self assertFalse result N/A testCheckToolstackXlConfigured N/A N/A self N/A N/A N/A RESULT_OK N/A N/A utils RunResult 0 None None None N/A mock_run_cmd N/A N/A mock Mock return_value RESULT_OK N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A result N/A N/A hv _CheckToolstackXlConfigured N/A N/A N/A self assertTrue result N/A testCheckToolstackXlNotConfigured N/A N/A self N/A N/A N/A RESULT_FAILED N/A N/A utils RunResult 1 None ERROR:  A different toolstack (xm) has been selected! None None N/A mock_run_cmd N/A N/A mock Mock return_value RESULT_FAILED N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A result N/A N/A hv _CheckToolstackXlConfigured N/A N/A N/A self assertFalse result N/A testCheckToolstackXlFails N/A N/A self N/A N/A N/A RESULT_FAILED N/A N/A utils RunResult 1 None ERROR: The pink bunny hid the binary. None None N/A mock_run_cmd N/A N/A mock Mock return_value RESULT_FAILED N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv _CheckToolstackXlConfigured N/A N/A TestXenHypervisorWriteConfigFile N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self tmpdir N/A N/A tempfile mkdtemp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self tmpdir N/A testWriteError N/A N/A self N/A N/A N/A cfgdir N/A N/A utils PathJoin N/A self tmpdir foobar N/A hv N/A N/A hv_xen XenHypervisor _cfgdir cfgdir _run_cmd_fn NotImplemented _cmd NotImplemented N/A N/A N/A self assertFalse N/A N/A N/A os path exists cfgdir N/A N/A N/A N/A N/A hv _WriteConfigFile name data N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A N/A N/A str err startswith Cannot write Xen instance N/A N/A N/A N/A self fail Exception was not raised N/A N/A TestXenHypervisorVerify N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A output N/A N/A testutils ReadTestData xen-xm-info-4.0.1.txt N/A N/A self _result_ok N/A N/A utils RunResult 0 None output None None N/A testVerify N/A N/A self N/A N/A N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A mock_run_cmd N/A N/A mock Mock return_value N/A self _result_ok N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A hv _CheckToolstack N/A N/A mock Mock return_value True N/A result N/A N/A hv Verify hvparams N/A N/A N/A self assertTrue N/A result None N/A testVerifyToolstackNotOk N/A N/A self N/A N/A N/A hvparams N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL N/A mock_run_cmd N/A N/A mock Mock return_value N/A self _result_ok N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A hv _CheckToolstack N/A N/A mock Mock N/A N/A N/A hv _CheckToolstack side_effect N/A N/A errors HypervisorError foo N/A result N/A N/A hv Verify hvparams N/A N/A N/A self assertTrue N/A result None N/A testVerifyFailing N/A N/A self N/A N/A N/A result_failed N/A N/A utils RunResult 1 None None None N/A mock_run_cmd N/A N/A mock Mock return_value result_failed N/A hv N/A N/A hv_xen XenHypervisor _cfgdir NotImplemented _run_cmd_fn mock_run_cmd N/A N/A hv _CheckToolstack N/A N/A mock Mock return_value True N/A result N/A N/A hv Verify N/A N/A N/A self assertTrue N/A result None N/A N/A _TestXenHypervisor N/A object N/A N/A TARGET NotImplemented N/A CMD NotImplemented N/A HVNAME NotImplemented N/A VALID_HVPARAMS N/A N/A constants HV_XEN_CMD N/A constants XEN_CMD_XL setUp N/A N/A self N/A N/A N/A N/A N/A N/A super _TestXenHypervisor self setUp N/A N/A self tmpdir N/A N/A tempfile mkdtemp N/A N/A self vncpw N/A N/A join N/A N/A random sample N/A string ascii_letters 10 N/A N/A self _xen_delay N/A N/A self TARGET _INSTANCE_LIST_DELAYS N/A N/A N/A self TARGET _INSTANCE_LIST_DELAYS N/A 0.01 1.0 0.05 N/A N/A self _list_timeout N/A N/A self TARGET _INSTANCE_LIST_TIMEOUT N/A N/A N/A self TARGET _INSTANCE_LIST_TIMEOUT 0.1 N/A N/A self vncpw_path N/A N/A utils PathJoin N/A self tmpdir vncpw N/A N/A N/A utils WriteFile N/A self vncpw_path data N/A self vncpw N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super _TestXenHypervisor self tearDown N/A N/A N/A shutil rmtree N/A self tmpdir N/A N/A N/A self TARGET _INSTANCE_LIST_DELAYS N/A self _xen_delay N/A N/A N/A self TARGET _INSTANCE_LIST_TIMEOUT N/A self _list_timeout N/A _GetHv N/A N/A self run_cmd N/A NotImplemented N/A N/A N/A N/A self TARGET _cfgdir N/A self tmpdir _run_cmd_fn run_cmd _cmd N/A self CMD N/A _SuccessCommand N/A N/A self stdout cmd N/A N/A N/A N/A N/A self assertEqual N/A cmd N/A 0 N/A self CMD N/A N/A N/A utils RunResult N/A constants EXIT_SUCCESS None stdout None NotImplemented NotImplemented N/A _FailingCommand N/A N/A self cmd N/A N/A N/A N/A N/A self assertEqual N/A cmd N/A 0 N/A self CMD N/A N/A N/A utils RunResult N/A constants EXIT_FAILURE None This command failed None NotImplemented NotImplemented N/A _FakeTcpPing N/A N/A self expected result target port N/A kwargs N/A N/A N/A N/A self assertEqual N/A target port expected N/A result N/A testReadingNonExistentConfigFile N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv N/A N/A N/A N/A N/A hv _ReadConfigFile inst15780.example.com N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A N/A N/A str err startswith Failed to load Xen config file: N/A N/A N/A N/A self fail Exception was not raised N/A testRemovingAutoConfigFile N/A N/A self N/A N/A N/A name inst8206.example.com N/A cfgfile N/A N/A utils PathJoin N/A self tmpdir name N/A autodir N/A N/A utils PathJoin N/A self tmpdir auto N/A autocfgfile N/A N/A utils PathJoin autodir name N/A N/A N/A os mkdir autodir N/A N/A N/A utils WriteFile autocfgfile data N/A hv N/A N/A self _GetHv N/A N/A N/A self assertTrue N/A N/A N/A os path isfile autocfgfile N/A N/A N/A hv _WriteConfigFile name content N/A N/A N/A self assertFalse N/A N/A N/A os path exists autocfgfile N/A N/A N/A self assertEqual N/A N/A utils ReadFile cfgfile content N/A _XenList N/A N/A self cmd N/A N/A N/A N/A N/A self assertEqual cmd N/A N/A self CMD list N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-four-instances.txt N/A N/A N/A self _SuccessCommand output cmd N/A testGetInstanceInfo N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv run_cmd N/A self _XenList N/A N/A name instid memory vcpus state runtime N/A N/A hv GetInstanceInfo server01.example.com N/A N/A N/A self assertEqual name server01.example.com N/A N/A N/A self assertEqual instid 1 N/A N/A N/A self assertEqual memory 1024 N/A N/A N/A self assertEqual vcpus 1 N/A N/A N/A self assertEqual state N/A N/A hv_base HvInstanceState RUNNING N/A N/A N/A self assertAlmostEqual runtime 167643.2 N/A testGetInstanceInfoDom0 N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv run_cmd N/A self _XenList N/A N/A name instid memory vcpus state runtime N/A N/A hv GetInstanceInfo N/A hv_xen _DOM0_NAME N/A N/A N/A self assertEqual name Domain-0 N/A N/A N/A self assertEqual instid 0 N/A N/A N/A self assertEqual memory 1023 N/A N/A N/A self assertEqual vcpus 1 N/A N/A N/A self assertEqual state N/A N/A hv_base HvInstanceState RUNNING N/A N/A N/A self assertAlmostEqual runtime 154706.1 N/A testGetInstanceInfoUnknown N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv run_cmd N/A self _XenList N/A result N/A N/A hv GetInstanceInfo unknown.example.com N/A N/A N/A self assertTrue N/A result None N/A testGetAllInstancesInfo N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv run_cmd N/A self _XenList N/A result N/A N/A hv GetAllInstancesInfo N/A N/A N/A self assertEqual N/A map N/A compat fst result N/A server01.example.com web3106215069.example.com testinstance.example.com N/A testListInstances N/A N/A self N/A N/A N/A hv N/A N/A self _GetHv run_cmd N/A self _XenList N/A N/A N/A self assertEqual N/A N/A hv ListInstances N/A server01.example.com web3106215069.example.com testinstance.example.com N/A _StartInstanceCommand N/A N/A self inst paused failcreate cmd N/A N/A N/A N/A cmd N/A N/A self CMD info N/A N/A output N/A N/A testutils ReadTestData xen-xm-info-4.0.1.txt N/A N/A N/A cmd N/A N/A self CMD list N/A N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-dom0-only.txt N/A N/A N/A N/A cmd N/A 2 N/A N/A self CMD create N/A N/A args N/A cmd N/A 2 N/A cfgfile N/A N/A utils PathJoin N/A self tmpdir N/A inst name N/A paused N/A N/A N/A N/A self assertEqual args N/A -p cfgfile N/A N/A N/A N/A self assertEqual args N/A cfgfile N/A failcreate N/A N/A N/A N/A self _FailingCommand cmd N/A output N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A N/A N/A self _SuccessCommand output cmd N/A _MakeInstance N/A N/A self N/A N/A N/A bep N/A N/A objects FillDict N/A constants BEC_DEFAULTS N/A N/A hvp N/A N/A objects FillDict N/A N/A constants HVC_DEFAULTS N/A N/A self HVNAME N/A N/A N/A N/A constants HV_VNC_PASSWORD_FILE hvp N/A N/A N/A hvp N/A N/A constants HV_VNC_PASSWORD_FILE N/A self vncpw_path N/A disks N/A N/A N/A N/A objects Disk dev_type N/A constants DT_PLAIN mode N/A constants DISK_RDWR N/A N/A utils PathJoin N/A self tmpdir disk0 NotImplemented N/A N/A N/A objects Disk dev_type N/A constants DT_PLAIN mode N/A constants DISK_RDONLY N/A N/A utils PathJoin N/A self tmpdir disk1 NotImplemented N/A inst N/A N/A objects Instance name server01.example.com hvparams hvp beparams bep osparams N/A nics N/A os deb1 disks N/A map N/A compat fst disks N/A N/A N/A inst UpgradeConfig N/A N/A inst disks N/A testStartInstance N/A N/A self N/A N/A N/A N/A inst disks N/A N/A self _MakeInstance N/A N/A pathutils LOG_XEN_DIR N/A self tmpdir N/A failcreate N/A False True N/A N/A paused N/A False True N/A N/A run_cmd N/A N/A compat partial N/A self _StartInstanceCommand inst paused failcreate N/A hv N/A N/A self _GetHv run_cmd run_cmd N/A N/A N/A self assertTrue N/A N/A inst name N/A N/A hv ListInstances N/A cfgfile N/A N/A utils PathJoin N/A self tmpdir N/A inst name N/A N/A N/A utils RemoveFile cfgfile N/A failcreate N/A N/A N/A N/A self assertRaises N/A errors HypervisorError N/A hv StartInstance inst disks paused N/A N/A N/A self assertFalse N/A N/A N/A os path exists cfgfile N/A N/A N/A N/A hv StartInstance inst disks paused N/A lines N/A N/A N/A N/A utils ReadFile cfgfile splitlines N/A N/A N/A constants HV_VNC_PASSWORD_FILE N/A inst hvparams N/A N/A N/A N/A self assertTrue N/A N/A vncpasswd = '%s' N/A self vncpw lines N/A N/A extra N/A N/A inst hvparams N/A N/A constants HV_KERNEL_ARGS N/A N/A N/A self assertTrue N/A N/A extra = '%s' extra lines N/A _StopInstanceCommand N/A N/A self instance_name force fail full_cmd N/A N/A N/A N/A N/A N/A full_cmd N/A 1 N/A 0 timeout N/A N/A cmd N/A full_cmd N/A 2 N/A N/A cmd full_cmd N/A N/A cmd N/A N/A self CMD list N/A N/A output N/A Name  ID  Mem  VCPUs  State  Time(s)
Domain-0  0  1023  1  r-----  142691.0
%s  417  128  1  r-----  3.2
 instance_name N/A N/A N/A N/A cmd N/A 2 N/A N/A self CMD destroy N/A N/A N/A N/A self assertEqual N/A cmd N/A 2 N/A instance_name N/A output N/A N/A N/A N/A force N/A N/A cmd N/A 3 N/A N/A self CMD shutdown -w N/A N/A N/A N/A self assertEqual N/A cmd N/A 3 N/A instance_name N/A output N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A fail N/A N/A N/A N/A self _FailingCommand cmd N/A N/A N/A N/A self _SuccessCommand output cmd N/A testStopInstance N/A N/A self N/A N/A N/A name inst4284.example.com N/A cfgfile N/A N/A utils PathJoin N/A self tmpdir name N/A cfgdata config file content
 N/A force N/A False True N/A N/A fail N/A False True N/A N/A N/A N/A utils WriteFile cfgfile data cfgdata N/A run_cmd N/A N/A compat partial N/A self _StopInstanceCommand name force fail N/A hv N/A N/A self _GetHv run_cmd run_cmd N/A N/A N/A self assertTrue N/A N/A N/A os path isfile cfgfile N/A fail N/A N/A N/A N/A N/A N/A hv _StopInstance name force None N/A constants DEFAULT_SHUTDOWN_TIMEOUT N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A N/A N/A str err startswith listing instances failed msg N/A str err N/A N/A N/A N/A self fail Exception was not raised N/A N/A N/A self assertEqual N/A N/A utils ReadFile cfgfile cfgdata msg Configuration was removed when stopping instance failed N/A N/A N/A N/A hv _StopInstance name force None N/A constants DEFAULT_SHUTDOWN_TIMEOUT N/A N/A N/A self assertFalse N/A N/A N/A os path exists cfgfile N/A _MigrateNonRunningInstCmd N/A N/A self cmd N/A N/A N/A N/A cmd N/A N/A self CMD list N/A N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-dom0-only.txt N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A N/A N/A self _SuccessCommand output cmd N/A testMigrateInstanceNotRunning N/A N/A self N/A N/A N/A name nonexistinginstance.example.com N/A target N/A constants IP4_ADDRESS_LOCALHOST N/A port 14618 N/A hv N/A N/A self _GetHv run_cmd N/A self _MigrateNonRunningInstCmd N/A live N/A False True N/A N/A N/A N/A N/A N/A hv _MigrateInstance name target port live N/A self VALID_HVPARAMS _ping_fn NotImplemented N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertEqual N/A str err Instance not running, cannot migrate N/A N/A N/A N/A self fail Exception was not raised N/A _MigrateInstTargetUnreachCmd N/A N/A self cmd N/A N/A N/A N/A cmd N/A N/A self CMD list N/A N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-four-instances.txt N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A N/A N/A self _SuccessCommand output cmd N/A testMigrateTargetUnreachable N/A N/A self N/A N/A N/A name server01.example.com N/A target N/A constants IP4_ADDRESS_LOCALHOST N/A port 28349 N/A hv N/A N/A self _GetHv run_cmd N/A self _MigrateInstTargetUnreachCmd N/A hvparams N/A N/A constants HV_XEN_CMD N/A self CMD N/A live N/A False True N/A N/A N/A N/A self CMD N/A constants XEN_CMD_XL N/A N/A N/A N/A N/A N/A N/A N/A hv _MigrateInstance name target port live hvparams _ping_fn N/A N/A compat partial N/A self _FakeTcpPing N/A target port False N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A wanted N/A Remote host %s not target N/A N/A N/A self assertTrue N/A N/A N/A str err startswith wanted N/A N/A N/A N/A self fail Exception was not raised N/A _MigrateInstanceCmd N/A N/A self instance_name target port live fail cmd N/A N/A N/A N/A cmd N/A N/A self CMD list N/A N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-four-instances.txt N/A N/A N/A N/A cmd N/A 2 N/A N/A self CMD migrate N/A N/A N/A N/A self CMD N/A constants XEN_CMD_XM N/A N/A args N/A -p N/A str port N/A live N/A N/A N/A N/A args append -l N/A N/A N/A N/A self CMD N/A constants XEN_CMD_XL N/A N/A args N/A -s N/A N/A constants XL_SOCAT_CMD N/A target port -C N/A N/A utils PathJoin N/A self tmpdir instance_name N/A N/A N/A N/A self fail N/A Unknown Xen command '%s' N/A self CMD N/A N/A N/A args extend N/A instance_name target N/A N/A N/A self assertEqual N/A cmd N/A 2 args N/A fail N/A N/A N/A N/A self _FailingCommand cmd N/A output N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A N/A N/A self _SuccessCommand output cmd N/A testMigrateInstance N/A N/A self N/A N/A N/A instname server01.example.com N/A target N/A constants IP4_ADDRESS_LOCALHOST N/A port 22364 N/A hvparams N/A N/A constants HV_XEN_CMD N/A self CMD N/A live N/A False True N/A N/A fail N/A False True N/A N/A ping_fn N/A N/A testutils CallCounter N/A N/A compat partial N/A self _FakeTcpPing N/A target port True N/A run_cmd N/A N/A compat partial N/A self _MigrateInstanceCmd instname target port live fail N/A hv N/A N/A self _GetHv run_cmd run_cmd N/A fail N/A N/A N/A N/A N/A N/A hv _MigrateInstance instname target port live hvparams _ping_fn ping_fn N/A N/A N/A N/A errors HypervisorError N/A err N/A N/A N/A N/A self assertTrue N/A N/A N/A str err startswith Failed to migrate instance N/A N/A N/A N/A self fail Exception was not raised N/A N/A N/A N/A hv _MigrateInstance instname target port live hvparams _ping_fn ping_fn N/A N/A N/A self CMD N/A constants XEN_CMD_XM N/A N/A expected_pings 1 N/A N/A expected_pings 0 N/A N/A N/A self assertEqual N/A N/A ping_fn Count expected_pings N/A _GetNodeInfoCmd N/A N/A self fail cmd N/A N/A N/A N/A cmd N/A N/A self CMD info N/A N/A fail N/A N/A N/A N/A self _FailingCommand cmd N/A N/A output N/A N/A testutils ReadTestData xen-xm-info-4.0.1.txt N/A N/A N/A cmd N/A N/A self CMD list N/A N/A fail N/A N/A N/A N/A self fail 'xm list' shouldn't be called when 'xm info' failed N/A N/A output N/A N/A testutils ReadTestData xen-xm-list-4.0.1-four-instances.txt N/A N/A N/A N/A self fail N/A Unhandled command: %s N/A cmd N/A N/A N/A self _SuccessCommand output cmd N/A testGetNodeInfo N/A N/A self N/A N/A N/A run_cmd N/A N/A compat partial N/A self _GetNodeInfoCmd False N/A hv N/A N/A self _GetHv run_cmd run_cmd N/A result N/A N/A hv GetNodeInfo N/A N/A N/A self assertEqual N/A result N/A hv_version N/A 4 0 N/A N/A N/A self assertEqual N/A result N/A memory_free 8004 N/A testGetNodeInfoFailing N/A N/A self N/A N/A N/A run_cmd N/A N/A compat partial N/A self _GetNodeInfoCmd True N/A hv N/A N/A self _GetHv run_cmd run_cmd N/A N/A N/A self assertTrue N/A N/A N/A hv GetNodeInfo None N/A N/A TestXenVersionsSafeForMigration N/A N/A unittest TestCase N/A testHVVersionsLikelySafeForMigration N/A N/A self N/A N/A N/A hv N/A N/A hv_xen XenHypervisor N/A N/A N/A self assertTrue N/A N/A hv VersionsSafeForMigration N/A 4 0 N/A 4 1 N/A N/A N/A self assertFalse N/A N/A hv VersionsSafeForMigration N/A 4 1 N/A 4 0 N/A N/A N/A self assertFalse N/A N/A hv VersionsSafeForMigration N/A 4 0 N/A 4 2 N/A N/A N/A self assertTrue N/A N/A hv VersionsSafeForMigration N/A 4 2 7 N/A 4 2 9 N/A N/A N/A self assertTrue N/A N/A hv VersionsSafeForMigration N/A 4 2 9 N/A 4 2 7 N/A N/A N/A self assertTrue N/A N/A hv VersionsSafeForMigration N/A 4 N/A 4 N/A N/A N/A self assertFalse N/A N/A hv VersionsSafeForMigration N/A 4 N/A 5 N/A N/A _MakeTestClass N/A N/A cls cmd N/A N/A N/A Makes a class for testing.

  The returned class has structure as shown in the following pseudo code:

    class Test{cls.__name__}{cmd}(_TestXenHypervisor, unittest.TestCase):
      TARGET = {cls}
      CMD = {cmd}
      HVNAME = {Hypervisor name retrieved using class}

  @type cls: class
  @param cls: Hypervisor class to be tested
  @type cmd: string
  @param cmd: Hypervisor command
  @rtype: tuple
  @return: Class name and class object (not instance)

   N/A name N/A Test%sCmd%s N/A N/A cls __name__ N/A N/A cmd title N/A bases N/A _TestXenHypervisor N/A unittest TestCase N/A hvname N/A HVCLASS_TO_HVNAME N/A cls N/A N/A name N/A type name bases N/A dict TARGET cls CMD cmd HVNAME hvname N/A N/A cls N/A N/A hv_xen XenPvmHypervisor N/A hv_xen XenHvmHypervisor N/A N/A cmd N/A constants KNOWN_XEN_COMMANDS N/A N/A N/A name testcls N/A _MakeTestClass cls cmd N/A N/A name N/A locals N/A N/A N/A locals N/A name testcls N/A N/A __name__ __main__ N/A N/A N/A N/A testutils GanetiTestProgram