Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 413781010B for ; Mon, 15 Apr 2013 07:18:17 +0000 (UTC) Received: (qmail 90590 invoked by uid 500); 15 Apr 2013 07:18:17 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 90530 invoked by uid 500); 15 Apr 2013 07:18:17 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 90512 invoked by uid 99); 15 Apr 2013 07:18:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 07:18:16 +0000 Date: Mon, 15 Apr 2013 07:18:16 +0000 (UTC) From: "Mahadev konar (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-1866) Configurations that are applied to a service aren't returned in cluster.getDesiredConfigs() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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