incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahadev konar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-1866) Configurations that are applied to a service aren't returned in cluster.getDesiredConfigs()
Date Mon, 15 Apr 2013 07:18:16 GMT

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

Mahadev konar commented on AMBARI-1866:
---------------------------------------

Ximo,
 The read/get api's are considered stable but the update/create API's are still under development.
They wil be exposed as stable API's in 1.3.0 release (coming in 4-6 weeks). Hope that helps.
                
> Configurations that are applied to a service aren't returned in cluster.getDesiredConfigs()
> -------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-1866
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1866
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>            Reporter: Ximo Guanter
>         Attachments: ambari.js, test.js
>
>
> h3.Repro
> Here's the symptom of this bug: if you create a cluster, add some configurations to it
(not as part of the desired_configs) and apply them (i.e. add them to desired_configs) to
a service, you will not be able to install the service. You get the error message {{has_key():
expects the first argument to be a hash, got \"\" which is of type String}} because the $configuration
variable is not being set in the generated site.pp
> These are basically the instructions in https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster
> h3. Technical details
> It seems the problem happens in line 2076 in AmbariManagementControllerImpl.java The
call to {{cluster.getDesiredConfigs()}} should be returning a {{DesiredConfig}} with no tag,
indicating that it is being overridden in the service, but this is not happening. An empty
set is returned, and even though the Service is correctly configured, no configuration gets
sent to the agent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message