ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17121) Unit-test failing coz of issue "YARN service check fails if there is no queue named 'default'"
Date Thu, 09 Jun 2016 15:43:21 GMT

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

Hudson commented on AMBARI-17121:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #5042 (See [https://builds.apache.org/job/Ambari-trunk-Commit/5042/])
AMBARI-17121 Unit-test failing coz of issue "YARN service check fails if (dsen: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b57a7cfa2ff4d2668dc421826ffaa84e8425d26a])
* ambari-server/src/test/python/stacks/2.1/configs/default.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default.json
* ambari-server/src/test/python/stacks/2.1/configs/secured.json
* ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
* ambari-server/src/test/python/stacks/2.0.6/configs/secured.json


> Unit-test failing coz of issue "YARN service check fails if there is no queue named 'default'"
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17121
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17121
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Sen
>            Priority: Blocker
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17121.patch, AMBARI-17121.patch.1, test-logs-17121.txt
>
>
> {code}
> ----------------------------------------------------------------------
> Failed tests:
> ERROR: test_validateYARNConfigurationsEnv (test_stack_advisor.TestHDP22StackAdvisor)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py",
line 3196, in test_validateYARNConfigurationsEnv
>     res = self.stackAdvisor.validateYARNEnvConfigurations(properties, recommendedDefaults,
configurations, '', '')
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/../../../../../main/resources/stacks/HDP/2.2/services/stack_advisor.py",
line 1504, in validateYARNEnvConfigurations
>     parentValidationProblems = super(HDP22StackAdvisor, self).validateYARNEnvConfigurations(properties,
recommendedDefaults, configurations, services, hosts)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/../../../../../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py",
line 1396, in validateYARNEnvConfigurations
>     capacity_scheduler_properties, received_as_key_value_pair = self.getCapacitySchedulerProperties(services)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/../../../../../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py",
line 1512, in getCapacitySchedulerProperties
>     if "capacity-scheduler" in services['configurations']:
> TypeError: string indices must be integers, not str
> ERROR: test_service_check_default (test_yarn_service_check.TestServiceCheck)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_yarn_service_check.py",
line 45, in test_service_check_default
>     checked_call_mocks = [(0, "some test text, appTrackingUrl=http:"
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 152, in executeScript
>     method(RMFTestCase.env, *command_args)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/YARN/2.1.0.2.0/package/scripts/service_check.py",
line 109, in service_check
>     yarn_distrubuted_shell_check_cmd = format(" ".join(yarn_distrubuted_shell_check_params))
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/main/python/resource_management/libraries/functions/format.py",
line 95, in format
>     return ConfigurationFormatter().format(format_string, args, **result)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/main/python/resource_management/libraries/functions/format.py",
line 59, in format
>     result_protected = self.vformat(format_string, args, all_params)
>   File "/usr/lib/python2.7/string.py", line 549, in vformat
>     result = self._vformat(format_string, args, kwargs, used_args, 2)
>   File "/usr/lib/python2.7/string.py", line 582, in _vformat
>     result.append(self.format_field(obj, format_spec))
>   File "/usr/lib/python2.7/string.py", line 599, in format_field
>     return format(value, format_spec)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/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 'service_check.queue.name' was not found in configurations
dictionary!
> ERROR: test_service_check_secured (test_yarn_service_check.TestServiceCheck)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_yarn_service_check.py",
line 77, in test_service_check_secured
>     checked_call_mocks = [(0, "some test text, appTrackingUrl=http:"
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 152, in executeScript
>     method(RMFTestCase.env, *command_args)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/YARN/2.1.0.2.0/package/scripts/service_check.py",
line 109, in service_check
>     yarn_distrubuted_shell_check_cmd = format(" ".join(yarn_distrubuted_shell_check_params))
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/main/python/resource_management/libraries/functions/format.py",
line 95, in format
>     return ConfigurationFormatter().format(format_string, args, **result)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/main/python/resource_management/libraries/functions/format.py",
line 59, in format
>     result_protected = self.vformat(format_string, args, all_params)
>   File "/usr/lib/python2.7/string.py", line 549, in vformat
>     result = self._vformat(format_string, args, kwargs, used_args, 2)
>   File "/usr/lib/python2.7/string.py", line 582, in _vformat
>     result.append(self.format_field(obj, format_spec))
>   File "/usr/lib/python2.7/string.py", line 599, in format_field
>     return format(value, format_spec)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/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 'service_check.queue.name' was not found in configurations
dictionary!
> ----------------------------------------------------------------------
> Total run:1055
> Total errors:3
> Total failures:0
> ERROR
> ack-ambari-mpack-1.0.0.1
> INFO: Processing artifact mystack-service-definitions of type service-definitions in
/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services
> INFO: Processing artifact mystack-stack-definitions of type stack-definitions in /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks
> INFO: Management pack mystack-ambari-mpack-1.0.0.1 successfully installed!
> INFO: Management pack mystack-ambari-mpack-1.0.0.1 successfully upgraded!
> Cluster primary/cluster OS family is aaa11 and local/current OS family is aaa11
> Cluster primary/cluster OS family is zzz_x77 and local/current OS family is ddd33
> Creating zip file...
> <MagicMock name='mock.__radd__().__add__()' id='139997149884624'>
> Creating zip file...
> <MagicMock name='mock.__radd__().__add__()' id='139997150737104'>
> <MagicMock name='mock.__radd__().__add__()' id='139997150737104'>
> StackAdvisor implementation for stack HDP1, version 2.0.6 was not found
> Returning DefaultStackAdvisor implementation
> StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded
> StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded
> Returning XYZ101StackAdvisor implementation
> INFO: Loading properties from /tmp/ambari.properties
> INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
> INFO: Loading properties from /tmp/ambari.properties
> INFO: Loading properties from /tmp/ambari.properties
> INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
> INFO: Loading properties from /tmp/ambari.properties
> INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
> INFO: Loading properties from /tmp/ambari.properties
> INFO: Loading properties from /tmp/ambari.properties
> WARNING: Multiple versions of jetty-client.jar found in java class path (jetty-client-9.jar
and jetty-client-8.1.17.v20150415.jar). 
>  Make sure that you include only one jetty-client.jar in the java class path 'None'.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 01:22 min
> [INFO] Finished at: 2016-06-08T08:07:45+00:00
> [INFO] Final Memory: 48M/481M
> [INFO] ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message