ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8549) Rolling Upgrade: ClusterStackVersion should display only one repository version
Date Mon, 08 Dec 2014 21:08:13 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-8549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14238469#comment-14238469
] 

Hudson commented on AMBARI-8549:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1133 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1133/])
AMBARI-8549. Rolling Upgrade: ClusterStackVersion should display only one repository version
(dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9053513f66023e6d062f94e3df00e9de1791a9f0)
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterStackVersionService.java
* ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostStackVersionResourceProvider.java


> Rolling Upgrade: ClusterStackVersion should display only one repository version
> -------------------------------------------------------------------------------
>
>                 Key: AMBARI-8549
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8549
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8549.2.patch, AMBARI-8549.3.patch, AMBARI-8549.patch
>
>
> for now cluster stack version resource contains all created repository versions:
> {code}
> "href": "http://h1:8080/api/v1/clusters/1/stack_versions?fields=repository_versions/*",
>     "items": [
>         {
>             "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1",
>             "ClusterStackVersions": {
>                 "cluster_name": "1",
>                 "id": 1,
>                 "stack": "HDP",
>                 "version": "2.2"
>             },
>             "repository_versions": [
>                 {
>                     "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1/repository_versions/1",
>                     "RepositoryVersions": {
>                         "display_name": "HDP 2.2.0",
>                         "id": 1,
>                         "repository_version": "2.2.0.1-885",
>                         "stack_name": "HDP",
>                         "stack_version": "2.2",
>                         "upgrade_pack": "upgrade-2.2"
>                     }
>                  },
>                 {
>                     "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1/repository_versions/2",
>                     "RepositoryVersions": {
>                         "display_name": "HDP 2.2.1",
>                         "id": 2,
>                         "repository_version": "2.2.1.1-885",
>                         "stack_name": "HDP",
>                         "stack_version": "2.2",
>                         "upgrade_pack": "upgrade-2.2"
>                     }
>                 }
>             ]
>         }
>     ]
> }
> {code}
> but each cluster stack version sould contain only 1 repository version:
> {code}
> "href": "http://h1:8080/api/v1/clusters/1/stack_versions?fields=repository_versions/*"
>     "items": [
>         {
>             "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1",
>             "ClusterStackVersions": {
>                 "cluster_name": "1",
>                 "id": 1,
>                 "stack": "HDP",
>                 "version": "2.2"
>             },
>             "repository_versions": [
>                 {
>                     "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1/repository_versions/1",
>                     "RepositoryVersions": {
>                         "display_name": "HDP 2.2.0",
>                         "id": 1,
>                         "repository_version": "2.2.0.1-885",
>                         "stack_name": "HDP",
>                         "stack_version": "2.2",
>                         "upgrade_pack": "upgrade-2.2"
>                     }
>                  }
>             ]
>         }
>         {
>             "href": "http://h1:8080/api/v1/clusters/1/stack_versions/2",
>             "ClusterStackVersions": {
>                 "cluster_name": "1",
>                 "id": 2,
>                 "stack": "HDP",
>                 "version": "2.2"
>             },
>             "repository_versions": [
>                 {
>                     "href": "http://h1:8080/api/v1/clusters/1/stack_versions/1/repository_versions/2",
>                     "RepositoryVersions": {
>                         "display_name": "HDP 2.2.1",
>                         "id": 2,
>                         "repository_version": "2.2.1.1-885",
>                         "stack_name": "HDP",
>                         "stack_version": "2.2",
>                         "upgrade_pack": "upgrade-2.2"
>                     }
>                 }
>             ]
>         }
>     ]
> }
> {code}



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

Mime
View raw message