Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num 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 AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num keyword Lambda arguments args defaults Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num keyword Lambda arguments args defaults Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num keyword Lambda arguments args defaults Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num keyword Lambda arguments args defaults Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad Num Str Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num NameLoad TupleLoad Str Num Str For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str For NameStore ListLoad Str Str Str Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad Num NameLoad Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad For NameStore ListLoad Num Num Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad Num Str NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Str Num Num Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Str Num Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Str Num Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Str Num Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num TupleLoad Str Num Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call NameLoad TupleLoad Num Num NameLoad NameLoad Expr Call NameLoad TupleLoad Num Num Num NameLoad Expr Call NameLoad TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad TupleLoad Num Num Num NameLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Script for testing ganeti.masterd.instance N/A os N/A sys N/A unittest ganeti constants ganeti errors ganeti utils ganeti masterd ganeti.masterd.instance ImportExportTimeouts _DiskImportExportBase ComputeRemoteExportHandshake CheckRemoteExportHandshake ComputeRemoteImportDiskInfo CheckRemoteExportDiskInfo FormatProgress N/A testutils TestMisc N/A N/A unittest TestCase N/A testTimeouts N/A N/A self N/A N/A N/A tmo N/A ImportExportTimeouts 0 N/A N/A N/A self assertEqual N/A tmo connect 0 N/A N/A N/A self assertEqual N/A tmo listen N/A ImportExportTimeouts DEFAULT_LISTEN_TIMEOUT N/A N/A N/A self assertEqual N/A tmo ready N/A ImportExportTimeouts DEFAULT_READY_TIMEOUT N/A N/A N/A self assertEqual N/A tmo error N/A ImportExportTimeouts DEFAULT_ERROR_TIMEOUT N/A N/A N/A self assertEqual N/A tmo progress N/A ImportExportTimeouts DEFAULT_PROGRESS_INTERVAL N/A tmo N/A ImportExportTimeouts 999 N/A N/A N/A self assertEqual N/A tmo connect 999 N/A tmo N/A ImportExportTimeouts 1 listen 2 error 3 ready 4 progress 5 N/A N/A N/A self assertEqual N/A tmo connect 1 N/A N/A N/A self assertEqual N/A tmo listen 2 N/A N/A N/A self assertEqual N/A tmo error 3 N/A N/A N/A self assertEqual N/A tmo ready 4 N/A N/A N/A self assertEqual N/A tmo progress 5 N/A testTimeoutExpired N/A N/A self N/A N/A N/A N/A N/A self assert_ N/A N/A utils TimeoutExpired 100 300 _time_fn N/A N/A N/A N/A 500 N/A N/A N/A self assertFalse N/A N/A utils TimeoutExpired 100 300 _time_fn N/A N/A N/A N/A 0 N/A N/A N/A self assertFalse N/A N/A utils TimeoutExpired 100 300 _time_fn N/A N/A N/A N/A 100 N/A N/A N/A self assertFalse N/A N/A utils TimeoutExpired 100 300 _time_fn N/A N/A N/A N/A 400 N/A testDiskImportExportBaseDirect N/A N/A self N/A N/A N/A N/A N/A self assertRaises AssertionError _DiskImportExportBase None None None None None None None N/A N/A TestRieHandshake N/A N/A unittest TestCase N/A test N/A N/A self N/A N/A N/A cds cd-secret N/A hs N/A ComputeRemoteExportHandshake cds N/A N/A N/A self assertEqual N/A len hs 3 N/A N/A N/A self assertEqual N/A hs N/A 0 N/A constants RIE_VERSION N/A N/A N/A self assertEqual N/A CheckRemoteExportHandshake cds hs None N/A testCheckErrors N/A N/A self N/A N/A N/A N/A N/A self assert_ N/A CheckRemoteExportHandshake None None N/A N/A N/A self assert_ N/A CheckRemoteExportHandshake N/A N/A N/A self assert_ N/A CheckRemoteExportHandshake N/A xyz foo N/A testCheckWrongHash N/A N/A self N/A N/A N/A cds cd-secret999 N/A N/A N/A self assert_ N/A CheckRemoteExportHandshake cds N/A 0 fakehash xyz N/A testCheckWrongVersion N/A N/A self N/A N/A N/A version 14887 N/A N/A N/A self assertNotEqual version N/A constants RIE_VERSION N/A cds c28ac99 N/A salt a19cf8cc06 N/A msg N/A %s:%s N/A version N/A constants RIE_HANDSHAKE N/A hs N/A version N/A N/A utils Sha1Hmac cds msg salt salt salt N/A N/A N/A self assert_ N/A CheckRemoteExportHandshake cds hs N/A N/A TestRieDiskInfo N/A N/A unittest TestCase N/A test N/A N/A self N/A N/A N/A cds bbf46ea9a N/A salt ee5ad9 N/A di N/A ComputeRemoteImportDiskInfo cds salt 0 node1 1234 mag111 N/A N/A N/A self assertEqual N/A CheckRemoteExportDiskInfo cds 0 di N/A node1 1234 mag111 N/A i N/A range 1 100 N/A N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds i di N/A testInvalidHostPort N/A N/A self N/A N/A N/A cds 3ZoJY8KtGJ N/A salt drK5oYiHWD N/A host N/A , ... Hello World ` ! # \ N/A N/A di N/A ComputeRemoteImportDiskInfo cds salt 0 host 1234 magic N/A N/A N/A self assertRaises N/A errors OpPrereqError CheckRemoteExportDiskInfo cds 0 di N/A port N/A -1 792825908 HelloWorld! `# \" _?_ N/A N/A di N/A ComputeRemoteImportDiskInfo cds salt 0 localhost port magic N/A N/A N/A self assertRaises N/A errors OpPrereqError CheckRemoteExportDiskInfo cds 0 di N/A testCheckErrors N/A N/A self N/A N/A N/A cds 0776450535a N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A 1 2 3 4 5 N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A 1234 magic N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A host 0 magic N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A host 1234 N/A N/A N/A self assertRaises N/A errors GenericError CheckRemoteExportDiskInfo cds 0 N/A nodeX 123 magic fakehash xyz N/A N/A TestFormatProgress N/A N/A unittest TestCase N/A test N/A N/A self N/A N/A N/A N/A FormatProgress N/A 0 0 None None N/A N/A FormatProgress N/A 100 3.3 30 None N/A N/A FormatProgress N/A 100 3.3 30 900 N/A N/A N/A self assertEqual N/A FormatProgress N/A 1500 12 30 None 1.5G, 12.0 MiB/s, 30% N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A testutils GanetiTestProgram