Module TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad If CompareNotEq NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Return IfExp CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad keyword TupleLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str SubscriptLoad NameLoad Index Str body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Str attr Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad Return Call AttributeLoad Str attr Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpAdd Str Call NameLoad BinOpAdd NameLoad Num SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index BinOpAdd Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str Num attr Str Index Num attr Str Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num TryExcept body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr attr orelse Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str For NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore BoolOpOr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str For NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore BoolOpOr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A N/A N/A sshtunnel SSHTunnelForwarder N/A N/A N/A ImportError N/A sshtunnel.sshtunnel SSHTunnelForwarder cm_api.api_client ApiResource ApiException cm_api.endpoints.services ApiService ApiServiceSetupInfo N/A paramiko N/A json N/A yaml N/A requests N/A subprocess N/A zipfile N/A shutil N/A os N/A logger N/A base64 CdhConfExtractor N/A object N/A __init__ N/A N/A self config_filename N/A None N/A N/A N/A self _logger N/A N/A logger get_info_logger __name__ N/A N/A self config_filename N/A config_filename config_filename fetcher_config.yml N/A config N/A N/A self _load_config_yaml N/A self config_filename N/A N/A self _hostname N/A N/A N/A config N/A machines N/A cdh-launcher N/A hostname N/A N/A self _hostport N/A N/A N/A config N/A machines N/A cdh-launcher N/A hostport N/A N/A self _username N/A N/A N/A config N/A machines N/A cdh-launcher N/A username N/A N/A self _key_filename N/A N/A N/A config N/A machines N/A cdh-launcher N/A key_filename N/A N/A self _key N/A N/A N/A os path expanduser N/A self _key_filename N/A N/A self _key_password N/A N/A N/A config N/A machines N/A cdh-launcher N/A key_password N/A N/A self _is_openstack N/A config N/A openstack_env N/A N/A self _is_kerberos N/A config N/A kerberos_used N/A N/A self _cdh_manager_ip N/A N/A N/A config N/A machines N/A cdh-manager N/A ip N/A N/A self _cdh_manager_user N/A N/A N/A config N/A machines N/A cdh-manager N/A user N/A N/A self _cdh_manager_sshtunnel_required N/A N/A N/A config N/A machines N/A cdh-manager N/A sshtunnel_required N/A N/A self _cdh_manager_password N/A N/A N/A config N/A machines N/A cdh-manager N/A password N/A __enter__ N/A N/A self N/A N/A N/A extractor self N/A N/A N/A N/A self _cdh_manager_sshtunnel_required N/A N/A N/A N/A N/A self _logger info Creating tunnel to CDH-Manager. N/A N/A N/A extractor create_tunnel_to_cdh_manager N/A N/A N/A extractor start_cdh_manager_tunneling N/A N/A N/A N/A self _logger info Tunnel to CDH-Manager has been created. N/A N/A N/A N/A N/A self _logger info Connection to CDH-Manager host without ssh tunnel. N/A N/A self _local_bind_address N/A N/A self extract_cdh_manager_host N/A N/A self _local_bind_port 7180 N/A extractor N/A N/A N/A Exception N/A exc N/A N/A N/A N/A N/A self _logger error Cannot creating tunnel to CDH-Manager machine. N/A exc N/A __exit__ N/A N/A self exc_type exc_val exc_tb N/A N/A N/A N/A N/A N/A self _cdh_manager_sshtunnel_required N/A N/A N/A N/A self stop_cdh_manager_tunneling N/A N/A N/A N/A self _logger info Tunelling to CDH-Manager stopped. N/A N/A N/A Exception N/A exc N/A N/A N/A N/A N/A self _logger error Cannot close tunnel to CDH-Manager machine. N/A exc N/A create_ssh_connection N/A N/A self hostname username key_filename key_password N/A N/A N/A N/A N/A N/A N/A N/A self _logger info N/A N/A Creating connection to remote host {0}. format hostname N/A N/A self ssh_connection N/A N/A paramiko SSHClient N/A N/A N/A N/A self ssh_connection set_missing_host_key_policy N/A N/A paramiko AutoAddPolicy N/A N/A N/A N/A self ssh_connection connect hostname username username key_filename key_filename password key_password N/A N/A N/A N/A self _logger info N/A N/A Connection to host {0} established. format hostname N/A N/A N/A Exception N/A exc N/A N/A N/A N/A N/A self _logger error N/A N/A Cannot creating connection to host {0} machine. Check your settings in fetcher_config.yml file. format hostname N/A exc N/A close_ssh_connection N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ssh_connection close N/A N/A N/A N/A self _logger info Connection to remote host closed. N/A N/A N/A Exception N/A exc N/A N/A N/A N/A N/A self _logger error Cannot close connection to the remote host. N/A exc N/A ssh_call_command N/A N/A self command subcommands N/A None N/A N/A N/A N/A N/A self _logger info N/A N/A Calling remote command: "{0}" with subcommands "{1}" format command subcommands N/A N/A ssh_in ssh_out ssh_err N/A N/A N/A self ssh_connection exec_command command get_pty True N/A N/A subcommands None N/A N/A subcommand subcommands N/A N/A N/A N/A ssh_in write N/A subcommand N/A N/A N/A ssh_in flush N/A N/A N/A ssh_out None N/A N/A ssh_out read N/A N/A ssh_err read N/A extract_cdh_manager_host N/A N/A self N/A N/A N/A N/A N/A N/A self _logger info Extracting CDH-Manager address. N/A N/A N/A self _cdh_manager_ip None N/A N/A N/A N/A self create_ssh_connection N/A self _hostname N/A self _username N/A self _key_filename N/A self _key_password N/A N/A self _is_openstack N/A N/A ansible_ini N/A N/A self ssh_call_command cat ansible-cdh/platform-ansible/inventory/cdh N/A N/A ansible_ini N/A N/A self ssh_call_command cat ansible-cdh/inventory/cdh N/A N/A self _cdh_manager_ip N/A N/A self _get_host_ip cdh-manager ansible_ini N/A N/A N/A self close_ssh_connection N/A N/A N/A N/A self _logger info N/A N/A CDH-Manager adress extracted: {} format N/A self _cdh_manager_ip N/A N/A self _cdh_manager_ip N/A create_tunnel_to_cdh_manager N/A N/A self local_bind_address local_bind_port remote_bind_port N/A localhost 7180 7180 N/A N/A N/A self _local_bind_address local_bind_address N/A N/A self _local_bind_port local_bind_port N/A N/A self cdh_manager_tunnel N/A SSHTunnelForwarder N/A N/A self _hostname N/A self _hostport ssh_username N/A self _username local_bind_address N/A local_bind_address local_bind_port remote_bind_address N/A N/A N/A self extract_cdh_manager_host remote_bind_port ssh_private_key_password N/A self _key_password ssh_private_key N/A self _key N/A start_cdh_manager_tunneling N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self cdh_manager_tunnel start N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _logger error N/A Cannot start tunnel:  N/A e message N/A stop_cdh_manager_tunneling N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self cdh_manager_tunnel stop N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _logger error N/A Cannot stop tunnel:  N/A e message N/A extract_cdh_manager_details N/A N/A self settings N/A N/A N/A host N/A settings N/A hosts N/A N/A N/A cdh-manager N/A host N/A hostname N/A N/A host N/A extract_nodes_info N/A N/A self name settings N/A N/A N/A nodes N/A N/A host N/A settings N/A hosts N/A N/A N/A name N/A host N/A hostname N/A N/A N/A N/A nodes append host N/A nodes N/A extract_service_namenode N/A N/A self service_name role_name settings N/A N/A N/A hdfs_service N/A N/A self _find_item_by_attr_value service_name name N/A N/A N/A settings N/A clusters N/A 0 N/A services N/A hdfs_namenode N/A N/A self _find_item_by_attr_value role_name name N/A hdfs_service N/A roles N/A host_id N/A N/A hdfs_namenode N/A hostRef N/A hostId N/A N/A N/A N/A self _find_item_by_attr_value host_id hostId N/A settings N/A hosts N/A hostname N/A get_client_config_for_service N/A N/A self service_name N/A N/A N/A result N/A N/A requests get N/A N/A http://{0}:{1}/api/v10/clusters/CDH-cluster/services/{2}/clientConfig format N/A self _local_bind_address N/A self _local_bind_port service_name N/A N/A N/A base64 standard_b64encode N/A result content N/A generate_keytab N/A N/A self principal_name N/A N/A N/A N/A N/A N/A self _logger info N/A N/A Generating keytab for {} principal. format principal_name N/A N/A N/A self create_ssh_connection N/A self _hostname N/A self _username N/A self _key_filename N/A self _key_password N/A sftp N/A N/A N/A self ssh_connection open_sftp N/A N/A N/A sftp put utils/generate_keytab_script.sh /tmp/generate_keytab_script.sh N/A N/A N/A self ssh_call_command N/A N/A scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/generate_keytab_script.sh {0}:/tmp/ format N/A self _cdh_manager_ip N/A N/A N/A self ssh_call_command N/A N/A ssh -t {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "chmod 700 /tmp/generate_keytab_script.sh" format N/A self _cdh_manager_ip N/A keytab_hash N/A N/A self ssh_call_command N/A N/A ssh -t {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "/tmp/generate_keytab_script.sh {1}" format N/A self _cdh_manager_ip principal_name N/A N/A N/A self close_ssh_connection N/A lines N/A N/A keytab_hash splitlines N/A N/A N/A N/A self _logger info N/A N/A Keytab for {} principal has been generated. format principal_name N/A N/A N/A "{}" format N/A N/A join N/A lines N/A 2 -2 N/A generate_base64_for_file N/A N/A self file_path hostname N/A N/A N/A N/A N/A N/A self _logger info N/A N/A Generating base64 for {} file. format file_path N/A N/A N/A self create_ssh_connection N/A self _hostname N/A self _username N/A self _key_filename N/A self _key_password N/A base64_file_hash N/A N/A self ssh_call_command N/A N/A ssh -t {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "base64 {1}" format hostname file_path N/A N/A N/A self close_ssh_connection N/A lines N/A N/A base64_file_hash splitlines N/A N/A N/A N/A self _logger info N/A N/A Base64 hash for {0} file on {1} machine has been generated. format file_path hostname N/A N/A N/A "{}" format N/A N/A join N/A lines N/A 2 -2 N/A get_all_deployments_conf N/A N/A self N/A N/A N/A result N/A N/A deployments_settings N/A N/A json loads N/A N/A N/A requests get N/A N/A N/A N/A http:// N/A self _local_bind_address : N/A str N/A self _local_bind_port /api/v10/cm/deployment auth N/A N/A self _cdh_manager_user N/A self _cdh_manager_password content N/A N/A result N/A cloudera_manager_internal_host N/A N/A N/A self extract_cdh_manager_details deployments_settings N/A hostname N/A N/A self _is_kerberos N/A N/A N/A result N/A kerberos_host N/A result N/A cloudera_manager_internal_host N/A N/A result N/A hdfs_keytab_value N/A N/A self generate_keytab hdfs N/A N/A result N/A auth_gateway_keytab_value N/A N/A self generate_keytab authgateway/sys N/A N/A result N/A hgm_keytab_value N/A N/A self generate_keytab hgm/sys N/A N/A result N/A vcap_keytab_value N/A N/A self generate_keytab vcap N/A N/A result N/A krb5_base64 N/A N/A self generate_base64_for_file /etc/krb5.conf N/A self _cdh_manager_ip N/A N/A result N/A kerberos_cacert N/A N/A self generate_base64_for_file /var/krb5kdc/cacert.pem N/A self _cdh_manager_ip N/A helper N/A CdhApiHelper N/A ApiResource N/A self _local_bind_address username N/A self _cdh_manager_user password N/A self _cdh_manager_password version 9 N/A hgm_service N/A N/A helper get_service_from_cdh HADOOPGROUPSMAPPING N/A N/A result N/A hgm_adress N/A N/A N/A http:// N/A N/A helper get_host hgm_service HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER : N/A N/A helper get_entry_from_group hgm_service rest_port HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A N/A result N/A hgm_password N/A N/A helper get_entry_from_group hgm_service basic_auth_pass HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A N/A result N/A hgm_username N/A N/A helper get_entry_from_group hgm_service basic_auth_user HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A sentry_service N/A N/A helper get_service_from_cdh SENTRY N/A N/A result N/A sentry_port N/A N/A helper get_entry sentry_service sentry_service_server_rpc_port N/A N/A result N/A sentry_address N/A N/A helper get_host sentry_service N/A N/A result N/A sentry_keytab_value N/A N/A self generate_keytab hive/sys N/A N/A result N/A auth_gateway_profile cloud,zookeeper-auth-gateway,hdfs-auth-gateway,kerberos-hgm-auth-gateway,sentry-auth-gateway N/A N/A N/A result N/A sentry_port '' N/A N/A result N/A sentry_address '' N/A N/A result N/A sentry_keytab_value '' N/A N/A result N/A hdfs_keytab_value '' N/A N/A result N/A auth_gateway_keytab_value '' N/A N/A result N/A vcap_keytab_value "" N/A N/A result N/A hgm_keytab_value "" N/A N/A result N/A krb5_base64 "" N/A N/A result N/A kerberos_cacert "" N/A N/A result N/A auth_gateway_profile cloud,zookeeper-auth-gateway,hdfs-auth-gateway,https-hgm-auth-gateway N/A helper N/A CdhApiHelper N/A ApiResource N/A self _local_bind_address username N/A self _cdh_manager_user password N/A self _cdh_manager_password version 9 N/A hgm_service N/A N/A helper get_service_from_cdh HADOOPGROUPSMAPPING N/A N/A result N/A hgm_adress N/A N/A N/A https:// N/A N/A helper get_host hgm_service HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER : N/A N/A helper get_entry_from_group hgm_service rest_port HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A N/A result N/A hgm_password N/A N/A helper get_entry_from_group hgm_service basic_auth_pass HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A N/A result N/A hgm_username N/A N/A helper get_entry_from_group hgm_service basic_auth_user HADOOPGROUPSMAPPING-HADOOPGROUPSMAPPING_RESTSERVER-BASE N/A master_nodes N/A N/A self extract_nodes_info cdh-master deployments_settings N/A N/A i node N/A enumerate master_nodes N/A N/A N/A result N/A N/A master_node_host_ N/A str N/A i 1 N/A node N/A hostname N/A N/A result N/A namenode_internal_host N/A N/A self extract_service_namenode HDFS HDFS-NAMENODE deployments_settings N/A N/A result N/A hue_node N/A N/A self extract_service_namenode HUE HUE-HUE_SERVER deployments_settings N/A N/A result N/A h2o_node N/A N/A N/A N/A self extract_nodes_info cdh-worker-0 deployments_settings N/A 0 N/A hostname N/A N/A result N/A arcadia_node N/A N/A N/A N/A self extract_nodes_info cdh-worker-0 deployments_settings N/A 0 N/A hostname N/A N/A result N/A import_hadoop_conf_hdfs N/A N/A self get_client_config_for_service HDFS N/A N/A result N/A import_hadoop_conf_hbase N/A N/A self get_client_config_for_service HBASE N/A N/A result N/A import_hadoop_conf_yarn N/A N/A self get_client_config_for_service YARN N/A result N/A _find_item_by_attr_value N/A N/A self attr_value attr_name array_with_dicts N/A N/A N/A N/A next N/A item N/A item array_with_dicts N/A N/A item N/A attr_name attr_value N/A _get_host_ip N/A N/A self host ansible_ini N/A N/A N/A host_info N/A N/A line N/A N/A ansible_ini split N/A N/A N/A host line N/A N/A N/A N/A host_info append N/A N/A line strip N/A N/A N/A N/A N/A N/A N/A N/A host_info N/A N/A N/A N/A host_info index N/A N/A [ host ] 1 split N/A 1 split = N/A 1 N/A _load_config_yaml N/A N/A self filename N/A N/A N/A N/A open filename r stream N/A N/A N/A N/A yaml load stream N/A N/A CdhApiHelper N/A object N/A __init__ N/A N/A self cdhApi N/A N/A N/A N/A self cdhApi cdhApi N/A get_service_from_cdh N/A N/A self name N/A N/A N/A cluster N/A N/A N/A N/A self cdhApi get_all_clusters N/A 0 N/A N/A N/A N/A next N/A service N/A service N/A N/A cluster get_all_services N/A N/A service type name N/A N/A N/A StopIteration N/A N/A N/A NoCdhServiceError N/A N/A No {} in CDH services. format name N/A get_host N/A N/A self service role N/A None N/A N/A N/A role None N/A N/A id N/A N/A N/A N/A N/A service get_all_roles N/A 0 hostRef hostId N/A N/A id N/A N/A N/A N/A service get_role role hostRef hostId N/A N/A N/A N/A N/A self cdhApi get_host id hostname N/A get_entry N/A N/A self service name N/A N/A N/A config N/A N/A N/A N/A N/A service get_all_roles N/A 0 get_config full N/A config_entry config N/A N/A N/A name config_entry N/A N/A entry N/A N/A N/A config N/A config_entry value N/A N/A config N/A config_entry default N/A entry N/A get_entry_from_group N/A N/A self service name group N/A N/A N/A config N/A N/A N/A N/A service get_role_config_group group get_config full N/A config_entry config N/A N/A N/A name config_entry N/A N/A entry N/A N/A N/A config N/A config_entry value N/A N/A config N/A config_entry default N/A entry N/A N/A NoCdhServiceError N/A Exception N/A N/A N/A