ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17620) Syntax error in 'setup_ranger_xml.py' logging.
Date Fri, 08 Jul 2016 10:53:10 GMT

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

Andrew Onischuk commented on AMBARI-17620:
------------------------------------------

{noformat}
----------------------------------------------------------------------
Failed tests:
ERROR: test_validateStormRangerPluginConfigurations (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 3947, in test_validateStormRangerPluginConfigurations
    res = self.stackAdvisor.validateStormRangerPluginConfigurations(properties, recommendedDefaults,
configurations, 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.2/services/stack_advisor.py",
line 1508, in validateStormRangerPluginConfigurations
    servicesList = [service["StackServices"]["service_name"] for service in services["services"]]
KeyError: 'services'

----------------------------------------------------------------------
Total run:1016
Total errors:1
Total failures:0
ERROR
{noformat}

The failure is not related to the patch and reproduces even without. The patch didn't introduce
any new test failures.

> Syntax error in 'setup_ranger_xml.py' logging.
> ----------------------------------------------
>
>                 Key: AMBARI-17620
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17620
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17620.patch
>
>
> File "/var/lib/ambari-agent/cache/common-
> services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py", line 291, in
> copy_jdbc_connector  
> Please run 'ambari-server setup --jdbc-db=
> {db_name}
> \--jdbc-driver=
> {path_to_jdbc}
> on server host.'".format(params.db_flavor, params.jdk_location)  
> KeyError: 'db_name'



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

Mime
View raw message