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

Hosts page: Filtering works incorrectly with multiple filters applied

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.2
    • Component/s: ambari-web
    • Labels:
      None

      Description

      On 1200 node cluster I enabled filter for alerts and then put in a hostname filter... which showed hosts that did not match the filter. (video attached).
      POST request:
      URL:

      /api/v1/clusters/perf/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,alerts_summary,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,host_components/HostRoles/desired_admin_state,Hosts/total_mem,stack_versions/HostStackVersions,stack_versions/repository_versions/RepositoryVersions/repository_version,stack_versions/repository_versions/RepositoryVersions/id,stack_versions/repository_versions/RepositoryVersions/display_name&minimal_response=true&page_size=10&from=0&sortBy=Hosts/host_name.as
      

      Data:

      {"RequestInfo":{"query":"page_size=10&from=0&alerts_summary/CRITICAL>0|alerts_summary/WARNING>0&Hosts/host_name.matches(.*23.*)"}}
      

      Response:

      {
        "itemTotal" : "308",
        "items" : [
          {
            "Hosts" : {
              "cpu_count" : 4,
              "host_name" : "perf-b-1.c.pramod-thangali.internal",
              "host_status" : "HEALTHY",
              "ip" : "10.240.0.4",
              "last_heartbeat_time" : 1455013064276,
              "maintenance_state" : "OFF",
              "ph_cpu_count" : 4,
              "public_host_name" : "perf-b-1.c.pramod-thangali.internal",
              "rack_info" : "/default-rack",
              "total_mem" : 15301028
            }...
      

        Attachments

        1. AMBARI-15025_branch-2.2.patch
          0.6 kB
          Oleg Nechiporenko
        2. AMBARI-15025.patch
          0.6 kB
          Oleg Nechiporenko

          Issue Links

            Activity

              People

              • Assignee:
                onechiporenko Oleg Nechiporenko
                Reporter:
                onechiporenko Oleg Nechiporenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: