incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ximo Guanter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-1866) Configurations that are applied to a service aren't returned in cluster.getDesiredConfigs()
Date Wed, 10 Apr 2013 15:22:15 GMT
Ximo Guanter created AMBARI-1866:
------------------------------------

             Summary: 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


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