You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2017/05/11 15:30:05 UTC

[jira] [Created] (AMBARI-20991) Fix Calculation of Cluster Repository State

Jonathan Hurley created AMBARI-20991:
----------------------------------------

             Summary: Fix Calculation of Cluster Repository State
                 Key: AMBARI-20991
                 URL: https://issues.apache.org/jira/browse/AMBARI-20991
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: trunk
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
             Fix For: trunk


The cluster version state is not taking into account the correct values for {{SERVICE}} and {{PATCH}} upgrades. When at least host is {{NOT_REQUIRED}}, the aggregate value is marked as {{INSTALLING}}. 

{code}
    {
      "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2",
      "ClusterStackVersions": {
        "cluster_name": "c1",
        "id": 2,
        "repository_version": 2,
        "stack": "HDP",
        "state": "INSTALLING",
        "version": "2.5",
        "host_states": {
          "CURRENT": [],
          "INIT": [],
          "INSTALLED": [
            "c6401.ambari.apache.org"
          ],
          "INSTALLING": [],
          "INSTALL_FAILED": [],
          "NOT_REQUIRED": [
            "c6402.ambari.apache.org",
            "c6403.ambari.apache.org"
          ],
          "OUT_OF_SYNC": []
        }
      }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)