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

HostResourceProvider should include maintenance_state when a request is made directly with the host name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • None

    Description

      The property ** maintenance_state ** is not available in host response when making a request directly on the host instead of via the clusters.

      curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/hosts/c6403.ambari.apache.org

      The above query does not return maintenance_state.

      The following query does:
      http://c6403.ambari.apache.org:8080/api/v1/clusters/c1/hosts/c6403.ambari.apache.org

      Attachments

        1. rb45714.patch
          5 kB
          Nahappan Somasundaram

        Issue Links

          Activity

            People

              smnaha Nahappan Somasundaram
              smnaha Nahappan Somasundaram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: