Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse If Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Return TupleLoad Num Str orelse Return TupleLoad Num Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return TupleLoad Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num If CompareNotEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Num BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr While BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If BoolOpOr CompareEq NameLoad Str BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Num CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str body Assign NameStore NameLoad Break Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotEq NameLoad Num body Return TupleLoad Num BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Return TupleLoad Num Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Return TupleLoad Num BinOpMod Str Call NameLoad NameLoad If CompareNotEq NameLoad Num body Return TupleLoad Num BinOpMod Str NameLoad Return TupleLoad Num Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A 
JSON agent update handling plugin
 N/A os N/A shutil N/A subprocess N/A tarfile N/A urllib N/A commands N/A TMP_PATH /var/run N/A DEST_PATH /usr/share/nova-agent N/A DEST_FILE /var/run/nova-agent.tar N/A INIT_SCRIPTS N/A /etc/init.d/nova-agent /etc/rc.d/nova-agent /etc/nova-agent.init N/A N/A N/A hashlib N/A N/A N/A ImportError N/A N/A md5 hashlib N/A object N/A N/A Fake hashlib module as a class md5 N/A N/A N/A N/A N/A N/A N/A md5 new N/A staticmethod N/A AgentUpdateError N/A Exception N/A __init__ N/A N/A self arg N/A N/A N/A N/A self arg arg N/A __str__ N/A N/A self N/A N/A N/A N/A self arg N/A N/A __repr__ __str__ N/A UpdateCommand N/A N/A commands CommandBase N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self tmp_path N/A N/A kwargs get tmpdir TMP_PATH N/A _get_to_local_file N/A N/A self url md5sum N/A N/A N/A N/A N/A filename N/A url N/A N/A N/A N/A url rindex / 1 N/A ext_pos N/A N/A filename index . N/A local_filename N/A %s/%s-%d%s N/A N/A self tmp_path N/A filename N/A ext_pos N/A N/A os getpid N/A filename N/A ext_pos N/A N/A N/A ValueError N/A N/A N/A AgentUpdateError Invalid URL N/A N/A N/A N/A N/A urllib urlretrieve url local_filename N/A N/A N/A Exception N/A e N/A N/A N/A AgentUpdateError N/A str e N/A N/A N/A f N/A file local_filename rb N/A N/A N/A N/A N/A N/A os unlink local_filename N/A N/A AgentUpdateError Couldn't open local file N/A m N/A N/A hashlib md5 N/A True N/A N/A file_data N/A N/A f read 8096 N/A N/A file_data N/A N/A N/A N/A N/A m update file_data N/A N/A N/A f close N/A digest N/A N/A m hexdigest N/A N/A digest md5sum N/A N/A N/A N/A os unlink local_filename N/A N/A AgentUpdateError N/A MD5 sums do not match (%s != %s) N/A md5sum digest N/A local_filename N/A update_cmd N/A N/A self data N/A N/A N/A N/A isinstance data basestring N/A N/A N/A url md5sum N/A N/A data split , 1 N/A N/A N/A isinstance data dict N/A N/A N/A N/A url N/A data N/A url N/A md5sum N/A data N/A md5sum N/A N/A N/A KeyError N/A N/A N/A 500 Missing URL or MD5 sum in dictionary arguments N/A N/A N/A 500 Invalid arguments N/A N/A N/A local_filename N/A N/A self _get_to_local_file url md5sum N/A N/A N/A AgentUpdateError N/A e N/A N/A N/A 500 N/A str e N/A ext N/A local_filename N/A N/A N/A N/A local_filename rindex . 1 N/A N/A ext .tar N/A N/A dest_filename N/A %s.%s N/A DEST_FILE ext N/A N/A dest_filename %s N/A N/A N/A t N/A N/A tarfile open local_filename r:* N/A N/A N/A N/A tarfile TarError N/A e N/A N/A N/A N/A os unlink local_filename N/A N/A 500 N/A %s: %s N/A local_filename N/A str e N/A found_installer None N/A tarinfo N/A N/A t getmembers N/A N/A name N/A tarinfo name N/A N/A N/A N/A name startswith ../ N/A N/A name startswith ./ N/A N/A name startswith / N/A N/A name N/A name N/A 1 N/A N/A N/A name installer.sh N/A N/A N/A N/A name count / 1 N/A N/A N/A N/A name split / N/A 1 installer.sh N/A N/A found_installer name N/A N/A pipe N/A subprocess PIPE N/A found_installer N/A N/A dest_path N/A %s.%d N/A DEST_PATH N/A N/A os getpid N/A N/A N/A N/A N/A t extractall dest_path N/A N/A N/A t close N/A N/A N/A N/A tarfile TarError N/A e N/A N/A N/A N/A os unlink local_filename N/A N/A 500 N/A str e N/A N/A N/A os unlink local_filename N/A p N/A N/A subprocess Popen N/A N/A %s/%s N/A dest_path found_installer stdin pipe stdout pipe stderr pipe env N/A N/A N/A N/A p communicate None N/A retcode N/A p returncode N/A N/A N/A shutil rmtree dest_path ignore_errors True N/A N/A retcode 0 N/A N/A N/A 500 N/A Agent installer script failed: %d retcode N/A N/A N/A N/A t close N/A N/A N/A shutil move local_filename dest_filename N/A init_script None N/A script INIT_SCRIPTS N/A N/A N/A N/A N/A os path exists script N/A N/A init_script script N/A N/A N/A init_script N/A N/A N/A 404 No init script found to restart N/A N/A N/A p N/A N/A subprocess Popen N/A sh init_script restart stdin pipe stdout pipe stderr pipe env N/A N/A N/A N/A p communicate None N/A retcode N/A p returncode N/A N/A N/A OSError N/A e N/A N/A N/A 500 N/A Couldn't restart the agent: %s N/A str e N/A N/A retcode 0 N/A N/A N/A 500 N/A Couldn't restart the agent: %d retcode N/A N/A 0 N/A N/A N/A commands command_add agentupdate N/A