ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Di Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-22136) Enable server_action tasks defined in EU/RU upgrade pack xml files to take parameters
Date Thu, 05 Oct 2017 20:13:01 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-22136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16193567#comment-16193567
] 

Di Li commented on AMBARI-22136:
--------------------------------

Python failures in ambari-server

Failed tests:
ERROR: test_db_flavor_0_5_0_2_3 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/common-services/RANGER_KMS/test_db_flavor_config.py",
line 37, in test_db_flavor_0_5_0_2_3
    config_file=os.path.join(self.CONFIG_DIR, "ranger_kms_default.json"))
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 124, in executeScript
    script_module = imp.load_source(classname, script_path)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py",
line 30, in <module>
    from kms import kms, setup_kms_db, setup_java_patch, enable_kms_plugin, setup_kms_jce,
update_password_configs
ImportError: cannot import name update_password_configs

ERROR: test_db_flavor_0_4_0 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/common-services/RANGER/test_db_flavor_config.py",
line 37, in test_db_flavor_0_4_0
    config_file=os.path.join(self.CONFIG_DIR, "ranger_admin_default.json"))
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 124, in executeScript
    script_module = imp.load_source(classname, script_path)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 31, in <module>
    from setup_ranger_xml import setup_ranger_audit_solr, setup_ranger_admin_passwd_change,
update_password_configs
ImportError: cannot import name update_password_configs

ERROR: test_db_flavor_1_0_0_3_0 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/common-services/RANGER/test_db_flavor_config.py",
line 60, in test_db_flavor_1_0_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, "ranger_admin_default.json"))
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 159, in executeScript
    method(RMFTestCase.env, *command_args)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/main/python/resource_management/libraries/script/script.py",
line 120, in locking_configure
    original_configure(obj, *args, **kw)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/RANGER/1.0.0.3.0/package/scripts/ranger_admin.py",
line 115, in configure
    import params
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/main/resources/common-services/RANGER/1.0.0.3.0/package/scripts/params.py",
line 240, in <module>
    ranger_usersync_keystore_password = unicode(config["configurations"]["ranger-ugsync-site"]["ranger.usersync.keystore.password"])
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/main/python/resource_management/libraries/script/config_dictionary.py",
line 73, in __getattr__
    raise Fail("Configuration parameter '" + self.name + "' was not found in configurations
dictionary!")
Fail: Configuration parameter 'ranger-ugsync-site' was not found in configurations dictionary!

FAIL: test_unsupported_db_flavor_0_5_0_2_3 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/common-services/RANGER_KMS/test_db_flavor_config.py",
line 51, in test_unsupported_db_flavor_0_5_0_2_3
    self.fail("Expected 'Fail', got {}".format(e))
AssertionError: Expected 'Fail', got cannot import name update_password_configs

FAIL: test_unsupported_db_flavor_0_4_0 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/common-services/RANGER/test_db_flavor_config.py",
line 51, in test_unsupported_db_flavor_0_4_0
    self.fail("Expected 'Fail', got {}".format(e))
AssertionError: Expected 'Fail', got cannot import name update_password_configs

----------------------------------------------------------------------
Total run:1203
Total errors:3
Total failures:2

> Enable server_action tasks defined in EU/RU upgrade pack xml files to take parameters
> -------------------------------------------------------------------------------------
>
>                 Key: AMBARI-22136
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22136
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>    Affects Versions: trunk
>            Reporter: Di Li
>            Assignee: Di Li
>             Fix For: trunk
>
>         Attachments: AMBARI-22136.patch
>
>
> xsi:type="server_action"  tasks defined in EU/RU upgrade pack xml files currently can
only take impClass name, message, scope and summary as parameters.  Since no custom parameters
can pass in, each server_action is basically a special case where all stack/service information
must be hardcoded in the Java logic.
> This JIRA proposes a way to pass in custom parameters as shown below (multiple "parameter"
elements). This will allow developers to create general cased server_action that behaves accordingly
to parameters passed in.
> <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.VerifyExtensionLinkAction">
>           <parameter name='a'>a</parameter>
>           <parameter name='b'>b</parameter>
>           <parameter name='target_stack'>MyStack</parameter>
>           <parameter name='target_stack_version'>1.2</parameter>
>         </task>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message