Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.3.0
-
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": [] } ] }