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

API returns incorrect info about alerts

    XMLWordPrintableJSON

Details

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

    Description

      Steps:

      1. Deploy cluster.
      2. Stop some service.
      3. Wait for alerts appearing.

      Result: Hosts page button does not have counter with alerted hosts.
      "http://host:8080/api/v1/clusters/cl1?fields=Clusters/health_report,Clusters/total_hosts,alerts_summary_hosts&minimal_response=true":

      {
        "Clusters" : {
          "cluster_name" : "cl1",
          "health_report" : {
            "Host/stale_config" : 0,
            "Host/maintenance_state" : 0,
            "Host/host_state/HEALTHY" : 4,
            "Host/host_state/UNHEALTHY" : 0,
            "Host/host_state/HEARTBEAT_LOST" : 0,
            "Host/host_state/INIT" : 0,
            "Host/host_status/HEALTHY" : 0,
            "Host/host_status/UNHEALTHY" : 1,
            "Host/host_status/UNKNOWN" : 0,
            "Host/host_status/ALERT" : 3
          },
          "total_hosts" : 4,
          "version" : "HDP-2.3"
        },
        "alerts_summary_hosts" : {
          "CRITICAL" : 0,
          "OK" : 4,
          "UNKNOWN" : 0,
          "WARNING" : 0
        }
      }
      
      "CRITICAL" : 0,
      "WARNING" : 0
      

      Attachments

        1. AMBARI-13209.patch
          4 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: