[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-07-09 Thread Ishan Bhatt (JIRA)


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

Ishan Bhatt commented on AMBARI-22934:
--

Moving it out to 2.7.1

> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.7.1
>
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu14",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu14";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu16",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP

[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-04-26 Thread Swapan Shridhar (JIRA)

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

Swapan Shridhar commented on AMBARI-22934:
--

Starting the release work for 2.6.0. 
Moved it to 2.7.0.

> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.6.2
>
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu14",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu14";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu16",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.6.0.3";,
>  "

[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-02-23 Thread Hudson (JIRA)

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

Hudson commented on AMBARI-22934:
-

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8773 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/8773/])
Reverts AMBARI-22934. [API] Updating current stack repo without GPL (github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=b78b61b1f092d5e68fc3f08396d533cd1d99d67a])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelper.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
* (delete) 
ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelperTest.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java


> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.6.2
>
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
>  

[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-02-23 Thread Hudson (JIRA)

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

Hudson commented on AMBARI-22934:
-

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #622 (See 
[https://builds.apache.org/job/Ambari-branch-2.6/622/])
Revert "AMBARI-22934. [API] Updating current stack repo without GPL (github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=89dfc60ea77877dc0213596930f9c83ae7c3317e])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelper.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelperTest.java


> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.6.2
>
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
>  "repo_id

[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-02-12 Thread Hudson (JIRA)

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

Hudson commented on AMBARI-22934:
-

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #8708 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/8708/])
AMBARI-22934. [API] Updating current stack repo without GPL repos in the 
(aonishuk: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=c414b2554ac47a2327f62da37ab2637ad128219b])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* (add) 
ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelperTest.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelper.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java


> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.6.2
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
> 

[jira] [Commented] (AMBARI-22934) [API] Updating current stack repo without GPL repos in the body does not throw any error

2018-02-12 Thread Hudson (JIRA)

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

Hudson commented on AMBARI-22934:
-

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #601 (See 
[https://builds.apache.org/job/Ambari-branch-2.6/601/])
AMBARI-22934. [API] Updating current stack repo without GPL repos in the 
(aonishuk: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=cad4b63ec782e34b2b9a77b0ee56f20602a198ab])
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelperTest.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/RepositoryVersionHelper.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java


> [API] Updating current stack repo without GPL repos in the body does not 
> throw any error
> 
>
> Key: AMBARI-22934
> URL: https://issues.apache.org/jira/browse/AMBARI-22934
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.6.2
>Reporter: Myroslav Papirkovskyi
>Assignee: Myroslav Papirkovskyi
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 2.6.2
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> # Install HDP 2.6.4.0 stack with Ambari 2.6.1
>  # Update the current repository versions with the following body on 
> ambari-2.6.1
> {code:java}
> PUT 
> http://:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1
> {
>  "operating_systems": [
>  {
>  "OperatingSystems": {
>  "os_type": "debian7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat6",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "redhat7",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse11",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "suse12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  },
>  {
>  "OperatingSystems": {
>  "os_type": "ubuntu12",
>  "ambari_managed_repositories": true
>  },
>  "repositories": [
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3";,
>  "repo_id": "HDP-2.6",
>  "repo_name": "HDP"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12";,
>  "rep