Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13080

Log a WARN/ERROR when invalid blueprint is POST'ed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2
    • blueprints
    • None

    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:

      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"
      }
      

      The error is reported back to the caller but it should also be logged to the server log to make it easier to debug.

      Attachments

        1. AMBARI-13080.patch
          1 kB
          Sumit Mohanty

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: