Dmitry Lysnichenko created AMBARI-8549:
------------------------------------------
Summary: 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
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)