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

Host creation Wizard failed HTTP request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.5
    • None
    • ambari-server, ambari-web
    • None

    Description

      When creating a new host with the "Add Host Wizard", I get an empty screen on the Slave / Client selection screen:

      I then noticed this is due to an error 400 to the API:

      URL: http://host:8080/api/v1/stacks/HDP/versions/2.6/validations

      Request Body:

       

      {"hosts":["host"],"services":[],"validate":"host_groups","recommendations":{"blueprint":{"host_groups":[{"name":"host-group-1","components":[{"name":"JOURNALNODE"},{"name":"ZKFC"},{"name":"GANGLIA_MONITOR"},{"name":"METRICS_MONITOR"},{"name":"LOGSEARCH_LOGFEEDER"},{"name":"HST_AGENT"},{"name":"KERBEROS_CLIENT"}]}]},"blueprint_cluster_binding":{"host_groups":[{"name":"host-group-1","hosts":[{"fqdn":"host"}]}]}}}

      (replaced the actual host by "host")

      Status Code: 400, Bad Request

      Response Body:

      Request body is not correct, error: java.util.LinkedHashSet cannot be cast to java.util.List

      I guess the json request created seems to be unexpected by the server.

      Attachments

        Activity

          People

            Unassigned Unassigned
            schanjan Jan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: