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

Web Client Displays Incorrect Host Version Counts For Installed Repos

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • ambari-web
    • None

    Description

      After creating and installing a repository, the web client is incorrectly displaying the counts of hosts for each repo (see attachment).

      STR:
      1) Register a new repo
      2) Install repo

      {
        "href": "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions?fields=*,repository_versions/*,repository_versions/operating_systems/repositories/*&_=1449885691901",
        "items": [
          {
            "href": "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions/1",
            "ClusterStackVersions": {
              "cluster_name": "c1",
              "id": 1,
              "repository_version": 1,
              "stack": "HDP",
              "state": "CURRENT",
              "version": "2.3",
              "host_states": {
                "CURRENT": [
                  "c6401.ambari.apache.org",
                  "c6402.ambari.apache.org",
                  "c6403.ambari.apache.org"
                ],
                "INSTALLED": [],
                "INSTALLING": [],
                "INSTALL_FAILED": [],
                "OUT_OF_SYNC": [],
                "UPGRADED": [],
                "UPGRADE_FAILED": [],
                "UPGRADING": []
              }
            },
            "repository_versions": []
          },
          {
            "href": "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions/51",
            "ClusterStackVersions": {
              "cluster_name": "c1",
              "id": 51,
              "repository_version": 51,
              "stack": "HDP",
              "state": "INSTALLED",
              "version": "2.3",
              "host_states": {
                "CURRENT": [],
                "INSTALLED": [
                  "c6401.ambari.apache.org",
                  "c6402.ambari.apache.org",
                  "c6403.ambari.apache.org"
                ],
                "INSTALLING": [],
                "INSTALL_FAILED": [],
                "OUT_OF_SYNC": [],
                "UPGRADED": [],
                "UPGRADE_FAILED": [],
                "UPGRADING": []
              }
            },
            "repository_versions": []
          }
        ]
      }
      

      Attachments

        1. AMBARI-14367.patch
          3 kB
          Andrii Tkach
        2. Capture_with_patch.PNG
          76 kB
          Andrii Tkach
        3. Capture.PNG
          336 kB
          Andrii Tkach
        4. Screen Shot 2015-12-11 at 8.59.26 PM.png
          49 kB
          Andrii Tkach

        Activity

          People

            atkach Andrii Tkach
            atkach Andrii Tkach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: