ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-13080) Log a WARN/ERROR when invalid blueprint is POST'ed
Date Sat, 12 Sep 2015 19:27:45 GMT

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

Sumit Mohanty updated AMBARI-13080:
-----------------------------------
    Description: 
Currently, if a invalid blueprint is posted no error is logged. It makes it difficult to debug
issues.

For example, the following type of error is not reported in the log file.

The error I see is:
{code}
root@headnode0:/home/hdiuser# curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d @/tmp/spark.json
http://localhost:8080/api/v1/blueprints/bp1
{
  "status" : 400,
  "message" : "The component 'SPARK_CLIENT' in host group 'headnode0' is not valid for the
specified stack"
}
{code}



  was:
Currently, if a invalid blueprint is posted no error is logged. It makes it difficult to debug
issues.



> Log a WARN/ERROR when invalid blueprint is POST'ed
> --------------------------------------------------
>
>                 Key: AMBARI-13080
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13080
>             Project: Ambari
>          Issue Type: Bug
>          Components: blueprints
>    Affects Versions: 2.1.1
>            Reporter: Sumit Mohanty
>            Assignee: Sumit Mohanty
>            Priority: Critical
>             Fix For: 2.1.2
>
>         Attachments: AMBARI-13080.patch
>
>
> Currently, if a invalid blueprint is posted no error is logged. It makes it difficult
to debug issues.
> For example, the following type of error is not reported in the log file.
> The error I see is:
> {code}
> root@headnode0:/home/hdiuser# curl -u admin:admin -H "X-Requested-By: ambari" -X POST
-d @/tmp/spark.json http://localhost:8080/api/v1/blueprints/bp1
> {
>   "status" : 400,
>   "message" : "The component 'SPARK_CLIENT' in host group 'headnode0' is not valid for
the specified stack"
> }
> {code}



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

Mime
View raw message