You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2014/01/15 15:55:07 UTC

Review Request 16907: ambari-server setup -j option installs JDK to indicated location if it does not exist there

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/16907/
-----------------------------------------------------------

Review request for Ambari and Andrew Onischuk.


Bugs: AMBARI-3976
    https://issues.apache.org/jira/browse/AMBARI-3976


Repository: ambari


Description
-------

As part of the savanna install of an ambari server I've added code to point to an already installed JDK location:

2013-12-03 05:41:46.557 18771 DEBUG savanna.utils.remote [-] [dc1-master-001] Executing "ambari-server setup -s -j /opt/jdk1.6.0_31 > /dev/null 2>&1" _log_command /root/dev/savanna/savanna/utils/remote.py:384

The interesting thing I've discovered is that if the JDK does not exist in that location the JDK is retrieved and installed in that location by ambari. I can't find any documentation indicating that behavior. Is it valid for me to assume this is expected behavior that will continue to be supported? It actually would simplify things for us (no need to check for the existence of the JDK in expected location on a remote VM prior to installation), but in that case I imagine this aspect of the feature should be documented and maintained going forward.


Diffs
-----

  ambari-server/src/main/python/ambari-server.py cd34d97 
  ambari-server/src/test/python/TestAmbariServer.py 6daa413 

Diff: https://reviews.apache.org/r/16907/diff/


Testing
-------

