Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword Num If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str If NameLoad body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Assign NameStore Str Assign NameStore Str If CompareEq NameLoad Num body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad NameLoad Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num NameLoad NameLoad AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr NameLoad NameLoad NameLoad NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq NameLoad Num body Return NameLoad If BoolOpAnd CompareGt NameLoad Num NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Return NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A logging dbaas_credentials.models CredentialType dbaas_nfsaas.models HostAttr dbaas_cloudstack.models PlanAttr dbaas_cloudstack.models HostAttr CsHostAttr util check_ssh util exec_remote_command util get_credentials_for util build_context_script physical.models Instance workflow.steps.util.base BaseStep workflow.exceptions.error_codes DBAAS_0016 util full_stack N/A LOG N/A N/A logging getLogger __name__ InitDatabaseRedis N/A BaseStep N/A __unicode__ N/A N/A self N/A N/A N/A Initializing database... N/A do N/A N/A self workflow_dict N/A N/A N/A N/A N/A N/A N/A LOG info Getting cloudstack credentials... N/A statsd_credentials N/A get_credentials_for environment N/A workflow_dict N/A environment credential_type N/A CredentialType STATSD N/A N/A statsd_host statsd_port N/A N/A N/A statsd_credentials endpoint split : N/A N/A index host N/A enumerate N/A workflow_dict N/A hosts N/A N/A N/A N/A LOG info Getting vm credentials... N/A host_csattr N/A N/A N/A CsHostAttr objects get host host N/A N/A N/A LOG info Cheking host ssh... N/A host_ready N/A check_ssh server N/A host address username N/A host_csattr vm_user password N/A host_csattr vm_password wait 5 interval 10 N/A N/A host_ready N/A N/A N/A N/A LOG warn N/A Host %s is not ready... host N/A False N/A instances_redis N/A N/A N/A Instance objects filter hostname host instance_type N/A Instance REDIS N/A instances_sentinel N/A N/A N/A Instance objects filter hostname host instance_type N/A Instance REDIS_SENTINEL N/A instances_redis N/A N/A host_nfsattr N/A N/A N/A HostAttr objects get host host N/A nfsaas_path N/A host_nfsattr nfsaas_path N/A only_sentinel False N/A instance_redis_address N/A N/A instances_redis N/A 0 address N/A instance_redis_port N/A N/A instances_redis N/A 0 port N/A N/A nfsaas_path N/A only_sentinel True N/A instance_redis_address N/A instance_redis_port N/A instances_sentinel N/A N/A instance_sentinel_address N/A N/A instances_sentinel N/A 0 address N/A instance_sentinel_port N/A N/A instances_sentinel N/A 0 port N/A N/A instance_sentinel_address N/A instance_sentinel_port N/A N/A index 0 N/A N/A master_host instance_redis_address N/A master_port instance_redis_port N/A contextdict N/A EXPORTPATH DATABASENAME DBPASSWORD HOSTADDRESS PORT ENGINE HOST STATSD_HOST STATSD_PORT IS_HA SENTINELMASTER SENTINELMASTERPORT SENTINELADDRESS SENTINELPORT MASTERNAME ONLY_SENTINEL nfsaas_path N/A workflow_dict N/A name N/A N/A workflow_dict N/A databaseinfra password instance_redis_address instance_redis_port redis N/A N/A N/A N/A host hostname split . N/A 0 statsd_host statsd_port N/A N/A N/A workflow_dict N/A databaseinfra plan is_ha master_host master_port instance_sentinel_address instance_sentinel_port N/A N/A workflow_dict N/A databaseinfra name only_sentinel N/A N/A N/A LOG info contextdict N/A planattr N/A N/A N/A PlanAttr objects get plan N/A workflow_dict N/A plan N/A scripts N/A N/A planattr initialization_script N/A planattr configuration_script N/A planattr start_database_script N/A planattr start_replication_script N/A script scripts N/A N/A N/A N/A LOG info N/A Executing script on %s host N/A script N/A build_context_script contextdict script N/A return_code N/A exec_remote_command server N/A host address username N/A host_csattr vm_user password N/A host_csattr vm_password command script N/A N/A return_code 0 N/A N/A False N/A N/A N/A index 0 instances_redis N/A N/A client N/A N/A N/A N/A N/A N/A instances_redis N/A 0 databaseinfra get_driver get_client N/A instances_redis N/A 0 N/A N/A N/A client slaveof master_host master_port N/A True N/A N/A N/A Exception N/A N/A traceback N/A full_stack N/A N/A N/A N/A N/A workflow_dict N/A exceptions N/A error_codes append DBAAS_0016 N/A N/A N/A N/A N/A workflow_dict N/A exceptions N/A traceback append traceback N/A False N/A undo N/A N/A self workflow_dict N/A N/A N/A N/A N/A N/A N/A LOG info Remove all database files N/A host N/A workflow_dict N/A hosts N/A N/A N/A N/A LOG info N/A Removing database files on host %s host N/A host_csattr N/A N/A N/A CsHostAttr objects get host host N/A N/A exec_remote_command server N/A host address username N/A host_csattr vm_user password N/A host_csattr vm_password command /opt/dbaas/scripts/dbaas_deletedatabasefiles.sh N/A True N/A N/A N/A Exception N/A N/A traceback N/A full_stack N/A N/A N/A N/A N/A workflow_dict N/A exceptions N/A error_codes append DBAAS_0016 N/A N/A N/A N/A N/A workflow_dict N/A exceptions N/A traceback append traceback N/A False N/A N/A