Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str CompareEq Str Call NameLoad Str body Return ListLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad Call NameLoad Str attr orelse Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore ListComp Call NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr comprehension NameStore GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore ListComp Call NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr comprehension NameStore GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str BinOpAdd Call NameLoad NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad orelse Return Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Call AttributeLoad Call NameLoad Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Str body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore ListLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore BinOpMult Num Num Return Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str BinOpPow Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str BinOpPow Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str BinOpPow Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str BinOpPow Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad If CompareGt Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign NameStore ListLoad If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return BinOpAdd Call NameLoad Num Call NameLoad BinOpAdd ListLoad Num Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Return IfExp CompareLtE NameLoad Num BinOpMult NameLoad Num BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str BinOpMult Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Str Call NameLoad BinOpMult Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Str BinOpMult Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad ListComp TupleLoad NameLoad IfExp Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Return BinOpMod NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str TryExcept body With Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameStore body For NameStore NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler body Assign NameStore Str Expr Call AttributeLoad Call NameLoad attr NameLoad Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str SubscriptLoad NameLoad Index Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str If BoolOpAnd CompareEq Call NameLoad NameLoad NameLoad CompareLt Call NameLoad NameLoad Num body Assign NameStore ListLoad Str Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr GeneratorExp BinOpMod Str NameLoad comprehension NameStore NameLoad Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str Num Num body Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str Num Num body Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str orelse Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str Num body Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore IfExp UnaryOpNot NameLoad Str Str Assign NameStore Call AttributeLoad Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body If CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num body Break Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str CompareGt Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign SubscriptStore NameLoad Index Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Dict Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Num Num BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Num Num Call NameLoad SubscriptLoad NameLoad Index Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str With Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameStore body For NameStore ListLoad Str Str Str Str Str Str body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str With Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad NameLoad Dict Str Str AugAssignAdd NameStore Num For TupleStore NameStore NameStore Call NameLoad ListLoad Str Str Str ListComp Call AttributeLoad NameLoad attr BinOpMod Str NameLoad comprehension NameStore ListLoad Str Str Str body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str BinOpMod Str NameLoad Str BinOpMod Str NameLoad Call NameLoad NameLoad Str NameLoad keyword NameLoad AugAssignAdd NameStore Num For TupleStore NameStore NameStore Call NameLoad ListLoad Str Str Str ListComp Call AttributeLoad NameLoad attr BinOpMod Str NameLoad comprehension NameStore ListLoad Str Str Str body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str BinOpMod Str NameLoad Str BinOpMod Str NameLoad Call NameLoad NameLoad Str NameLoad keyword NameLoad AugAssignAdd NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore BinOpPow Num Num Assign NameStore Call NameLoad With Call NameLoad NameLoad NameStore body While Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword Str keyword Call NameLoad Call NameLoad NameLoad keyword Str keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad BinOpMult Call NameLoad SubscriptLoad Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr Index Num Num decorator_list Expr Call AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Str Call NameLoad Call NameLoad BinOpMult Call NameLoad SubscriptLoad NameLoad Index Str BinOpPow Num Num NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Str NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpDiv BinOpMult Call NameLoad Call NameLoad BinOpMod Str NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpDiv BinOpMult Call NameLoad Call NameLoad BinOpMod Str NameLoad Num Num If BoolOpOr CompareGtE NameLoad BinOpPow Num Num CompareEq NameLoad Num body Assign NameStore BinOpDiv BinOpMult Call NameLoad Call NameLoad BinOpMod Str NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpDiv Call NameLoad Call NameLoad BinOpMod Str NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Num Num Num Return SubscriptLoad NameLoad Index Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr Return IfExp Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call NameLoad Call NameLoad BinOpMod Str NameLoad handlers ExceptHandler body Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpMod Str NameLoad Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr If CompareEq NameLoad Str body Return Num orelse Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad Assign NameStore NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad body If BoolOpAnd Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str UnaryOpNot Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num BinOpMod Str NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call NameLoad Call AttributeLoad Str attr ListLoad NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad For NameStore Call NameLoad NameLoad body If BoolOpAnd Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str UnaryOpNot Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num BinOpMod Str NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call NameLoad Call AttributeLoad Str attr ListLoad NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore Dict Num Num Str Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad BinOpMult Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str orelse Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str If CompareNotEq Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body If CompareNotEq NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body If CompareNotEq Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr Str Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body Return Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body If Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num If Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num Return SubscriptLoad NameLoad Index Str orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return IfExp CompareIn Str NameLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad TryExcept body Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr Num body For NameStore Call NameLoad Num body TryExcept body Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call NameLoad Str attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad Assign NameStore IfExp CompareIs Call NameLoad NameLoad NameLoad CompareEq NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr Num body Raise Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp NameLoad Str Str For NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str BoolOpAnd CompareEq Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad SubscriptLoad Call AttributeLoad Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr attr Str Slice Num Num Assign NameStore Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr NameLoad BinOpMult ListLoad Num Num Assign NameStore ListComp BinOpSub NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore BinOpSub Num BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num Return NameLoad decorator_list FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body FunctionDef arguments args defaults body Return ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr attr Str decorator_list Assign TupleStore NameStore TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad TupleLoad Num Num Num Assign NameStore BinOpSub NameLoad NameLoad Return TupleLoad BinOpDiv BinOpSub NameLoad NameLoad NameLoad BinOpDiv BinOpSub NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr decorator_list Return Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad keyword Call NameLoad decorator_list
N/A contextlib closing hashlib sha1 os path uuid UUID N/A datetime N/A errno N/A operator N/A os N/A shutil N/A tarfile N/A time ovf.OvfFile OvfFile ovf.OvfReferencedFile OvfReferencedFile opennode.cli.actions oms opennode.cli.actions sysresources sysres opennode.cli.actions.network list_nameservers opennode.cli.actions.openvz_utils get_openvz_all_ctids opennode.cli.actions.storage get_pool_path opennode.cli.actions.utils SimpleConfigParser execute get_file_size_bytes opennode.cli.actions.utils calculate_hash CommandException TemplateException opennode.cli.actions.utils test_passwordless_ssh execute2 opennode.cli.actions.utils roll_data opennode.cli.actions.vm ovfutil opennode.cli.actions.vm.config_template openvz_template opennode.cli.config get_config opennode.cli.log get_logger _list_vms N/A N/A conn N/A N/A _get_running_vm_ids N/A N/A conn N/A N/A N/A N/A N/A N/A N/A conn getType OpenVZ N/A missing N/A execute vzlist -H > /dev/null 2>&1; if [  $? -eq 1 ]; then echo missing; fi N/A N/A N/A N/A N/A N/A N/A conn listDomainsID N/A _get_stopped_vm_ids N/A N/A conn N/A N/A N/A N/A N/A N/A conn getType OpenVZ N/A N/A N/A N/A N/A execute vzlist -H -S -o ctid split N/A N/A N/A N/A conn listDefinedDomains N/A N/A online N/A N/A str N/A UUID bytes N/A N/A vm UUID N/A vm N/A N/A N/A conn lookupByID i N/A i N/A _get_running_vm_ids conn N/A offline N/A N/A str N/A UUID bytes N/A N/A vm UUID N/A vm N/A N/A N/A conn lookupByName i N/A i N/A _get_stopped_vm_ids conn N/A N/A online offline N/A get_ovf_template_settings N/A N/A ovf_file N/A N/A N/A  Parses ovf file and creates a dictionary of settings  N/A settings N/A read_default_ovf_settings N/A ovf_settings N/A read_ovf_settings ovf_file N/A N/A N/A settings update ovf_settings N/A N/A settings N/A vm_id N/A _get_available_ct_id N/A N/A settings N/A bind_mounts N/A get_bmounts N/A settings N/A vm_id N/A N/A settings N/A ioprio 4 N/A settings N/A get_active_template_settings N/A N/A vm_name storage_pool N/A N/A N/A  Reads ovf settings of the specified VM  N/A ovf_fnm N/A N/A path join N/A get_pool_path storage_pool openvz unpacked N/A N/A get_template_name vm_name .ovf N/A N/A N/A path exists ovf_fnm N/A N/A ovf_file N/A OvfFile ovf_fnm N/A N/A get_ovf_template_settings ovf_file N/A N/A N/A read_default_ovf_settings N/A read_default_ovf_settings N/A N/A N/A N/A N/A 
    Reads default ovf configuration from file, returns a dictionary of
    settings.
     N/A N/A dict N/A N/A N/A get_config openvz getlist ovf-defaults N/A read_ovf_settings N/A N/A ovf_file N/A N/A N/A 
    Reads given ovf template configuration file, returns a dictionary
    of settings.
     N/A settings N/A N/A N/A settings N/A template_name N/A N/A N/A N/A os path splitext N/A N/A N/A os path basename N/A ovf_file path N/A 0 N/A vm_type N/A N/A ovfutil get_vm_type ovf_file N/A N/A vm_type openvz N/A N/A N/A RuntimeError Given template is not compatible with OpenVZ on OpenNode server N/A N/A settings N/A vm_type vm_type N/A memory_settings N/A N/A memory_min N/A N/A ovfutil get_ovf_min_memory_gb ovf_file N/A memory N/A N/A ovfutil get_ovf_normal_memory_gb ovf_file N/A memory_max N/A N/A ovfutil get_ovf_max_memory_gb ovf_file N/A N/A N/A settings update N/A dict N/A filter N/A N/A operator itemgetter 1 memory_settings N/A vcpu_settings N/A N/A vcpu_min N/A N/A ovfutil get_ovf_min_vcpu ovf_file N/A vcpu N/A N/A ovfutil get_ovf_normal_vcpu ovf_file N/A vcpu_max N/A N/A ovfutil get_ovf_max_vcpu ovf_file N/A N/A N/A settings update N/A dict N/A filter N/A N/A operator itemgetter 1 vcpu_settings N/A N/A settings N/A ostemplate N/A N/A ovfutil get_ovf_os_type ovf_file N/A settings N/A adjust_setting_to_systems_resources N/A N/A ovf_template_settings N/A N/A N/A 
    Adjusts maximum required resources to match available system resources.
    NB! Minimum bound is not adjusted.
     adjusted N/A N/A norm minvalue maxvalue valtype N/A N/A N/A N/A minvalue None N/A N/A minvalue 0 N/A N/A maxvalue None N/A N/A maxvalue N/A 10 30 N/A N/A min N/A max N/A valtype norm N/A valtype minvalue N/A valtype maxvalue N/A N/A st ovf_template_settings N/A N/A st N/A memory_max N/A min N/A N/A sysres get_ram_size_gb N/A float N/A N/A st get memory_max N/A 10 30 N/A N/A st N/A memory N/A adjusted N/A N/A st get memory N/A N/A st get memory_min N/A N/A st get memory_max float N/A N/A st N/A swap_max N/A str N/A min N/A N/A sysres get_swap_size_gb N/A float N/A N/A st get swap_max N/A 10 30 N/A N/A st N/A swap N/A adjusted N/A N/A st get swap N/A N/A st get swap_min N/A N/A st get swap_max float N/A N/A st N/A vcpu_max N/A str N/A min N/A N/A sysres get_cpu_count N/A int N/A N/A st get vcpu_max N/A 10 10 N/A N/A st N/A vcpu N/A adjusted N/A N/A st get vcpu N/A N/A st get vcpu_min N/A N/A st get vcpu_max int N/A N/A st N/A vcpulimit_max N/A min N/A N/A sysres get_cpu_usage_limit N/A int N/A N/A st get vcpulimit_max 100 N/A N/A st N/A vcpulimit N/A adjusted N/A N/A st get vcpulimit N/A N/A st get vcpulimit_min N/A N/A st get vcputlimit_max int N/A N/A st N/A disk_max N/A min N/A N/A sysres get_disc_space_gb N/A float N/A N/A st get disk_max N/A 10 30 N/A N/A st N/A disk N/A adjusted N/A N/A st get disk N/A N/A st get disk_min N/A N/A st get disk_max float N/A dns N/A list_nameservers N/A N/A N/A len dns 0 N/A N/A N/A st N/A nameserver N/A dns N/A 0 N/A errors N/A N/A N/A N/A float N/A st N/A memory_min N/A float N/A st N/A memory_max N/A N/A N/A N/A errors append N/A Minimum required memory %sGB exceeds total available memory %sGB N/A N/A st N/A memory_min N/A st N/A memory_max N/A N/A N/A int N/A st N/A vcpu_min N/A int N/A st N/A vcpu_max N/A N/A N/A N/A errors append N/A Minimum required number of vcpus %s exceeds available number %s. N/A N/A st N/A vcpu_min N/A st N/A vcpu_max N/A N/A N/A int N/A st N/A vcpulimit_min N/A int N/A st N/A vcpulimit_max N/A N/A N/A N/A errors append N/A Minimum required vcpu usage limit %s%% exceeds available %s%%. N/A N/A st N/A vcpulimit_min N/A st N/A vcpulimit_max N/A N/A N/A float N/A st N/A disk_min N/A float N/A st N/A disk_max N/A N/A N/A N/A errors append N/A Minimum required disk space %sGB exceeds available %sGB. N/A N/A st N/A disk_min N/A st N/A disk_max N/A errors N/A _get_available_ct_id N/A N/A N/A N/A N/A 
    Get next available IF for new OpenVZ CT

    @return: Next available ID for new OpenVZ CT
    @rtype: Integer
     N/A N/A N/A max 100 N/A max N/A N/A 0 N/A get_openvz_all_ctids 1 N/A _compute_diskspace_hard_limit N/A N/A soft_limit N/A N/A N/A N/A N/A soft_limit 10 N/A soft_limit 1.1 N/A soft_limit 1 N/A generate_ubc_config N/A N/A settings N/A N/A N/A  Generates UBC part of configuration file for VZ container  N/A config N/A get_config openvz N/A st settings N/A ubc_params N/A physpages_limit swappages_limit diskspace_soft diskspace_hard diskinodes_soft diskinodes_hard quotatime cpus cpulimit cpuunits N/A st N/A memory N/A st N/A swap N/A st N/A disk N/A _compute_diskspace_hard_limit N/A float N/A st N/A disk N/A N/A float N/A st N/A disk N/A int N/A N/A config getstring ubc-defaults DEFAULT_INODES N/A round N/A N/A _compute_diskspace_hard_limit N/A float N/A st N/A disk N/A int N/A N/A config getstring ubc-defaults DEFAULT_INODES N/A N/A config getstring ubc-defaults DEFAULT_QUOTATIME N/A st N/A vcpu N/A N/A int N/A st N/A vcpulimit N/A int N/A st N/A vcpu N/A N/A config getstring ubc-defaults DEFAULT_CPUUNITS N/A ubc_params N/A dict N/A N/A key N/A N/A N/A N/A float val is_integer N/A int N/A float val val N/A N/A key val N/A N/A ubc_params items N/A N/A ubc_params N/A time N/A N/A N/A N/A N/A datetime datetime today ctime N/A N/A openvz_template ubc_params N/A generate_nonubc_config N/A N/A conf_filename settings N/A N/A N/A  Generates Non-UBC part of  configuration file for VZ container  N/A parser N/A SimpleConfigParser N/A N/A N/A parser read conf_filename N/A config_dict N/A N/A parser items N/A include_params N/A VE_ROOT VE_PRIVATE OSTEMPLATE ORIGIN_SAMPLE N/A config_dict N/A dict N/A N/A k v N/A N/A k v N/A N/A config_dict iteritems N/A k include_params N/A config_str N/A N/A join N/A N/A %s=%s N/A k v N/A N/A k v N/A N/A config_dict iteritems N/A N/A N/A settings get uuid N/A N/A config_str N/A 

