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

Hadoop QA commented on AMBARI-17626:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12816874/AMBARI-17626.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new 
or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:red}-1 core tests{color}.  The patch failed these unit tests in 
ambari-server:

                  
org.apache.ambari.server.controller.internal.ProvisionClusterRequestTest
                  org.apache.ambari.server.state.ServicePropertiesTest

Test results: 
https://builds.apache.org/job/Ambari-trunk-test-patch/7746//testReport/
Console output: 
https://builds.apache.org/job/Ambari-trunk-test-patch/7746//console

This message is automatically generated.

> Blueprint registration step uses wrong format for property-attributes in 
> Configuration
> --------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17626
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17626
>             Project: Ambari
>          Issue Type: Bug
>          Components: blueprints
>    Affects Versions: trunk
>            Reporter: Keta Patel
>            Assignee: Keta Patel
>         Attachments: AMBARI-17626.patch, 
> cluster_with_defect_installed_from_blueprint.tiff, 
> cluster_with_fix_insatlled_from_blueprint.tiff, 
> original_cluster_used_to_create_blueprint.tiff
>
>
> Blueprints make use of a population strategy in the registration step to 
> create JSON objects for properties and property-attributes. These properties 
> and property-attributes get stored in the database (DB) in the 
> "clusterconfig" table under "config_data" and "config_attributes" 
> respectively. Format of these JSON objects is critical as the UI parses these 
> objects assuming them to be in a certain format.
> At present property-attributes like "final" get stored in "clusterconfig" 
> table in the format shown in attachment 
> "original_cluster_used_to_create_blueprint.tiff".
> i.e. "final": {"attr1":"val1", "attr2":"val2"}
> When a new cluster is to be installed using a blueprint, after the blueprint 
> is registered and the new cluster is installed using the registered 
> blueprint, the format of "property-attributes" is as shown in attachment 
> "cluster_with_defect_installed_from_blueprint.tiff".
> i.e. "attr1":{"final":"val1"}, "attr2":{"final":"val2"}, 
> "final":{"attr1":"val1", "attr2":"val2"}
> The population strategy is responsible for the "attr1":{"final":"val1"} and 
> "attr2":{"final":"val2"}.
> The reason for "final":{"attr1":"val1", "attr2":"val2"} is because of a merge 
> with the Parent Configuration during blueprint registration. This Parent 
> Configuration comes from Stack using the XML files of the service properties. 
> Because of this "final" attribute, the UI still shows the properties 
> correctly and hence it went undetected. 
> Proposed fix involves correcting the population strategy so that the 
> attributes are placed in the correct format. After the fix, the new cluster 
> installed via blueprint shows "property-attributes" as shown in attachment
> "cluster_with_fix_insatlled_from_blueprint.tiff"
> i.e. "final":{"attr1":"val1", "attr2":"val2"}



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

Reply via email to