/usr/bin/python2.6 /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/test/python/unitTests.py
AMBARI_CONF_DIR is not set, using default /etc/ambari-server/conf
test_adjust_directory_permissions (TestAmbariServer.TestAmbariServer) ... ok
test_ambariServerSetupWithCustomDbName (TestAmbariServer.TestAmbariServer) ... ok
test_check_ambari_user (TestAmbariServer.TestAmbariServer) ... ok
test_check_database_name_property (TestAmbariServer.TestAmbariServer) ... ok
test_check_iptables_is_not_running (TestAmbariServer.TestAmbariServer) ... ok
test_check_iptables_is_running (TestAmbariServer.TestAmbariServer) ... ok
test_check_jdbc_drivers (TestAmbariServer.TestAmbariServer) ... ok
test_check_postgre_up (TestAmbariServer.TestAmbariServer) ... ok
test_check_selinux (TestAmbariServer.TestAmbariServer) ... ok
test_configure_database_password (TestAmbariServer.TestAmbariServer) ... ok
test_configure_database_username_password_masterkey_persisted (TestAmbariServer.TestAmbariServer) ... ok
test_configure_ldap_password (TestAmbariServer.TestAmbariServer) ... ok
test_configure_os_settings (TestAmbariServer.TestAmbariServer) ... ok
test_configure_pg_hba_ambaridb_users (TestAmbariServer.TestAmbariServer) ... ok
test_configure_pg_hba_postgres_user (TestAmbariServer.TestAmbariServer) ... ok
test_configure_postgres (TestAmbariServer.TestAmbariServer) ... ok
test_configure_postgresql_conf (TestAmbariServer.TestAmbariServer) ... ok
test_copy_file (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:2066: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  "permissions and free disk space.".format(src, dest_file, e.message)
ok
test_create_custom_user (TestAmbariServer.TestAmbariServer) ... ok
Test to make sure the service name can contain digits ... ok
test_dlprogress (TestAmbariServer.TestAmbariServer) ... ok
test_download_jdk (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:1739: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  "permissions and free disk space.".format(args.jdk_location, dest_file, e.message)
ok
test_execute_remote_script (TestAmbariServer.TestAmbariServer) ... ok
test_find_jdk (TestAmbariServer.TestAmbariServer) ... ok
test_find_properties_file (TestAmbariServer.TestAmbariServer) ... ok
test_generate_random_string (TestAmbariServer.TestAmbariServer) ... ok
test_get_JAVA_HOME (TestAmbariServer.TestAmbariServer) ... ok
test_get_YN_input (TestAmbariServer.TestAmbariServer) ... ok
test_get_ambari_classpath (TestAmbariServer.TestAmbariServer) ... ok
test_get_ambari_jars (TestAmbariServer.TestAmbariServer) ... ok
test_get_ambari_properties (TestAmbariServer.TestAmbariServer) ... ok
test_get_cert_info (TestAmbariServer.TestAmbariServer) ... ok
test_get_conf_dir (TestAmbariServer.TestAmbariServer) ... ok
test_get_fqdn (TestAmbariServer.TestAmbariServer) ... ok
test_get_pass_file_path (TestAmbariServer.TestAmbariServer) ... ok
test_get_postgre_status (TestAmbariServer.TestAmbariServer) ... ok
test_get_share_jars (TestAmbariServer.TestAmbariServer) ... ok
test_get_validated_string_input (TestAmbariServer.TestAmbariServer) ... ok
test_import_cert_and_key (TestAmbariServer.TestAmbariServer) ... ok
test_import_cert_and_key_action (TestAmbariServer.TestAmbariServer) ... ok
test_import_cert_and_key_with_empty_password (TestAmbariServer.TestAmbariServer) ... ok
test_import_cert_and_key_with_incorrect_password (TestAmbariServer.TestAmbariServer) ... ok
test_install_jce_manualy (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:1670: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  "permissions and free disk space.".format(args.jce_policy, jce_destination, e.message)
ok
test_install_jdk (TestAmbariServer.TestAmbariServer) ... ok
test_is_jdbc_user_changed (TestAmbariServer.TestAmbariServer) ... ok
test_is_server_runing (TestAmbariServer.TestAmbariServer) ... ok
test_is_server_runing_bad_file (TestAmbariServer.TestAmbariServer) ... ok
test_is_valid_cert_exp (TestAmbariServer.TestAmbariServer) ... ok
test_is_valid_cert_host (TestAmbariServer.TestAmbariServer) ... ok
test_is_valid_filepath (TestAmbariServer.TestAmbariServer) ... ok
test_is_valid_https_port (TestAmbariServer.TestAmbariServer) ... ok
test_load_default_db_properties (TestAmbariServer.TestAmbariServer) ... ok
test_main_db_options (TestAmbariServer.TestAmbariServer) ... Usage: ambari-server.py [options] action [stack_id]

ambari-server.py: error: All database options should be set. Please see help for the options.
Usage: ambari-server.py [options] action [stack_id]

ambari-server.py: error: Unsupported Database unknown
Usage: ambari-server.py [options] action [stack_id]

ambari-server.py: error: Incorrect database port unknown
ok
test_main_test_reset (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_setup (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_setup_security (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_start (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_start_debug_long (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_start_debug_short (TestAmbariServer.TestAmbariServer) ... ok
test_main_test_stop (TestAmbariServer.TestAmbariServer) ... ok
test_parse_properties_file (TestAmbariServer.TestAmbariServer) ... ok
test_print_error_msg (TestAmbariServer.TestAmbariServer) ... ok
test_print_info_msg (TestAmbariServer.TestAmbariServer) ... ok
test_print_warning_msg (TestAmbariServer.TestAmbariServer) ... ok
test_prompt_db_properties (TestAmbariServer.TestAmbariServer) ... ok
test_prompt_db_properties_default (TestAmbariServer.TestAmbariServer) ... ok
test_prompt_db_properties_oracle_sid (TestAmbariServer.TestAmbariServer) ... ok
test_prompt_db_properties_oracle_sname (TestAmbariServer.TestAmbariServer) ... ok
test_prompt_db_properties_postgre_adv (TestAmbariServer.TestAmbariServer) ... ok
test_read_ambari_user (TestAmbariServer.TestAmbariServer) ... ok
test_read_password (TestAmbariServer.TestAmbariServer) ... ok
test_regexps (TestAmbariServer.TestAmbariServer) ... ok
test_remove_file (TestAmbariServer.TestAmbariServer) ... ok
test_reset (TestAmbariServer.TestAmbariServer) ... ok
test_reset_default (TestAmbariServer.TestAmbariServer) ... ok
test_reset_master_key_not_persisted (TestAmbariServer.TestAmbariServer) ... ok
test_reset_master_key_persisted (TestAmbariServer.TestAmbariServer) ... ok
test_reset_remote_db_wo_client (TestAmbariServer.TestAmbariServer) ... ok
test_restart_postgres (TestAmbariServer.TestAmbariServer) ... ok
test_run_os_command (TestAmbariServer.TestAmbariServer) ... ok
test_search_file (TestAmbariServer.TestAmbariServer) ... ok
Test to make sure the service name can contain digits ... ok
test_set_file_permissions (TestAmbariServer.TestAmbariServer) ... ok
test_setup (TestAmbariServer.TestAmbariServer) ... ok
test_setup_ambari_krb5_jaas (TestAmbariServer.TestAmbariServer) ... ok
test_setup_component_https (TestAmbariServer.TestAmbariServer) ... ok
test_setup_db (TestAmbariServer.TestAmbariServer) ... ok
test_setup_db_connect_attempts_fail (TestAmbariServer.TestAmbariServer) ... ok
test_setup_db_connect_attempts_success (TestAmbariServer.TestAmbariServer) ... ok
test_setup_https (TestAmbariServer.TestAmbariServer) ... ok
test_setup_ldap (TestAmbariServer.TestAmbariServer) ... ok
test_setup_ldap_invalid_input (TestAmbariServer.TestAmbariServer) ... ok
test_setup_master_key_not_persist (TestAmbariServer.TestAmbariServer) ... ok
test_setup_master_key_persist (TestAmbariServer.TestAmbariServer) ... ok
test_setup_remote_db_wo_client (TestAmbariServer.TestAmbariServer) ... ok
test_setup_security (TestAmbariServer.TestAmbariServer) ... ok
test_silent_reset (TestAmbariServer.TestAmbariServer) ... ok
test_start (TestAmbariServer.TestAmbariServer) ... ok
test_stop (TestAmbariServer.TestAmbariServer) ... ok
test_store_password_file (TestAmbariServer.TestAmbariServer) ... ok
test_store_remote_properties (TestAmbariServer.TestAmbariServer) ... ok
test_track_jdk (TestAmbariServer.TestAmbariServer) ... ok
test_update_ambari_properties (TestAmbariServer.TestAmbariServer) ... ok
test_update_ambari_properties_negative_case (TestAmbariServer.TestAmbariServer) ... ok
test_update_ambari_properties_without_user_property (TestAmbariServer.TestAmbariServer) ... ok
test_update_properties (TestAmbariServer.TestAmbariServer) ... ok
test_upgrade (TestAmbariServer.TestAmbariServer) ... ok
test_upgrade_local_repo (TestAmbariServer.TestAmbariServer) ... ok
test_upgrade_local_repo_nochange (TestAmbariServer.TestAmbariServer) ... ok
test_upgrade_stack (TestAmbariServer.TestAmbariServer) ... ok
test_write_property (TestAmbariServer.TestAmbariServer) ... ok
test_checkServerReachability (TestSetupAgent.TestSetupAgent) ... ok
test_configureAgent (TestSetupAgent.TestSetupAgent) ... ok
test_execOsCommand (TestSetupAgent.TestSetupAgent) ... ok
test_findNearestAgentPackageVersion (TestSetupAgent.TestSetupAgent) ... ok
test_findNearestAgentPackageVersionSuse (TestSetupAgent.TestSetupAgent) ... ok
test_getAvaliableAgentPackageVersions (TestSetupAgent.TestSetupAgent) ... ok
test_getAvaliableAgentPackageVersionsSuse (TestSetupAgent.TestSetupAgent) ... ok
test_installAgent (TestSetupAgent.TestSetupAgent) ... ok
test_installAgentSuse (TestSetupAgent.TestSetupAgent) ... ok
test_isAgentPackageAlreadyInstalled (TestSetupAgent.TestSetupAgent) ... ok
test_is_suse (TestSetupAgent.TestSetupAgent) ... ok
test_returned_optimal_version_is_default (TestSetupAgent.TestSetupAgent) ... ok
test_returned_optimal_version_is_initial (TestSetupAgent.TestSetupAgent) ... ok
test_returned_optimal_version_is_initial_on_suse (TestSetupAgent.TestSetupAgent) ... ok
test_returned_optimal_version_is_nearest_on_suse (TestSetupAgent.TestSetupAgent) ... bash: zypper: command not found
ok
test_runAgent (TestSetupAgent.TestSetupAgent) ... ok
test_setup_agent_main (TestSetupAgent.TestSetupAgent) ... log
Log not found
log
ok
test_PBootstrap (TestBootstrap.TestBootstrap) ... ok
test_SCP (TestBootstrap.TestBootstrap) ... ok
test_SSH (TestBootstrap.TestBootstrap) ... ok
test_agent_setup_command_without_project_version (TestBootstrap.TestBootstrap) ... ok
test_bootstrap_main (TestBootstrap.TestBootstrap) ... ok
test_changePasswordFileModeOnHost (TestBootstrap.TestBootstrap) ... ok
test_checkSudoPackage (TestBootstrap.TestBootstrap) ... ok
test_copyNeededFiles (TestBootstrap.TestBootstrap) ... ok
test_copyOsCheckScript (TestBootstrap.TestBootstrap) ... ok
test_copyPasswordFile (TestBootstrap.TestBootstrap) ... ok
test_createDoneFile (TestBootstrap.TestBootstrap) ... ok
test_deletePasswordFile (TestBootstrap.TestBootstrap) ... ok
test_generateRandomFileName (TestBootstrap.TestBootstrap) ... ok
test_getAmbariPort (TestBootstrap.TestBootstrap) ... ok
test_getOsCheckScript (TestBootstrap.TestBootstrap) ... ok
test_getOsCheckScriptRemoteLocation (TestBootstrap.TestBootstrap) ... ok
test_getRemoteName (TestBootstrap.TestBootstrap) ... ok
test_getRepoDir (TestBootstrap.TestBootstrap) ... ok
test_getRepoFile (TestBootstrap.TestBootstrap) ... ok
test_getRunSetupCommand (TestBootstrap.TestBootstrap) ... ok
test_getRunSetupWithPasswordCommand (TestBootstrap.TestBootstrap) ... ok
test_getSetupScript (TestBootstrap.TestBootstrap) ... ok
test_host_log (TestBootstrap.TestBootstrap) ... ok
test_interruptBootstrap (TestBootstrap.TestBootstrap) ... ok
test_is_suse (TestBootstrap.TestBootstrap) ... ok
test_run (TestBootstrap.TestBootstrap) ... ok
test_runOsCheckScript (TestBootstrap.TestBootstrap) ... ok
test_runSetupAgent (TestBootstrap.TestBootstrap) ... ok
test_run_setup_agent_command_ends_with_project_version (TestBootstrap.TestBootstrap) ... ok
test_try_to_execute (TestBootstrap.TestBootstrap) ... ok
test_add_yarn_mr (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_backup_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_delete_mr (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_get_and_parse_properties (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_install_yarn_mr2 (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_no_hbase (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_print_only (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_rename_all_properties (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_save_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_save_mr_mapping (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_tags_count (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_update_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_update_single_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_update_with_append (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
test_update_without_append (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok

----------------------------------------------------------------------
Ran 173 tests in 3.006s

OK

Process finished with exit code 0
***************************************************************************************************

/usr/bin/python2.6 /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-agent/src/test/python/unitTests.py
test_extract (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
test_read_all_stack_versions (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
test_read_stack_version (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
test_touch_file (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
test_write_stack_version (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
test_install_packages (TestScript.TestScript) ... ok
test_structured_out (TestScript.TestScript) ... ok
test_download_source_get_content_cache_existent (TestContentSources.TestContentSources) ... ok
test_download_source_get_content_cache_existent_md5_match (TestContentSources.TestContentSources) ... ok
test_download_source_get_content_cache_existent_md5_unmatch (TestContentSources.TestContentSources) ... ok
test_download_source_get_content_cache_new (TestContentSources.TestContentSources) ... ok
test_download_source_get_content_nocache (TestContentSources.TestContentSources) ... ok
test_download_source_init_existent_download_directory (TestContentSources.TestContentSources) ... ok
test_download_source_init_nonexistent_download_directory (TestContentSources.TestContentSources) ... ok
test_inline_template (TestContentSources.TestContentSources) ... ok
test_static_file_absolute_path (TestContentSources.TestContentSources) ... ok
test_static_file_relative_path (TestContentSources.TestContentSources) ... ok
test_template_imports (TestContentSources.TestContentSources) ... ok
test_template_loader (TestContentSources.TestContentSources) ... ok
test_template_loader_absolute_path (TestContentSources.TestContentSources) ... ok
test_template_loader_arguments (TestContentSources.TestContentSources) ... ok
test_template_loader_fail (TestContentSources.TestContentSources) ... ok
test_clean (TestProcessHelper.TestProcessHelper) ... ok
test_restartAgent (TestProcessHelper.TestProcessHelper) ... ok
test_stopAgent (TestProcessHelper.TestProcessHelper) ... ok
test_main (TestAmbariAgent.TestAmbariAgent) ... ok
test_action_create_existent (TestUserResource.TestUserResource) ... ok
test_action_create_nonexistent (TestUserResource.TestUserResource) ... ok
test_action_delete (TestUserResource.TestUserResource) ... ok
test_attribute_comment (TestUserResource.TestUserResource) ... ok
test_attribute_gid (TestUserResource.TestUserResource) ... ok
test_attribute_groups (TestUserResource.TestUserResource) ... ok
test_attribute_home (TestUserResource.TestUserResource) ... ok
test_attribute_password (TestUserResource.TestUserResource) ... ok
test_attribute_shell (TestUserResource.TestUserResource) ... ok
test_attribute_uid (TestUserResource.TestUserResource) ... ok
test_do_cleanup_all (TestHostCleanup.TestHostCleanup) ... ok
test_do_cleanup_default (TestHostCleanup.TestHostCleanup) ... ok
test_do_cleanup_with_skip (TestHostCleanup.TestHostCleanup) ... ok
test_do_delete_by_owner (TestHostCleanup.TestHostCleanup) ... ok
test_do_delete_users (TestHostCleanup.TestHostCleanup) ... ok
test_do_earse_packages (TestHostCleanup.TestHostCleanup) ... ok
test_do_erase_alternatives (TestHostCleanup.TestHostCleanup) ... ok
test_find_repo_files_for_repos (TestHostCleanup.TestHostCleanup) ... ok
test_options (TestHostCleanup.TestHostCleanup) ... ok
test_options_silent (TestHostCleanup.TestHostCleanup) ... ok
test_read_host_check_file (TestHostCleanup.TestHostCleanup) ... ok
test_read_host_check_file_with_content (TestHostCleanup.TestHostCleanup) ... ok
test_setup_centos (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
test_setup_suse (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
test_stop_centos (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
test_stop_suse (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
test_put_and_generate (TestCommandStatusDict.TestCommandStatusDict) ... ok
test_check_web_ui (TestCheckWebUI.TestMain) ... ok
test_execution_results (TestPythonExecutor.TestPythonExecutor) ... ok
test_is_successfull (TestPythonExecutor.TestPythonExecutor) ... ok
test_python_command (TestPythonExecutor.TestPythonExecutor) ... ok
test_watchdog_1 (TestPythonExecutor.TestPythonExecutor) ... ok
test_watchdog_2 (TestPythonExecutor.TestPythonExecutor) ... ok
test_installAndConfigAction (TestAgentActions.TestAgentActions) ... ok
test_startAndStopAction (TestAgentActions.TestAgentActions) ... ok
test_changeUid (TestShell.TestShell) ... ok
test_kill_process_with_children (TestShell.TestShell) ... ok
test_shellRunner_run (TestShell.TestShell) ... ok
test_action_install_rhel (TestPackageResource.TestPackageResource) ... ok
test_action_install_suse (TestPackageResource.TestPackageResource) ... ok
test_action_install_version_attr (TestPackageResource.TestPackageResource) ... ok
test_action_remove_rhel (TestPackageResource.TestPackageResource) ... ok
test_action_remove_suse (TestPackageResource.TestPackageResource) ... ok
test_write_host_check_report (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
test_write_host_check_report_empty (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
test_write_host_check_report_really_empty (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
test_build (TestLiveStatus.TestLiveStatus) ... ok
test_build_predefined (TestLiveStatus.TestLiveStatus) ... ok
test_dump_command_to_json (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_requestComponentStatus (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_resolve_hook_script_path (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_resolve_script_path (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_runCommand (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_runCommand_custom_action (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
test_attribute_command_escaping (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_command_one_line (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_creates (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_cwd (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_environment (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_group (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_logoutput (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_path (TestExecuteResource.TestExecuteResource) ... ok
test_attribute_try_sleep_tries (TestExecuteResource.TestExecuteResource) ... ok
test_CachedHTTPSConnection_connect (TestSecurity.TestSecurity) ... ok
test_VerifiedHTTPSConnection_connect (TestSecurity.TestSecurity) ... ok
test_Verified_HTTPSConnection_non_secure_connect (TestSecurity.TestSecurity) ... ok
test_Verified_HTTPSConnection_two_way_ssl_connect (TestSecurity.TestSecurity) ... ok
test_checkCertExists (TestSecurity.TestSecurity) ... ok
test_forceClear (TestSecurity.TestSecurity) ... ok
test_genAgentCrtReq (TestSecurity.TestSecurity) ... ok
test_getAgentCrtName (TestSecurity.TestSecurity) ... ok
test_getAgentCrtReqName (TestSecurity.TestSecurity) ... ok
test_getAgentKeyName (TestSecurity.TestSecurity) ... ok
test_getSrvrCrtName (TestSecurity.TestSecurity) ... ok
test_initSecurity (TestSecurity.TestSecurity) ... ok
test_loadSrvrCrt (TestSecurity.TestSecurity) ... ok
test_reqSignCrt (TestSecurity.TestSecurity) ... ok
test_request (TestSecurity.TestSecurity) ... ok
test_get_hook_base_dir (TestFileCache.TestFileCache) ... ok
test_get_service_base_dir (TestFileCache.TestFileCache) ... ok
test_action_create_dir_exist (TestFileResource.TestFileResource) ... ok
test_action_create_non_existent_file (TestFileResource.TestFileResource) ... ok
test_action_create_parent_dir_non_exist (TestFileResource.TestFileResource) ... ok
test_action_create_replace (TestFileResource.TestFileResource) ... ok
test_action_delete (TestFileResource.TestFileResource) ... ok
test_action_delete_is_directory (TestFileResource.TestFileResource) ... ok
test_attribute_backup (TestFileResource.TestFileResource) ... ok
test_attribute_path (TestFileResource.TestFileResource) ... ok
test_attribute_replace (TestFileResource.TestFileResource) ... ok
test_ensure_metadata (TestFileResource.TestFileResource) ... ok
test_ActionQueueStartStop (TestActionQueue.TestActionQueue) ... ok
test_command_execution_depending_on_command_format (TestActionQueue.TestActionQueue) ... ok
test_determine_command_format_version (TestActionQueue.TestActionQueue) ... ok
test_execute_command (TestActionQueue.TestActionQueue) ... ok
test_execute_status_command (TestActionQueue.TestActionQueue) ... ok
test_process_command (TestActionQueue.TestActionQueue) ... ok
test_bind_signal_handlers (TestMain.TestMain) ... ok
test_daemonize_and_stop (TestMain.TestMain) ... ok
test_main (TestMain.TestMain) ... ok
test_perform_prestart_checks (TestMain.TestMain) ... ok
test_resolve_ambari_config (TestMain.TestMain) ... ok
test_setup_logging (TestMain.TestMain) ... ok
test_signal_handler (TestMain.TestMain) ... ok
test_update_log_level (TestMain.TestMain) ... ok
test_dead (TestStatusCheck.TestStatusCheck) ... ok
test_dont_relog_serToPidDict (TestStatusCheck.TestStatusCheck) ... ok
test_live (TestStatusCheck.TestStatusCheck) ... ok
test_live_if_multiple_pids (TestStatusCheck.TestStatusCheck) ... ok
test_no_user_mapping (TestStatusCheck.TestStatusCheck) ... ok
test_registration_build (TestRegistration.TestRegistration) ... 18
ok
test_hostname (TestHostname.TestHostname) ... ok
test_hostname_override (TestHostname.TestHostname) ... ok
test_public_hostname_override (TestHostname.TestHostname) ... ok
test_build (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_condense_bad2 (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_condense_bad3 (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_condense_good (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_configure_environ (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_isJavaAvailable (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_overwrite_repos (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_run_command (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_watchdog_1 (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_watchdog_2 (TestPuppetExecutor.TestPuppetExecutor) ... ok
test_read_empty (TestActualConfigHandler.TestActualConfigHandler) ... ok
test_read_write (TestActualConfigHandler.TestActualConfigHandler) ... ok
test_read_write_component (TestActualConfigHandler.TestActualConfigHandler) ... ok
test_addToQueue (TestController.TestController) ... ok
test_certSigningFailed (TestController.TestController) ... ok
test_heartbeatWithServer (TestController.TestController) ... ok
test_registerAndHeartbeat (TestController.TestController) ... ok
test_registerAndHeartbeatWithException (TestController.TestController) ... ok
test_registerWithServer (TestController.TestController) ... ok
test_repeatRegistration (TestController.TestController) ... ok
test_restartAgent (TestController.TestController) ... ok
test_run (TestController.TestController) ... ok
test_sendRequest (TestController.TestController) ... ok
test_cleanup_remove_error (TestDataCleaner.TestDataCleaner) ... ok
test_cleanup_success (TestDataCleaner.TestDataCleaner) ... ok
test_init_success (TestDataCleaner.TestDataCleaner) ... ok
test_init_warn (TestDataCleaner.TestDataCleaner) ... ok
test_cleanByTemplate (TestGrep.TestGrep) ... ok
test_filterMarkup (TestGrep.TestGrep) ... ok
test_grep_all (TestGrep.TestGrep) ... ok
test_grep_empty_string (TestGrep.TestGrep) ... ok
test_grep_few_lines (TestGrep.TestGrep) ... ok
test_grep_many_lines (TestGrep.TestGrep) ... ok
test_grep_no_result (TestGrep.TestGrep) ... ok
test_tail_all (TestGrep.TestGrep) ... ok
test_tail_few_lines (TestGrep.TestGrep) ... ok
test_tail_many_lines (TestGrep.TestGrep) ... ok
test_tail_no_lines (TestGrep.TestGrep) ... ok
test_run (TestPuppetExecutorManually.TestPuppetExecutor) ... ok
test_init_success (TestPingPortListener.TestPingPortListener) ... ok
test_init_warn (TestPingPortListener.TestPingPortListener) ... ok
test_analyze_yum_output (TestHostInfo.TestHostInfo) ... ok
test_analyze_yum_output_err (TestHostInfo.TestHostInfo) ... ok
test_analyze_zypper_out (TestHostInfo.TestHostInfo) ... ok
test_checkFolders (TestHostInfo.TestHostInfo) ... ok
test_checkIptables (TestHostInfo.TestHostInfo) ... ok
test_checkLiveServices (TestHostInfo.TestHostInfo) ... ok
test_checkUsers (TestHostInfo.TestHostInfo) ... ok
test_dirType (TestHostInfo.TestHostInfo) ... ok
test_etcAlternativesConf (TestHostInfo.TestHostInfo) ... ok
test_getReposToRemove (TestHostInfo.TestHostInfo) ... ok
test_hadoopVarLogCount (TestHostInfo.TestHostInfo) ... ok
test_hadoopVarRunCount (TestHostInfo.TestHostInfo) ... ok
test_hostinfo_register (TestHostInfo.TestHostInfo) ... ok
test_hostinfo_register_suse (TestHostInfo.TestHostInfo) ... ok
test_javaProcs (TestHostInfo.TestHostInfo) ... ok
test_osdiskAvailableSpace (TestHostInfo.TestHostInfo) ... ok
test_perform_package_analysis (TestHostInfo.TestHostInfo) ... ok
test_build (TestHeartbeat.TestHeartbeat) ... ok
test_build_long_result (TestHeartbeat.TestHeartbeat) ... ok
test_heartbeat_host_check_no_cmd (TestHeartbeat.TestHeartbeat) ... ok
test_heartbeat_no_host_check_cmd_in_queue (TestHeartbeat.TestHeartbeat) ... ok
test_no_mapping (TestHeartbeat.TestHeartbeat) ... ok
test_action_create_existent (TestGroupResource.TestGroupResource) ... ok
test_action_create_fail (TestGroupResource.TestGroupResource) ... ok
test_action_create_nonexistent (TestGroupResource.TestGroupResource) ... ok
test_action_remove (TestGroupResource.TestGroupResource) ... ok
test_action_remove_fail (TestGroupResource.TestGroupResource) ... ok
test_build (TestHardware.TestHardware) ... ok
test_extractMountInfo (TestHardware.TestHardware) ... ok
test_facterDataIfConfigOutput (TestHardware.TestHardware) ... ok
test_facterMemInfoOutput (TestHardware.TestHardware) ... ok
test_fqdnDomainHostname (TestHardware.TestHardware) ... ok
test_uptimeSecondsHoursDays (TestHardware.TestHardware) ... ok
test_checkURL (TestNetUtil.TestNetUtil) ... ok
test_try_to_connect (TestNetUtil.TestNetUtil) ... ok
test_action_create_failed_due_to_file_exists (TestLinkResource.TestLinkResource) ... ok
test_action_create_hardlink_clean_create (TestLinkResource.TestLinkResource) ... ok
test_action_create_hardlink_target_doesnt_exist (TestLinkResource.TestLinkResource) ... ok
test_action_create_hardlink_target_is_dir (TestLinkResource.TestLinkResource) ... ok
test_action_create_relink (TestLinkResource.TestLinkResource) ... ok
test_action_create_symlink_clean_create (TestLinkResource.TestLinkResource) ... ok
test_action_delete (TestLinkResource.TestLinkResource) ... ok
testInstallRepos (TestRepoInstaller.TestRepoInstaller) ... generate_repo_manifests result: <MagicMock name='generateFiles()' id='35314960'>
ok
test_generate_files (TestRepoInstaller.TestRepoInstaller) ... ok
test_prepare_repos_info (TestRepoInstaller.TestRepoInstaller) ... ok
test_generation (TestCertGeneration.TestCertGeneration) ... Generating a 1024 bit RSA private key
...............................++++++
..................++++++
writing new private key to '/tmp/tmpjpWqV5/localhost.localdomain.key'
-----
ok
testConvertMappedRangeToList (TestManifestGenerator.TestManifestGenerator) ... ok
testConvertRangeToList (TestManifestGenerator.TestManifestGenerator) ... ok
testEscape (TestManifestGenerator.TestManifestGenerator) ... ok
testGenerateManifest (TestManifestGenerator.TestManifestGenerator) ... ok
testWriteImports (TestManifestGenerator.TestManifestGenerator) ... ok
test_writeHostAttributes (TestManifestGenerator.TestManifestGenerator) ... ok
test_writeNodes (TestManifestGenerator.TestManifestGenerator) ... ok
test_writeNodes_failed (TestManifestGenerator.TestManifestGenerator) ... ok
test_writeTasks (TestManifestGenerator.TestManifestGenerator) ... ok

----------------------------------------------------------------------
Ran 235 tests in 12.964s

OK

Process finished with exit code 0


Thanks,

Vitalyi Brodetskyi


Re: Review Request 16907: ambari-server setup -j option installs JDK to indicated location if it does not exist there

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/16907/#review31870
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On Jan. 15, 2014, 2:55 p.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16907/
> -----------------------------------------------------------
> 
> (Updated Jan. 15, 2014, 2:55 p.m.)
> 
> 
> Review request for Ambari and Andrew Onischuk.
> 
> 
> Bugs: AMBARI-3976
>     https://issues.apache.org/jira/browse/AMBARI-3976
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> As part of the savanna install of an ambari server I've added code to point to an already installed JDK location:
> 
> 2013-12-03 05:41:46.557 18771 DEBUG savanna.utils.remote [-] [dc1-master-001] Executing "ambari-server setup -s -j /opt/jdk1.6.0_31 > /dev/null 2>&1" _log_command /root/dev/savanna/savanna/utils/remote.py:384
> 
> The interesting thing I've discovered is that if the JDK does not exist in that location the JDK is retrieved and installed in that location by ambari. I can't find any documentation indicating that behavior. Is it valid for me to assume this is expected behavior that will continue to be supported? It actually would simplify things for us (no need to check for the existence of the JDK in expected location on a remote VM prior to installation), but in that case I imagine this aspect of the feature should be documented and maintained going forward.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/python/ambari-server.py cd34d97 
>   ambari-server/src/test/python/TestAmbariServer.py 6daa413 
> 
> Diff: https://reviews.apache.org/r/16907/diff/
> 
> 
> Testing
> -------
> 
> /usr/bin/python2.6 /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/test/python/unitTests.py
> AMBARI_CONF_DIR is not set, using default /etc/ambari-server/conf
> test_adjust_directory_permissions (TestAmbariServer.TestAmbariServer) ... ok
> test_ambariServerSetupWithCustomDbName (TestAmbariServer.TestAmbariServer) ... ok
> test_check_ambari_user (TestAmbariServer.TestAmbariServer) ... ok
> test_check_database_name_property (TestAmbariServer.TestAmbariServer) ... ok
> test_check_iptables_is_not_running (TestAmbariServer.TestAmbariServer) ... ok
> test_check_iptables_is_running (TestAmbariServer.TestAmbariServer) ... ok
> test_check_jdbc_drivers (TestAmbariServer.TestAmbariServer) ... ok
> test_check_postgre_up (TestAmbariServer.TestAmbariServer) ... ok
> test_check_selinux (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_database_password (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_database_username_password_masterkey_persisted (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_ldap_password (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_os_settings (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_pg_hba_ambaridb_users (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_pg_hba_postgres_user (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_postgres (TestAmbariServer.TestAmbariServer) ... ok
> test_configure_postgresql_conf (TestAmbariServer.TestAmbariServer) ... ok
> test_copy_file (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:2066: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   "permissions and free disk space.".format(src, dest_file, e.message)
> ok
> test_create_custom_user (TestAmbariServer.TestAmbariServer) ... ok
> Test to make sure the service name can contain digits ... ok
> test_dlprogress (TestAmbariServer.TestAmbariServer) ... ok
> test_download_jdk (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:1739: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   "permissions and free disk space.".format(args.jdk_location, dest_file, e.message)
> ok
> test_execute_remote_script (TestAmbariServer.TestAmbariServer) ... ok
> test_find_jdk (TestAmbariServer.TestAmbariServer) ... ok
> test_find_properties_file (TestAmbariServer.TestAmbariServer) ... ok
> test_generate_random_string (TestAmbariServer.TestAmbariServer) ... ok
> test_get_JAVA_HOME (TestAmbariServer.TestAmbariServer) ... ok
> test_get_YN_input (TestAmbariServer.TestAmbariServer) ... ok
> test_get_ambari_classpath (TestAmbariServer.TestAmbariServer) ... ok
> test_get_ambari_jars (TestAmbariServer.TestAmbariServer) ... ok
> test_get_ambari_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_get_cert_info (TestAmbariServer.TestAmbariServer) ... ok
> test_get_conf_dir (TestAmbariServer.TestAmbariServer) ... ok
> test_get_fqdn (TestAmbariServer.TestAmbariServer) ... ok
> test_get_pass_file_path (TestAmbariServer.TestAmbariServer) ... ok
> test_get_postgre_status (TestAmbariServer.TestAmbariServer) ... ok
> test_get_share_jars (TestAmbariServer.TestAmbariServer) ... ok
> test_get_validated_string_input (TestAmbariServer.TestAmbariServer) ... ok
> test_import_cert_and_key (TestAmbariServer.TestAmbariServer) ... ok
> test_import_cert_and_key_action (TestAmbariServer.TestAmbariServer) ... ok
> test_import_cert_and_key_with_empty_password (TestAmbariServer.TestAmbariServer) ... ok
> test_import_cert_and_key_with_incorrect_password (TestAmbariServer.TestAmbariServer) ... ok
> test_install_jce_manualy (TestAmbariServer.TestAmbariServer) ... /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-server/src/main/python/ambari-server.py:1670: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   "permissions and free disk space.".format(args.jce_policy, jce_destination, e.message)
> ok
> test_install_jdk (TestAmbariServer.TestAmbariServer) ... ok
> test_is_jdbc_user_changed (TestAmbariServer.TestAmbariServer) ... ok
> test_is_server_runing (TestAmbariServer.TestAmbariServer) ... ok
> test_is_server_runing_bad_file (TestAmbariServer.TestAmbariServer) ... ok
> test_is_valid_cert_exp (TestAmbariServer.TestAmbariServer) ... ok
> test_is_valid_cert_host (TestAmbariServer.TestAmbariServer) ... ok
> test_is_valid_filepath (TestAmbariServer.TestAmbariServer) ... ok
> test_is_valid_https_port (TestAmbariServer.TestAmbariServer) ... ok
> test_load_default_db_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_main_db_options (TestAmbariServer.TestAmbariServer) ... Usage: ambari-server.py [options] action [stack_id]
> 
> ambari-server.py: error: All database options should be set. Please see help for the options.
> Usage: ambari-server.py [options] action [stack_id]
> 
> ambari-server.py: error: Unsupported Database unknown
> Usage: ambari-server.py [options] action [stack_id]
> 
> ambari-server.py: error: Incorrect database port unknown
> ok
> test_main_test_reset (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_setup (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_setup_security (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_start (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_start_debug_long (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_start_debug_short (TestAmbariServer.TestAmbariServer) ... ok
> test_main_test_stop (TestAmbariServer.TestAmbariServer) ... ok
> test_parse_properties_file (TestAmbariServer.TestAmbariServer) ... ok
> test_print_error_msg (TestAmbariServer.TestAmbariServer) ... ok
> test_print_info_msg (TestAmbariServer.TestAmbariServer) ... ok
> test_print_warning_msg (TestAmbariServer.TestAmbariServer) ... ok
> test_prompt_db_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_prompt_db_properties_default (TestAmbariServer.TestAmbariServer) ... ok
> test_prompt_db_properties_oracle_sid (TestAmbariServer.TestAmbariServer) ... ok
> test_prompt_db_properties_oracle_sname (TestAmbariServer.TestAmbariServer) ... ok
> test_prompt_db_properties_postgre_adv (TestAmbariServer.TestAmbariServer) ... ok
> test_read_ambari_user (TestAmbariServer.TestAmbariServer) ... ok
> test_read_password (TestAmbariServer.TestAmbariServer) ... ok
> test_regexps (TestAmbariServer.TestAmbariServer) ... ok
> test_remove_file (TestAmbariServer.TestAmbariServer) ... ok
> test_reset (TestAmbariServer.TestAmbariServer) ... ok
> test_reset_default (TestAmbariServer.TestAmbariServer) ... ok
> test_reset_master_key_not_persisted (TestAmbariServer.TestAmbariServer) ... ok
> test_reset_master_key_persisted (TestAmbariServer.TestAmbariServer) ... ok
> test_reset_remote_db_wo_client (TestAmbariServer.TestAmbariServer) ... ok
> test_restart_postgres (TestAmbariServer.TestAmbariServer) ... ok
> test_run_os_command (TestAmbariServer.TestAmbariServer) ... ok
> test_search_file (TestAmbariServer.TestAmbariServer) ... ok
> Test to make sure the service name can contain digits ... ok
> test_set_file_permissions (TestAmbariServer.TestAmbariServer) ... ok
> test_setup (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_ambari_krb5_jaas (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_component_https (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_db (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_db_connect_attempts_fail (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_db_connect_attempts_success (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_https (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_ldap (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_ldap_invalid_input (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_master_key_not_persist (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_master_key_persist (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_remote_db_wo_client (TestAmbariServer.TestAmbariServer) ... ok
> test_setup_security (TestAmbariServer.TestAmbariServer) ... ok
> test_silent_reset (TestAmbariServer.TestAmbariServer) ... ok
> test_start (TestAmbariServer.TestAmbariServer) ... ok
> test_stop (TestAmbariServer.TestAmbariServer) ... ok
> test_store_password_file (TestAmbariServer.TestAmbariServer) ... ok
> test_store_remote_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_track_jdk (TestAmbariServer.TestAmbariServer) ... ok
> test_update_ambari_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_update_ambari_properties_negative_case (TestAmbariServer.TestAmbariServer) ... ok
> test_update_ambari_properties_without_user_property (TestAmbariServer.TestAmbariServer) ... ok
> test_update_properties (TestAmbariServer.TestAmbariServer) ... ok
> test_upgrade (TestAmbariServer.TestAmbariServer) ... ok
> test_upgrade_local_repo (TestAmbariServer.TestAmbariServer) ... ok
> test_upgrade_local_repo_nochange (TestAmbariServer.TestAmbariServer) ... ok
> test_upgrade_stack (TestAmbariServer.TestAmbariServer) ... ok
> test_write_property (TestAmbariServer.TestAmbariServer) ... ok
> test_checkServerReachability (TestSetupAgent.TestSetupAgent) ... ok
> test_configureAgent (TestSetupAgent.TestSetupAgent) ... ok
> test_execOsCommand (TestSetupAgent.TestSetupAgent) ... ok
> test_findNearestAgentPackageVersion (TestSetupAgent.TestSetupAgent) ... ok
> test_findNearestAgentPackageVersionSuse (TestSetupAgent.TestSetupAgent) ... ok
> test_getAvaliableAgentPackageVersions (TestSetupAgent.TestSetupAgent) ... ok
> test_getAvaliableAgentPackageVersionsSuse (TestSetupAgent.TestSetupAgent) ... ok
> test_installAgent (TestSetupAgent.TestSetupAgent) ... ok
> test_installAgentSuse (TestSetupAgent.TestSetupAgent) ... ok
> test_isAgentPackageAlreadyInstalled (TestSetupAgent.TestSetupAgent) ... ok
> test_is_suse (TestSetupAgent.TestSetupAgent) ... ok
> test_returned_optimal_version_is_default (TestSetupAgent.TestSetupAgent) ... ok
> test_returned_optimal_version_is_initial (TestSetupAgent.TestSetupAgent) ... ok
> test_returned_optimal_version_is_initial_on_suse (TestSetupAgent.TestSetupAgent) ... ok
> test_returned_optimal_version_is_nearest_on_suse (TestSetupAgent.TestSetupAgent) ... bash: zypper: command not found
> ok
> test_runAgent (TestSetupAgent.TestSetupAgent) ... ok
> test_setup_agent_main (TestSetupAgent.TestSetupAgent) ... log
> Log not found
> log
> ok
> test_PBootstrap (TestBootstrap.TestBootstrap) ... ok
> test_SCP (TestBootstrap.TestBootstrap) ... ok
> test_SSH (TestBootstrap.TestBootstrap) ... ok
> test_agent_setup_command_without_project_version (TestBootstrap.TestBootstrap) ... ok
> test_bootstrap_main (TestBootstrap.TestBootstrap) ... ok
> test_changePasswordFileModeOnHost (TestBootstrap.TestBootstrap) ... ok
> test_checkSudoPackage (TestBootstrap.TestBootstrap) ... ok
> test_copyNeededFiles (TestBootstrap.TestBootstrap) ... ok
> test_copyOsCheckScript (TestBootstrap.TestBootstrap) ... ok
> test_copyPasswordFile (TestBootstrap.TestBootstrap) ... ok
> test_createDoneFile (TestBootstrap.TestBootstrap) ... ok
> test_deletePasswordFile (TestBootstrap.TestBootstrap) ... ok
> test_generateRandomFileName (TestBootstrap.TestBootstrap) ... ok
> test_getAmbariPort (TestBootstrap.TestBootstrap) ... ok
> test_getOsCheckScript (TestBootstrap.TestBootstrap) ... ok
> test_getOsCheckScriptRemoteLocation (TestBootstrap.TestBootstrap) ... ok
> test_getRemoteName (TestBootstrap.TestBootstrap) ... ok
> test_getRepoDir (TestBootstrap.TestBootstrap) ... ok
> test_getRepoFile (TestBootstrap.TestBootstrap) ... ok
> test_getRunSetupCommand (TestBootstrap.TestBootstrap) ... ok
> test_getRunSetupWithPasswordCommand (TestBootstrap.TestBootstrap) ... ok
> test_getSetupScript (TestBootstrap.TestBootstrap) ... ok
> test_host_log (TestBootstrap.TestBootstrap) ... ok
> test_interruptBootstrap (TestBootstrap.TestBootstrap) ... ok
> test_is_suse (TestBootstrap.TestBootstrap) ... ok
> test_run (TestBootstrap.TestBootstrap) ... ok
> test_runOsCheckScript (TestBootstrap.TestBootstrap) ... ok
> test_runSetupAgent (TestBootstrap.TestBootstrap) ... ok
> test_run_setup_agent_command_ends_with_project_version (TestBootstrap.TestBootstrap) ... ok
> test_try_to_execute (TestBootstrap.TestBootstrap) ... ok
> test_add_yarn_mr (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_backup_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_delete_mr (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_get_and_parse_properties (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_install_yarn_mr2 (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_no_hbase (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_print_only (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_rename_all_properties (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_save_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_save_mr_mapping (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_tags_count (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_update_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_update_single_configs (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_update_with_append (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> test_update_without_append (TestUpgradeScript_HDP2.TestUpgradeHDP2Script) ... ok
> 
> ----------------------------------------------------------------------
> Ran 173 tests in 3.006s
> 
> OK
> 
> Process finished with exit code 0
> ***************************************************************************************************
> 
> /usr/bin/python2.6 /home/vtkhir/projects/ACTUAL-AMBARI/incubator-ambari/ambari-agent/src/test/python/unitTests.py
> test_extract (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
> test_read_all_stack_versions (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
> test_read_stack_version (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
> test_touch_file (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
> test_write_stack_version (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ... ok
> test_install_packages (TestScript.TestScript) ... ok
> test_structured_out (TestScript.TestScript) ... ok
> test_download_source_get_content_cache_existent (TestContentSources.TestContentSources) ... ok
> test_download_source_get_content_cache_existent_md5_match (TestContentSources.TestContentSources) ... ok
> test_download_source_get_content_cache_existent_md5_unmatch (TestContentSources.TestContentSources) ... ok
> test_download_source_get_content_cache_new (TestContentSources.TestContentSources) ... ok
> test_download_source_get_content_nocache (TestContentSources.TestContentSources) ... ok
> test_download_source_init_existent_download_directory (TestContentSources.TestContentSources) ... ok
> test_download_source_init_nonexistent_download_directory (TestContentSources.TestContentSources) ... ok
> test_inline_template (TestContentSources.TestContentSources) ... ok
> test_static_file_absolute_path (TestContentSources.TestContentSources) ... ok
> test_static_file_relative_path (TestContentSources.TestContentSources) ... ok
> test_template_imports (TestContentSources.TestContentSources) ... ok
> test_template_loader (TestContentSources.TestContentSources) ... ok
> test_template_loader_absolute_path (TestContentSources.TestContentSources) ... ok
> test_template_loader_arguments (TestContentSources.TestContentSources) ... ok
> test_template_loader_fail (TestContentSources.TestContentSources) ... ok
> test_clean (TestProcessHelper.TestProcessHelper) ... ok
> test_restartAgent (TestProcessHelper.TestProcessHelper) ... ok
> test_stopAgent (TestProcessHelper.TestProcessHelper) ... ok
> test_main (TestAmbariAgent.TestAmbariAgent) ... ok
> test_action_create_existent (TestUserResource.TestUserResource) ... ok
> test_action_create_nonexistent (TestUserResource.TestUserResource) ... ok
> test_action_delete (TestUserResource.TestUserResource) ... ok
> test_attribute_comment (TestUserResource.TestUserResource) ... ok
> test_attribute_gid (TestUserResource.TestUserResource) ... ok
> test_attribute_groups (TestUserResource.TestUserResource) ... ok
> test_attribute_home (TestUserResource.TestUserResource) ... ok
> test_attribute_password (TestUserResource.TestUserResource) ... ok
> test_attribute_shell (TestUserResource.TestUserResource) ... ok
> test_attribute_uid (TestUserResource.TestUserResource) ... ok
> test_do_cleanup_all (TestHostCleanup.TestHostCleanup) ... ok
> test_do_cleanup_default (TestHostCleanup.TestHostCleanup) ... ok
> test_do_cleanup_with_skip (TestHostCleanup.TestHostCleanup) ... ok
> test_do_delete_by_owner (TestHostCleanup.TestHostCleanup) ... ok
> test_do_delete_users (TestHostCleanup.TestHostCleanup) ... ok
> test_do_earse_packages (TestHostCleanup.TestHostCleanup) ... ok
> test_do_erase_alternatives (TestHostCleanup.TestHostCleanup) ... ok
> test_find_repo_files_for_repos (TestHostCleanup.TestHostCleanup) ... ok
> test_options (TestHostCleanup.TestHostCleanup) ... ok
> test_options_silent (TestHostCleanup.TestHostCleanup) ... ok
> test_read_host_check_file (TestHostCleanup.TestHostCleanup) ... ok
> test_read_host_check_file_with_content (TestHostCleanup.TestHostCleanup) ... ok
> test_setup_centos (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
> test_setup_suse (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
> test_stop_centos (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
> test_stop_suse (TestMonitorWebserverResource.TestMonitorWebserverResource) ... ok
> test_put_and_generate (TestCommandStatusDict.TestCommandStatusDict) ... ok
> test_check_web_ui (TestCheckWebUI.TestMain) ... ok
> test_execution_results (TestPythonExecutor.TestPythonExecutor) ... ok
> test_is_successfull (TestPythonExecutor.TestPythonExecutor) ... ok
> test_python_command (TestPythonExecutor.TestPythonExecutor) ... ok
> test_watchdog_1 (TestPythonExecutor.TestPythonExecutor) ... ok
> test_watchdog_2 (TestPythonExecutor.TestPythonExecutor) ... ok
> test_installAndConfigAction (TestAgentActions.TestAgentActions) ... ok
> test_startAndStopAction (TestAgentActions.TestAgentActions) ... ok
> test_changeUid (TestShell.TestShell) ... ok
> test_kill_process_with_children (TestShell.TestShell) ... ok
> test_shellRunner_run (TestShell.TestShell) ... ok
> test_action_install_rhel (TestPackageResource.TestPackageResource) ... ok
> test_action_install_suse (TestPackageResource.TestPackageResource) ... ok
> test_action_install_version_attr (TestPackageResource.TestPackageResource) ... ok
> test_action_remove_rhel (TestPackageResource.TestPackageResource) ... ok
> test_action_remove_suse (TestPackageResource.TestPackageResource) ... ok
> test_write_host_check_report (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
> test_write_host_check_report_empty (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
> test_write_host_check_report_really_empty (TestHostCheckReportFileHandler.TestHostCheckReportFileHandler) ... ok
> test_build (TestLiveStatus.TestLiveStatus) ... ok
> test_build_predefined (TestLiveStatus.TestLiveStatus) ... ok
> test_dump_command_to_json (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_requestComponentStatus (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_resolve_hook_script_path (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_resolve_script_path (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_runCommand (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_runCommand_custom_action (TestCustomServiceOrchestrator.TestCustomServiceOrchestrator) ... ok
> test_attribute_command_escaping (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_command_one_line (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_creates (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_cwd (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_environment (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_group (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_logoutput (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_path (TestExecuteResource.TestExecuteResource) ... ok
> test_attribute_try_sleep_tries (TestExecuteResource.TestExecuteResource) ... ok
> test_CachedHTTPSConnection_connect (TestSecurity.TestSecurity) ... ok
> test_VerifiedHTTPSConnection_connect (TestSecurity.TestSecurity) ... ok
> test_Verified_HTTPSConnection_non_secure_connect (TestSecurity.TestSecurity) ... ok
> test_Verified_HTTPSConnection_two_way_ssl_connect (TestSecurity.TestSecurity) ... ok
> test_checkCertExists (TestSecurity.TestSecurity) ... ok
> test_forceClear (TestSecurity.TestSecurity) ... ok
> test_genAgentCrtReq (TestSecurity.TestSecurity) ... ok
> test_getAgentCrtName (TestSecurity.TestSecurity) ... ok
> test_getAgentCrtReqName (TestSecurity.TestSecurity) ... ok
> test_getAgentKeyName (TestSecurity.TestSecurity) ... ok
> test_getSrvrCrtName (TestSecurity.TestSecurity) ... ok
> test_initSecurity (TestSecurity.TestSecurity) ... ok
> test_loadSrvrCrt (TestSecurity.TestSecurity) ... ok
> test_reqSignCrt (TestSecurity.TestSecurity) ... ok
> test_request (TestSecurity.TestSecurity) ... ok
> test_get_hook_base_dir (TestFileCache.TestFileCache) ... ok
> test_get_service_base_dir (TestFileCache.TestFileCache) ... ok
> test_action_create_dir_exist (TestFileResource.TestFileResource) ... ok
> test_action_create_non_existent_file (TestFileResource.TestFileResource) ... ok
> test_action_create_parent_dir_non_exist (TestFileResource.TestFileResource) ... ok
> test_action_create_replace (TestFileResource.TestFileResource) ... ok
> test_action_delete (TestFileResource.TestFileResource) ... ok
> test_action_delete_is_directory (TestFileResource.TestFileResource) ... ok
> test_attribute_backup (TestFileResource.TestFileResource) ... ok
> test_attribute_path (TestFileResource.TestFileResource) ... ok
> test_attribute_replace (TestFileResource.TestFileResource) ... ok
> test_ensure_metadata (TestFileResource.TestFileResource) ... ok
> test_ActionQueueStartStop (TestActionQueue.TestActionQueue) ... ok
> test_command_execution_depending_on_command_format (TestActionQueue.TestActionQueue) ... ok
> test_determine_command_format_version (TestActionQueue.TestActionQueue) ... ok
> test_execute_command (TestActionQueue.TestActionQueue) ... ok
> test_execute_status_command (TestActionQueue.TestActionQueue) ... ok
> test_process_command (TestActionQueue.TestActionQueue) ... ok
> test_bind_signal_handlers (TestMain.TestMain) ... ok
> test_daemonize_and_stop (TestMain.TestMain) ... ok
> test_main (TestMain.TestMain) ... ok
> test_perform_prestart_checks (TestMain.TestMain) ... ok
> test_resolve_ambari_config (TestMain.TestMain) ... ok
> test_setup_logging (TestMain.TestMain) ... ok
> test_signal_handler (TestMain.TestMain) ... ok
> test_update_log_level (TestMain.TestMain) ... ok
> test_dead (TestStatusCheck.TestStatusCheck) ... ok
> test_dont_relog_serToPidDict (TestStatusCheck.TestStatusCheck) ... ok
> test_live (TestStatusCheck.TestStatusCheck) ... ok
> test_live_if_multiple_pids (TestStatusCheck.TestStatusCheck) ... ok
> test_no_user_mapping (TestStatusCheck.TestStatusCheck) ... ok
> test_registration_build (TestRegistration.TestRegistration) ... 18
> ok
> test_hostname (TestHostname.TestHostname) ... ok
> test_hostname_override (TestHostname.TestHostname) ... ok
> test_public_hostname_override (TestHostname.TestHostname) ... ok
> test_build (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_condense_bad2 (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_condense_bad3 (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_condense_good (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_configure_environ (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_isJavaAvailable (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_overwrite_repos (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_run_command (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_watchdog_1 (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_watchdog_2 (TestPuppetExecutor.TestPuppetExecutor) ... ok
> test_read_empty (TestActualConfigHandler.TestActualConfigHandler) ... ok
> test_read_write (TestActualConfigHandler.TestActualConfigHandler) ... ok
> test_read_write_component (TestActualConfigHandler.TestActualConfigHandler) ... ok
> test_addToQueue (TestController.TestController) ... ok
> test_certSigningFailed (TestController.TestController) ... ok
> test_heartbeatWithServer (TestController.TestController) ... ok
> test_registerAndHeartbeat (TestController.TestController) ... ok
> test_registerAndHeartbeatWithException (TestController.TestController) ... ok
> test_registerWithServer (TestController.TestController) ... ok
> test_repeatRegistration (TestController.TestController) ... ok
> test_restartAgent (TestController.TestController) ... ok
> test_run (TestController.TestController) ... ok
> test_sendRequest (TestController.TestController) ... ok
> test_cleanup_remove_error (TestDataCleaner.TestDataCleaner) ... ok
> test_cleanup_success (TestDataCleaner.TestDataCleaner) ... ok
> test_init_success (TestDataCleaner.TestDataCleaner) ... ok
> test_init_warn (TestDataCleaner.TestDataCleaner) ... ok
> test_cleanByTemplate (TestGrep.TestGrep) ... ok
> test_filterMarkup (TestGrep.TestGrep) ... ok
> test_grep_all (TestGrep.TestGrep) ... ok
> test_grep_empty_string (TestGrep.TestGrep) ... ok
> test_grep_few_lines (TestGrep.TestGrep) ... ok
> test_grep_many_lines (TestGrep.TestGrep) ... ok
> test_grep_no_result (TestGrep.TestGrep) ... ok
> test_tail_all (TestGrep.TestGrep) ... ok
> test_tail_few_lines (TestGrep.TestGrep) ... ok
> test_tail_many_lines (TestGrep.TestGrep) ... ok
> test_tail_no_lines (TestGrep.TestGrep) ... ok
> test_run (TestPuppetExecutorManually.TestPuppetExecutor) ... ok
> test_init_success (TestPingPortListener.TestPingPortListener) ... ok
> test_init_warn (TestPingPortListener.TestPingPortListener) ... ok
> test_analyze_yum_output (TestHostInfo.TestHostInfo) ... ok
> test_analyze_yum_output_err (TestHostInfo.TestHostInfo) ... ok
> test_analyze_zypper_out (TestHostInfo.TestHostInfo) ... ok
> test_checkFolders (TestHostInfo.TestHostInfo) ... ok
> test_checkIptables (TestHostInfo.TestHostInfo) ... ok
> test_checkLiveServices (TestHostInfo.TestHostInfo) ... ok
> test_checkUsers (TestHostInfo.TestHostInfo) ... ok
> test_dirType (TestHostInfo.TestHostInfo) ... ok
> test_etcAlternativesConf (TestHostInfo.TestHostInfo) ... ok
> test_getReposToRemove (TestHostInfo.TestHostInfo) ... ok
> test_hadoopVarLogCount (TestHostInfo.TestHostInfo) ... ok
> test_hadoopVarRunCount (TestHostInfo.TestHostInfo) ... ok
> test_hostinfo_register (TestHostInfo.TestHostInfo) ... ok
> test_hostinfo_register_suse (TestHostInfo.TestHostInfo) ... ok
> test_javaProcs (TestHostInfo.TestHostInfo) ... ok
> test_osdiskAvailableSpace (TestHostInfo.TestHostInfo) ... ok
> test_perform_package_analysis (TestHostInfo.TestHostInfo) ... ok
> test_build (TestHeartbeat.TestHeartbeat) ... ok
> test_build_long_result (TestHeartbeat.TestHeartbeat) ... ok
> test_heartbeat_host_check_no_cmd (TestHeartbeat.TestHeartbeat) ... ok
> test_heartbeat_no_host_check_cmd_in_queue (TestHeartbeat.TestHeartbeat) ... ok
> test_no_mapping (TestHeartbeat.TestHeartbeat) ... ok
> test_action_create_existent (TestGroupResource.TestGroupResource) ... ok
> test_action_create_fail (TestGroupResource.TestGroupResource) ... ok
> test_action_create_nonexistent (TestGroupResource.TestGroupResource) ... ok
> test_action_remove (TestGroupResource.TestGroupResource) ... ok
> test_action_remove_fail (TestGroupResource.TestGroupResource) ... ok
> test_build (TestHardware.TestHardware) ... ok
> test_extractMountInfo (TestHardware.TestHardware) ... ok
> test_facterDataIfConfigOutput (TestHardware.TestHardware) ... ok
> test_facterMemInfoOutput (TestHardware.TestHardware) ... ok
> test_fqdnDomainHostname (TestHardware.TestHardware) ... ok
> test_uptimeSecondsHoursDays (TestHardware.TestHardware) ... ok
> test_checkURL (TestNetUtil.TestNetUtil) ... ok
> test_try_to_connect (TestNetUtil.TestNetUtil) ... ok
> test_action_create_failed_due_to_file_exists (TestLinkResource.TestLinkResource) ... ok
> test_action_create_hardlink_clean_create (TestLinkResource.TestLinkResource) ... ok
> test_action_create_hardlink_target_doesnt_exist (TestLinkResource.TestLinkResource) ... ok
> test_action_create_hardlink_target_is_dir (TestLinkResource.TestLinkResource) ... ok
> test_action_create_relink (TestLinkResource.TestLinkResource) ... ok
> test_action_create_symlink_clean_create (TestLinkResource.TestLinkResource) ... ok
> test_action_delete (TestLinkResource.TestLinkResource) ... ok
> testInstallRepos (TestRepoInstaller.TestRepoInstaller) ... generate_repo_manifests result: <MagicMock name='generateFiles()' id='35314960'>
> ok
> test_generate_files (TestRepoInstaller.TestRepoInstaller) ... ok
> test_prepare_repos_info (TestRepoInstaller.TestRepoInstaller) ... ok
> test_generation (TestCertGeneration.TestCertGeneration) ... Generating a 1024 bit RSA private key
> ...............................++++++
> ..................++++++
> writing new private key to '/tmp/tmpjpWqV5/localhost.localdomain.key'
> -----
> ok
> testConvertMappedRangeToList (TestManifestGenerator.TestManifestGenerator) ... ok
> testConvertRangeToList (TestManifestGenerator.TestManifestGenerator) ... ok
> testEscape (TestManifestGenerator.TestManifestGenerator) ... ok
> testGenerateManifest (TestManifestGenerator.TestManifestGenerator) ... ok
> testWriteImports (TestManifestGenerator.TestManifestGenerator) ... ok
> test_writeHostAttributes (TestManifestGenerator.TestManifestGenerator) ... ok
> test_writeNodes (TestManifestGenerator.TestManifestGenerator) ... ok
> test_writeNodes_failed (TestManifestGenerator.TestManifestGenerator) ... ok
> test_writeTasks (TestManifestGenerator.TestManifestGenerator) ... ok
> 
> ----------------------------------------------------------------------
> Ran 235 tests in 12.964s
> 
> OK
> 
> Process finished with exit code 0
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>