ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7269) StackAdvisorResourceProvider ignores configurations with array type values
Date Fri, 12 Sep 2014 00:11:35 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-7269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Srimanth Gunturi updated AMBARI-7269:
-------------------------------------
    Attachment: AMBARI-7269.patch

Review at https://reviews.apache.org/r/25563/

> StackAdvisorResourceProvider ignores configurations with array type values
> --------------------------------------------------------------------------
>
>                 Key: AMBARI-7269
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7269
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 1.7.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-7269.patch
>
>
> Steps to reproduce:
> # Do POST request with {{"storm.zookeeper.servers"}} having array value to {{/api/v1/stacks/HDP/versions/2.1/validations}}:
> {code}
> {
>   "hosts": [
>     "c6401.ambari.apache.org"
>   ],
>   "services": [
>     "STORM"
>   ],
>   "validate": "configurations",
>   "recommendations": {
>     "blueprint": {
>       "host_groups": [
>         {
>           "name": "host-group-1",
>           "components": [
>             {
>               "name": "DRPC_SERVER"
>             },
>             {
>               "name": "STORM_UI_SERVER"
>             },
>             {
>               "name": "NIMBUS"
>             },
>             {
>               "name": "STORM_REST_API"
>             },
>             {
>               "name": "SUPERVISOR"
>             }
>           ]
>         }
>       ],
>       "configurations": {
>         "storm-site": {
>           "properties": {
>             "storm.zookeeper.servers": [
>               "c6401.ambari.apache.org"
>             ]
>           }
>         }
> 	  }
>     },
>     "blueprint_cluster_binding": {
>       "host_groups": [
>         {
>           "name": "host-group-1",
>           "hosts": [
>             {
>               "fqdn": "c6401.ambari.apache.org"
>             }
>           ]
>         }
>       ]
>     }
>   }
> }
> {code}
> # Check generated {{services.json}} - it has no configurations:
> {code}
> [root@ambari ambari-server]# cat /var/run/ambari-server/stack-recommendations/2/services.json
| grep '"configurations" : {' -A 4
>   "configurations" : {
>     "storm-site" : {
>       "properties" : { }
>     }
>   }
> {code}



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

Mime
View raw message