#UUID: %s N/A N/A settings get uuid N/A N/A N/A settings get bind_mounts N/A N/A config_str N/A 
ON_BMOUNT="%s" N/A N/A settings get bind_mounts N/A config_str N/A create_container N/A N/A ovf_settings N/A N/A N/A  Creates OpenVZ container  N/A N/A execute N/A vzctl create %s --ostemplate %s --config %s N/A N/A ovf_settings N/A vm_id N/A ovf_settings N/A template_name N/A ovf_settings N/A vm_id N/A N/A execute N/A sed -i 's/OSTEMPLATE="%s"/OSTEMPLATE="%s"/' %s N/A N/A ovf_settings N/A template_name N/A ovf_settings N/A ostemplate N/A /etc/vz/conf/%s.conf N/A ovf_settings N/A vm_id N/A N/A execute N/A chmod 755 /vz/private/%s N/A ovf_settings N/A vm_id N/A base_config N/A N/A N/A os path join /etc/vz/conf/ N/A ve-%s.conf-sample N/A ovf_settings N/A vm_id N/A N/A N/A os unlink base_config N/A setup_scripts N/A N/A vm_settings storage_pool N/A N/A N/A Setup action scripts for the CT N/A dest_dir N/A N/A path join N/A N/A N/A get_config getstring general storage-endpoint storage_pool openvz N/A unpacked_dir N/A N/A path join dest_dir unpacked N/A ct_scripts_fnm N/A N/A path join unpacked_dir N/A %s.scripts.tar.gz N/A vm_settings N/A template_name N/A dest_folder N/A /etc/vz/conf/%s N/A vm_settings N/A vm_id N/A N/A N/A N/A closing N/A N/A tarfile open ct_scripts_fnm r:gz tar N/A N/A f tar N/A N/A target_script N/A %s.%s N/A dest_folder N/A f name N/A N/A N/A shutil copyfileobj N/A N/A tar extractfile f N/A open target_script w N/A N/A N/A os chmod target_script 493 N/A N/A N/A N/A msg No action scripts in the template. N/A N/A N/A N/A get_logger warn msg N/A N/A generate_config N/A N/A ovf_settings N/A N/A N/A  Generates  ubc and non-ubc configuration  N/A base_conf N/A N/A N/A os path join /etc/vz/conf ve-vswap-256m.conf-sample N/A ubc_conf_str N/A generate_ubc_config ovf_settings N/A non_ubc_conf_str N/A generate_nonubc_config base_conf ovf_settings N/A openvz_ct_conf N/A %s
%s
 N/A ubc_conf_str non_ubc_conf_str N/A target_conf_fnm N/A N/A N/A os path join /etc/vz/conf/ N/A ve-%s.conf-sample N/A ovf_settings N/A vm_id N/A N/A open target_conf_fnm w conf_file N/A N/A N/A N/A conf_file write openvz_ct_conf N/A N/A execute N/A chmod 644 %s target_conf_fnm N/A deploy N/A N/A ovf_settings storage_pool N/A N/A N/A  Deploys OpenVZ container  N/A log N/A get_logger N/A N/A link_template storage_pool N/A ovf_settings N/A template_name N/A msg Generating configuration... N/A N/A N/A log info msg N/A N/A generate_config ovf_settings N/A msg Creating OpenVZ container... N/A N/A N/A log info msg N/A N/A create_container ovf_settings N/A msg Deploying... N/A N/A N/A log info msg N/A nameservers N/A N/A ovf_settings get nameservers None N/A N/A nameservers N/A N/A nameservers N/A N/A N/A ovf_settings get nameserver 8.8.8.8 N/A N/A N/A N/A type nameservers str N/A N/A len nameservers 7 N/A N/A nameservers N/A 8.8.8.8 N/A N/A execute N/A vzctl set %s %s --save N/A N/A ovf_settings N/A vm_id N/A N/A join N/A N/A --nameserver %s i N/A i nameservers N/A N/A execute N/A vzctl set %s --ipadd %s --save N/A N/A ovf_settings N/A vm_id N/A ovf_settings N/A ip_address N/A N/A execute N/A vzctl set %s --hostname %s --save N/A N/A ovf_settings N/A vm_id N/A ovf_settings N/A hostname N/A N/A N/A len N/A ovf_settings N/A passwd 0 N/A N/A N/A execute N/A vzctl set %s --userpasswd 'root:%s' --save N/A N/A ovf_settings N/A vm_id N/A ovf_settings N/A passwd N/A msg Setting up action scripts... N/A N/A N/A log info msg N/A N/A setup_scripts ovf_settings storage_pool N/A N/A N/A N/A ovf_settings get appliance_type oms N/A N/A N/A N/A oms configure_oms_vm N/A ovf_settings N/A vm_id N/A ovf_settings N/A hostname N/A N/A N/A N/A ovf_settings get startvm 0 1 N/A N/A N/A execute N/A vzctl start %s N/A ovf_settings N/A vm_id N/A N/A N/A N/A ovf_settings get onboot 0 1 N/A N/A N/A execute N/A vzctl set %s --onboot yes --save N/A ovf_settings N/A vm_id N/A N/A N/A execute N/A vzctl set %s --onboot no --save N/A ovf_settings N/A vm_id N/A N/A N/A ovf_settings get ioprio 4 N/A N/A N/A execute N/A vzctl set %s --ioprio %d --save N/A N/A ovf_settings N/A vm_id N/A ovf_settings N/A ioprio N/A msg N/A Template %s deployed successfully! N/A ovf_settings N/A vm_id N/A N/A N/A log info msg N/A query_openvz N/A N/A include_running fields N/A False ctid,hostname N/A N/A Run a query against OpenVZ N/A include_flag N/A N/A include_running -S -a N/A vzcontainers N/A N/A N/A execute N/A vzlist -H %s -o %s N/A include_flag fields split N/A result N/A N/A cont vzcontainers N/A N/A N/A N/A len N/A N/A cont strip 0 N/A N/A N/A N/A N/A result append N/A f N/A f N/A N/A N/A N/A cont strip split N/A N/A len f 0 N/A result N/A get_available_instances N/A N/A N/A N/A N/A Return deployed and stopped OpenVZ instances N/A resources N/A query_openvz False ctid,hostname N/A candidates N/A N/A r resources N/A N/A N/A cid hn r N/A N/A candidates N/A N/A int cid N/A %s (%s) N/A hn cid N/A candidates N/A get_all_instances N/A N/A N/A N/A N/A Return all OpenVZ instances and their parameters N/A resources N/A query_openvz False ctid,hostname,status N/A candidates N/A N/A r resources N/A N/A N/A candidates N/A N/A r N/A 0 N/A vm_id name status memory disk vcpu vm_type N/A r N/A 0 N/A r N/A 1 N/A r N/A 2 N/A N/A get_memory N/A r N/A 0 1024 N/A N/A get_diskspace N/A r N/A 0 1024 N/A get_vcpu N/A r N/A 0 openvz N/A candidates N/A get_template_name N/A N/A ctid N/A N/A N/A Return a name of the template used for creating specific container N/A N/A N/A N/A int ctid N/A N/A N/A ValueError N/A N/A N/A TemplateException N/A Incorrect format for a container id: %s ctid N/A N/A execute N/A vzlist %s -H -o ostemplate ctid N/A get_hostname N/A N/A ctid N/A N/A N/A Return a hostname of the container N/A N/A N/A N/A int ctid N/A N/A N/A ValueError N/A N/A N/A TemplateException N/A Incorrect format for a container id: %s ctid N/A N/A execute N/A vzlist %s -H -o hostname ctid N/A link_template N/A N/A storage_pool tmpl_name overwrite N/A True N/A N/A Setup symlinks from the OpenVZ template to the location expected by vzctl N/A config N/A get_config N/A N/A N/A N/A tmpl_name endswith .tar.gz N/A N/A tmpl_name N/A tmpl_name .tar.gz N/A source_file N/A N/A N/A os path join N/A get_pool_path storage_pool openvz unpacked tmpl_name N/A dest_file N/A N/A N/A os path join N/A N/A config getstring general openvz-templates tmpl_name N/A overwrite N/A N/A N/A N/A N/A N/A os unlink dest_file N/A N/A N/A OSError N/A exc N/A N/A N/A N/A exc errno N/A errno ENOENT N/A N/A N/A N/A N/A N/A N/A os path exists dest_file N/A N/A N/A N/A os symlink source_file dest_file N/A save_as_ovf N/A N/A vm_settings storage_pool N/A N/A N/A 
    Creates ovf template archive for the specified container.
    Steps:
        - archive container directory
        - generate ovf configuration file
        - pack ovf and container archive into tar.gz file
     N/A dest_dir N/A N/A path join N/A N/A N/A get_config getstring general storage-endpoint storage_pool openvz N/A unpacked_dir N/A N/A path join dest_dir unpacked N/A ct_archive_fnm N/A N/A path join unpacked_dir N/A %s.tar.gz N/A vm_settings N/A template_name N/A ct_source_dir N/A N/A path join /vz/private N/A vm_settings N/A vm_name N/A log N/A get_logger N/A msg N/A Archiving VM container catalog %s. This may take a while... ct_source_dir N/A N/A N/A log info msg N/A N/A closing N/A N/A tarfile open ct_archive_fnm w:gz tar N/A N/A f N/A N/A os listdir ct_source_dir N/A N/A N/A N/A tar add N/A N/A path join ct_source_dir f arcname f N/A msg Adding action scripts... N/A N/A N/A log info msg N/A ct_scripts_fnm N/A N/A path join unpacked_dir N/A %s.scripts.tar.gz N/A vm_settings N/A template_name N/A N/A closing N/A N/A tarfile open ct_scripts_fnm w:gz tar N/A N/A script_type N/A premount mount start stop umount postumount N/A N/A script_fnm N/A /etc/vz/conf/%s.%s N/A N/A vm_settings N/A vm_name script_type N/A N/A N/A N/A os path exists script_fnm N/A N/A N/A N/A tar add script_fnm arcname script_type N/A msg Generating ovf file... N/A N/A N/A log info msg N/A ovf N/A _generate_ovf_file vm_settings ct_archive_fnm N/A ovf_fnm N/A N/A path join unpacked_dir N/A %s.ovf N/A vm_settings N/A template_name N/A N/A open ovf_fnm w f N/A N/A N/A N/A ovf writeFile f pretty True encoding UTF-8 N/A msg Archiving... N/A N/A N/A log info msg N/A ovf_archive_fnm N/A N/A path join dest_dir N/A %s.ova N/A vm_settings N/A template_name N/A N/A closing N/A N/A tarfile open ovf_archive_fnm w tar N/A N/A N/A N/A tar add ct_archive_fnm arcname N/A N/A path basename ct_archive_fnm N/A N/A N/A tar add ovf_fnm arcname N/A N/A path basename ovf_fnm N/A N/A N/A tar add ct_scripts_fnm arcname N/A N/A path basename ct_scripts_fnm N/A N/A calculate_hash ovf_archive_fnm N/A N/A N/A log info N/A Done! Saved template at %s ovf_archive_fnm N/A _generate_ovf_file N/A N/A vm_settings ct_archive_fnm N/A N/A N/A ovf N/A OvfFile N/A N/A ovf files N/A N/A N/A N/A ovf createEnvelope N/A instanceId 0 N/A virtualSystem N/A N/A ovf createVirtualSystem ident N/A vm_settings N/A template_name info OpenVZ OpenNode template N/A N/A N/A ovf createOperatingSystem node virtualSystem ident operating_system info Operating system type deployed in a template description N/A N/A vm_settings get ostemplate linux N/A hardwareSection N/A N/A ovf createVirtualHardwareSection node virtualSystem ident virtual_hardware info Virtual hardware requirements for a virtual machine N/A N/A N/A ovf createSystem hardwareSection Virtual Hardware Family N/A str instanceId N/A VirtualSystemType openvz N/A instanceId 1 N/A N/A bound cpu N/A zip N/A normal min max N/A N/A N/A vm_settings get N/A vcpu%s pfx N/A pfx N/A _min _max N/A N/A cpu N/A N/A N/A N/A ovf addResourceItem hardwareSection N/A Caption Description ElementName InstanceID ResourceType VirtualQuantity N/A %s virtual CPU cpu Number of virtual CPUs N/A %s virtual CPU cpu N/A str instanceId 3 cpu bound bound N/A instanceId 1 N/A N/A bound memory N/A zip N/A normal min max N/A N/A N/A vm_settings get N/A memory%s pfx N/A pfx N/A _min _max N/A N/A memory N/A N/A N/A N/A ovf addResourceItem hardwareSection N/A AllocationUnits Caption Description ElementName InstanceID ResourceType VirtualQuantity GigaBytes N/A %s GB of memory memory Memory Size N/A %s GB of memory memory N/A str instanceId 4 memory bound bound N/A instanceId 1 get_checksum N/A N/A fnm N/A N/A N/A chunk_size N/A 1024 2 N/A sha N/A sha1 N/A N/A open fnm chkfile N/A N/A 1 N/A N/A data N/A N/A chkfile read chunk_size N/A N/A data N/A N/A N/A N/A N/A sha update data N/A N/A N/A sha hexdigest N/A N/A ref_file N/A OvfReferencedFile N/A N/A path dirname ct_archive_fnm N/A N/A path basename N/A %s.tar.gz N/A vm_settings N/A template_name file_id diskfile1 size N/A str N/A get_file_size_bytes ct_archive_fnm compression gz checksum N/A get_checksum ct_archive_fnm N/A N/A N/A ovf addReferencedFile ref_file N/A N/A N/A ovf createReferences get_ct_disk_usage_bytes N/A N/A ctid N/A N/A N/A N/A str N/A N/A int N/A N/A N/A N/A execute N/A du -s /vz/private/%s/ ctid split N/A 0 1024 N/A N/A N/A N/A ovf createDiskSection N/A N/A diskId capacity capacityAllocUnits populatedSize fileRef parentRef format vmdisk1 N/A str N/A round N/A N/A float N/A vm_settings N/A disk N/A 1024 3 None N/A get_ct_disk_usage_bytes N/A vm_settings N/A vm_name diskfile1 None tar.gz OpenVZ CT template disks N/A ovf N/A get_swap N/A N/A ctid N/A N/A N/A Swap memory in MB N/A N/A N/A N/A int N/A execute N/A vzlist %s -H -o swappages.l ctid 4 1024 N/A get_memory N/A N/A ctid N/A N/A N/A Max memory in MB N/A res N/A N/A N/A int N/A execute N/A vzlist %s -H -o privvmpages.l ctid 4 1024 N/A N/A N/A res N/A 2 31 N/A res 0 N/A N/A res N/A N/A N/A int N/A execute N/A vzlist %s -H -o physpages.l ctid 4 1024 N/A res N/A get_diskspace N/A N/A ctid N/A N/A N/A Max disk space in MB N/A N/A N/A float N/A execute N/A vzlist %s -H -o diskspace.s ctid 1024 N/A get_onboot N/A N/A ctid N/A N/A N/A Return onboot parameter of a specified CT N/A encoding N/A yes no - 1 0 0 N/A N/A encoding N/A N/A N/A N/A execute N/A vzlist %s -H -o onboot ctid strip N/A get_bootorder N/A N/A ctid N/A N/A N/A Return the boot order of the container or None, if it's not defined N/A order N/A N/A N/A execute N/A vzlist %s -H -o bootorder ctid strip N/A N/A N/A N/A order isdigit N/A int order N/A get_uptime N/A N/A ctid N/A N/A N/A Get uptime in seconds. 0 if container is not running. N/A N/A N/A N/A float N/A execute N/A vzctl exec %s "awk '{print \$1}' /proc/uptime" ctid N/A N/A N/A N/A 0 N/A get_cpulimit N/A N/A ctid N/A N/A N/A Max CPU usage limit N/A limit N/A int N/A execute N/A vzlist %s -H -o cpulimit ctid N/A cpus N/A int N/A execute N/A vzlist %s -H -o cpus ctid N/A N/A limit cpus N/A detect_os N/A N/A ctid N/A N/A N/A Detect OS name running in a VM N/A N/A execute N/A vzctl runscript %s `which detect-os` ctid N/A get_vcpu N/A N/A ctid N/A N/A N/A Return number of virtual CPUs as seen by the VM N/A N/A int N/A execute N/A vzlist %s -H -o cpus ctid N/A get_ioprio N/A N/A ctid N/A N/A N/A  Get VM I/O priority. If priority is entered manually
    or elsewhere, return approximate value based on value table N/A value N/A 0 1 2 3 4 5 6 7 0 0 0 0 4 7 7 7 N/A rv N/A N/A N/A execute N/A vzlist %s -H -o ioprio ctid strip N/A N/A rv - N/A N/A 4 N/A N/A N/A value N/A rv N/A _update_bmounts N/A N/A vm_id bind_mounts N/A N/A N/A conf_fnm N/A /etc/vz/conf/%s.conf vm_id N/A condition False N/A N/A file conf_fnm rt f N/A N/A data N/A N/A f read N/A data N/A N/A data split N/A line N/A enumerate data N/A N/A N/A N/A N/A N/A line N/A 1 count ON_BMOUNT N/A N/A N/A N/A N/A N/A line N/A 1 strip startswith # N/A N/A N/A data N/A N/A line N/A 0 N/A ON_BMOUNT="%s" bind_mounts N/A condition True N/A N/A condition N/A N/A N/A N/A data append N/A ON_BMOUNT="%s" bind_mounts N/A N/A file N/A N/A join N/A conf_fnm .new wt f N/A N/A N/A N/A f write N/A N/A join data N/A N/A N/A os rename conf_fnm N/A N/A join N/A conf_fnm .bak N/A N/A N/A os rename N/A N/A join N/A conf_fnm .new conf_fnm N/A set_owner N/A N/A conn uuid owner N/A N/A N/A Set ON_OWNER by uuid.
    @param uuid: uuid of the VM
    @param owner: string representing owner
     N/A ctid N/A get_ctid_by_uuid conn uuid N/A conf_fnm N/A /etc/vz/conf/%s.conf ctid N/A N/A file conf_fnm rt f N/A N/A data N/A N/A f read N/A data N/A N/A data split N/A owner_added False N/A line N/A enumerate data N/A N/A N/A N/A N/A N/A line N/A 1 count ON_OWNER N/A N/A N/A N/A N/A N/A line N/A 1 strip startswith # N/A N/A N/A data N/A N/A line N/A 0 N/A ON_OWNER="%s" owner N/A owner_added True N/A N/A owner_added N/A N/A N/A N/A data append N/A ON_OWNER="%s" owner N/A N/A file N/A N/A join N/A conf_fnm .new wt f N/A N/A N/A N/A f write N/A N/A join data N/A N/A N/A os rename conf_fnm N/A N/A join N/A conf_fnm .bak N/A N/A N/A os rename N/A N/A join N/A conf_fnm .new conf_fnm N/A update_vm N/A N/A conn settings N/A N/A N/A Perform modifications to the VM virtual hardware N/A vm_id N/A get_ctid_by_uuid conn N/A settings N/A uuid N/A N/A N/A settings get diskspace N/A N/A disk N/A float N/A settings N/A diskspace N/A N/A execute N/A vzctl set %s --diskspace %sG --save N/A vm_id disk N/A N/A N/A settings get vcpu N/A N/A N/A execute N/A vzctl set %s --cpus %s --save N/A vm_id N/A int N/A N/A settings get vcpu N/A N/A N/A settings get memory N/A N/A mem N/A float N/A N/A settings get memory N/A N/A execute N/A vzctl set %s --ram %sG --save N/A vm_id mem N/A N/A N/A settings get swap N/A N/A mem N/A float N/A N/A settings get swap N/A N/A execute N/A vzctl set %s --swap %sG --save N/A vm_id mem N/A N/A onboot settings N/A N/A vals N/A 0 1 no yes N/A N/A execute N/A vzctl set %s --onboot %s --save N/A vm_id N/A vals N/A N/A settings N/A onboot N/A N/A N/A settings get bootorder N/A N/A order N/A int N/A N/A settings get bootorder N/A N/A execute N/A vzctl set %s --bootorder %s --save N/A vm_id order N/A N/A N/A settings get vcpulimit N/A N/A vcpulimit N/A int N/A N/A settings get vcpulimit N/A N/A vcpu settings N/A N/A N/A execute N/A vzctl set %s --cpulimit %d --save N/A vm_id N/A N/A int vcpulimit N/A int N/A N/A settings get vcpu N/A N/A N/A execute N/A vzctl set %s --cpulimit %s --save N/A vm_id vcpulimit N/A N/A N/A N/A settings get bind_mounts None N/A N/A N/A _update_bmounts vm_id N/A settings N/A bind_mounts N/A N/A N/A N/A settings get hostname N/A N/A settings get name N/A N/A N/A execute N/A vzctl set %s --hostname %s --save N/A vm_id N/A settings N/A hostname N/A N/A N/A N/A settings get ioprio None N/A N/A ioprio N/A int N/A N/A settings get ioprio N/A N/A N/A N/A settings get ioprio_old None N/A N/A N/A ioprio N/A int N/A N/A settings get ioprio_old N/A N/A N/A execute N/A vzctl set %s --ioprio %s --save N/A vm_id ioprio N/A N/A N/A execute N/A vzctl set %s --ioprio %s --save N/A vm_id ioprio N/A N/A N/A N/A N/A settings get ctid None N/A N/A N/A settings get ctid_old None N/A N/A N/A N/A N/A settings get ctid N/A N/A settings get ctid_old N/A N/A N/A execute N/A vzmlocal %(ctid_old)s:%(ctid)s settings N/A get_uuid_by_ctid N/A N/A ctid N/A N/A N/A Return UUID of the VM N/A N/A N/A N/A N/A execute N/A grep \#UUID: /etc/vz/conf/%s.conf ctid split N/A 1 N/A get_ctid_by_uuid N/A N/A conn uuid N/A N/A N/A Return container ID with a given UUID N/A N/A N/A N/A N/A conn lookupByUUIDString uuid name N/A get_bmounts N/A N/A ctid N/A N/A N/A Return ON_BMOUNT for the VM with given CTID N/A parser N/A SimpleConfigParser N/A N/A N/A N/A N/A parser read N/A /etc/vz/conf/%s.conf ctid N/A N/A N/A IOError N/A N/A N/A conf N/A N/A parser items N/A N/A ON_BMOUNT conf N/A N/A N/A N/A N/A N/A N/A conf N/A ON_BMOUNT strip startswith " N/A N/A N/A conf N/A ON_BMOUNT N/A N/A conf N/A ON_BMOUNT N/A 1 N/A N/A N/A N/A N/A N/A conf N/A ON_BMOUNT strip endswith " N/A N/A N/A conf N/A ON_BMOUNT N/A N/A conf N/A ON_BMOUNT N/A -1 N/A N/A conf N/A ON_BMOUNT N/A N/A N/A get_owner N/A N/A conn uuid N/A N/A N/A Get VM owner by id
    @param uuid: uuid of the VM
     N/A ctid N/A get_ctid_by_uuid conn uuid N/A parser N/A SimpleConfigParser N/A N/A N/A parser read N/A /etc/vz/conf/%s.conf ctid N/A conf N/A N/A parser items N/A N/A N/A ON_OWNER conf N/A N/A N/A N/A N/A conf N/A ON_OWNER strip replace " N/A shutdown_vm N/A N/A conn uuid N/A N/A N/A Shutdown VM with a given UUID N/A ctid N/A get_ctid_by_uuid conn uuid N/A log N/A get_logger N/A N/A N/A msg N/A execute N/A vzctl stop %s ctid N/A N/A N/A log info msg N/A N/A N/A CommandException N/A e N/A N/A N/A N/A e code 13056 N/A N/A i N/A range 5 N/A N/A N/A N/A msg N/A execute N/A vzctl umount %s ctid N/A N/A N/A log info msg N/A N/A N/A CommandException N/A N/A N/A N/A time sleep 3 N/A get_vzcpucheck N/A N/A N/A N/A N/A Return CPU utilization of the node. (used, total) N/A N/A tuple N/A N/A int N/A N/A v strip N/A v N/A N/A N/A execute vzcpucheck|cut -f 2 -d ":" split N/A migrate N/A N/A conn uid target_host live print_ N/A False True N/A N/A Migrate given container to a target_host N/A N/A N/A test_passwordless_ssh target_host N/A N/A N/A CommandException Public key ssh connection with the target host could not be established N/A log N/A get_logger N/A live N/A N/A N/A type live str N/A live True live N/A ctid N/A get_ctid_by_uuid conn uid N/A N/A N/A N/A execute N/A ssh %s vzlist %s N/A target_host ctid N/A N/A CommandException N/A Target host '%s' has an already defined CTID '%s' N/A target_host ctid N/A N/A N/A CommandException N/A ce N/A N/A N/A N/A ce code 256 N/A N/A N/A msg N/A Initiating migration to %s... target_host N/A N/A N/A log info msg N/A live_trigger N/A live --online N/A line N/A execute2 N/A vzmigrate -v %s %s %s N/A live_trigger target_host ctid N/A N/A N/A N/A log info line N/A _get_remote_ctid_list N/A N/A remote_host N/A N/A N/A Get list of ctid's from remote HN
    @param remote_host: host to connect to (with username if provided)
     N/A data N/A execute N/A ssh %s "vzlist -a -H -o ctid" remote_host N/A data N/A i N/A i N/A N/A data split N/A N/A N/A len i 10 N/A N/A i startswith N/A N/A map int data N/A _get_remote_max_ctid N/A N/A remote_host N/A N/A N/A Get max ctid value from remote HN
    @param remote_host: host to connect to (with username if provided)
     N/A N/A max N/A _get_remote_ctid_list remote_host N/A change_ctid N/A N/A ctid new_ctid N/A N/A N/A N/A execute N/A vzmlocal %s:%s N/A ctid new_ctid N/A clone_vm N/A N/A ctid new_ctid N/A N/A N/A N/A execute N/A vzmlocal -C %s:%s N/A ctid new_ctid N/A vm_metrics N/A N/A conn vm N/A N/A cpu_usage N/A N/A N/A N/A N/A time_list_now N/A map int N/A N/A N/A N/A execute N/A vzctl exec %s "head -n 1 /proc/stat" N/A N/A vm ID split N/A 2 6 N/A time_list_was N/A roll_data N/A /tmp/openvz-vm-cpu-%s N/A N/A vm ID time_list_now N/A N/A 0 6 N/A deltas N/A N/A yi xi N/A N/A yi xi N/A zip time_list_now time_list_was N/A N/A N/A cpu_pct N/A 1 N/A N/A float N/A deltas N/A -1 N/A sum deltas N/A N/A N/A ZeroDivisionError N/A N/A cpu_pct 0 N/A cpu_pct N/A load N/A N/A N/A N/A N/A N/A float N/A execute N/A vzctl exec %s "cat /proc/loadavg | awk '{print \$1}'" N/A N/A vm ID N/A memory_usage N/A N/A N/A N/A N/A N/A float N/A execute N/A vzctl exec %s "free | tail -n 2 | head -n 1 | awk '{print \$3 / 1024}'" N/A N/A vm ID N/A network_usage N/A N/A N/A N/A get_netstats N/A N/A N/A N/A N/A N/A N/A int v N/A v N/A N/A N/A execute N/A vzctl exec %s "cat /proc/net/dev|grep venet0 | awk -F: '{print \$2}' | awk '{print \$1, \$9}'" N/A N/A vm ID split N/A N/A N/A t2 N/A rx2 tx2 N/A N/A N/A time time N/A get_netstats N/A N/A t1 rx1 tx1 N/A roll_data N/A /tmp/openvz-vm-network-%s N/A N/A vm ID N/A t2 rx2 tx2 N/A 0 0 0 N/A window N/A t2 t1 N/A N/A N/A N/A rx2 rx1 window N/A N/A tx2 tx1 window N/A diskspace_usage N/A N/A N/A N/A N/A N/A float N/A execute N/A vzctl exec %s "df -P | grep ' /\$' | head -n 1 | awk '{print \$3/1024}'" N/A N/A vm ID N/A N/A N/A dict cpu_usage N/A cpu_usage load N/A load memory_usage N/A memory_usage network_usage N/A max N/A network_usage diskspace_usage N/A diskspace_usage N/A