You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Xi Wang (JIRA)" <ji...@apache.org> on 2016/02/26 23:12:18 UTC

[jira] [Created] (AMBARI-15209) UI Displays Incorrect Information On Host Repos Installed

Xi Wang created AMBARI-15209:
--------------------------------

             Summary: UI Displays Incorrect Information On Host Repos Installed
                 Key: AMBARI-15209
                 URL: https://issues.apache.org/jira/browse/AMBARI-15209
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.4.0
            Reporter: Xi Wang
            Assignee: Xi Wang
            Priority: Critical
             Fix For: 2.4.0


This Jira is to correct an issue seen on {{branch-dev-patch-upgrade}} which will be on trunk once the branch is merged in.

STR:
1) Install HDP 2.3 with ZooKeeper
2) Upgrade to HDP 2.4

You'll see that the UI show HDP 2.4 is both {{INSTALLED}} and {{CURRENT}} on all 3 hosts. The API, however, doesn't show that. It shows the correct states:

{code}
{
  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions?fields=*,repository_versions/*,repository_versions/operating_systems/repositories/*&_=1455918960053",
  "items": [
    {
      "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1",
      "ClusterStackVersions": {
        "cluster_name": "c1",
        "id": 1,
        "repository_version": 1,
        "stack": "HDP",
        "state": "INSTALLED",
        "version": "2.3",
        "host_states": {
          "CURRENT": [],
          "INSTALLED": [
            "c6403.ambari.apache.org",
            "c6401.ambari.apache.org",
            "c6402.ambari.apache.org"
          ],
          "INSTALLING": [],
          "INSTALL_FAILED": [],
          "NOT_REQUIRED": [],
          "OUT_OF_SYNC": []
        }
      },
      "repository_versions": [
        {
          "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1",
          "RepositoryVersions": {
            "display_name": "HDP-2.3.4.0-3248",
            "has_children": false,
            "id": 1,
            "parent_id": null,
            "repository_version": "2.3.4.0-3248",
            "stack_name": "HDP",
            "stack_version": "2.3",
            "type": "STANDARD"
          },
          "operating_systems": [
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/debian7",
              "OperatingSystems": {
                "os_type": "debian7",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/debian7/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/debian7/2.x/BUILDS/2.3.6.0-3560",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "debian7",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/debian7/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/debian6",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "debian7",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            },
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat6",
              "OperatingSystems": {
                "os_type": "redhat6",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat6/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://repo.ambari.apache.org/hdp/centos6/HDP-2.3.4.0-3248/",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat6",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat6/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat6",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            },
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat7",
              "OperatingSystems": {
                "os_type": "redhat7",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat7/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.3.6.0-3560",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat7",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos7",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat7",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            },
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/suse11",
              "OperatingSystems": {
                "os_type": "suse11",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/suse11/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/suse11sp3/2.x/BUILDS/2.3.6.0-3560",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "suse11",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/suse11/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/suse11sp3",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "suse11",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            },
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu12",
              "OperatingSystems": {
                "os_type": "ubuntu12",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu12/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu12/2.x/BUILDS/2.3.6.0-3560",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "ubuntu12",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu12/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "ubuntu12",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            },
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu14",
              "OperatingSystems": {
                "os_type": "ubuntu14",
                "repository_version_id": 1,
                "stack_name": "HDP",
                "stack_version": "2.3"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu14/repositories/HDP-2.3",
                  "Repositories": {
                    "base_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu14/2.x/BUILDS/2.3.6.0-3560",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "ubuntu14",
                    "repo_id": "HDP-2.3",
                    "repo_name": "HDP",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/1/repository_versions/1/operating_systems/ubuntu14/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "ubuntu14",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 1,
                    "stack_name": "HDP",
                    "stack_version": "2.3"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2",
      "ClusterStackVersions": {
        "cluster_name": "c1",
        "id": 2,
        "repository_version": 2,
        "stack": "HDP",
        "state": "CURRENT",
        "version": "2.4",
        "host_states": {
          "CURRENT": [
            "c6403.ambari.apache.org",
            "c6401.ambari.apache.org",
            "c6402.ambari.apache.org"
          ],
          "INSTALLED": [],
          "INSTALLING": [],
          "INSTALL_FAILED": [],
          "NOT_REQUIRED": [],
          "OUT_OF_SYNC": []
        }
      },
      "repository_versions": [
        {
          "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2/repository_versions/2",
          "RepositoryVersions": {
            "display_name": "2.4.0.0-86",
            "has_children": false,
            "id": 2,
            "parent_id": null,
            "repository_version": "2.4.0.0-86",
            "stack_name": "HDP",
            "stack_version": "2.4",
            "type": "STANDARD"
          },
          "operating_systems": [
            {
              "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2/repository_versions/2/operating_systems/redhat6",
              "OperatingSystems": {
                "os_type": "redhat6",
                "repository_version_id": 2,
                "stack_name": "HDP",
                "stack_version": "2.4"
              },
              "repositories": [
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2/repository_versions/2/operating_systems/redhat6/repositories/HDP-2.4",
                  "Repositories": {
                    "base_url": "http://repo.ambari.apache.org/hdp/centos6/HDP-2.4.0.0-86",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat6",
                    "repo_id": "HDP-2.4",
                    "repo_name": "HDP",
                    "repository_version_id": 2,
                    "stack_name": "HDP",
                    "stack_version": "2.4"
                  }
                },
                {
                  "href": "http://localhost:8080/api/v1/clusters/c1/stack_versions/2/repository_versions/2/operating_systems/redhat6/repositories/HDP-UTILS-1.1.0.20",
                  "Repositories": {
                    "base_url": "http://repo.ambari.apache.org/hdp/centos6/HDP-UTILS-1.1.0.20",
                    "default_base_url": "",
                    "latest_base_url": "",
                    "mirrors_list": "",
                    "os_type": "redhat6",
                    "repo_id": "HDP-UTILS-1.1.0.20",
                    "repo_name": "HDP-UTILS",
                    "repository_version_id": 2,
                    "stack_name": "HDP",
                    "stack_version": "2.4"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)