[ 
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://<ambari-server>: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"
>  }
>  },
>  {
>  "Repositories": {
>  "base_url": 
> "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu16";,
>  "repo_id": "HDP-UTILS-1.1.0.21",
>  "repo_name": "HDP-UTILS"
>  }
>  }
>  ]
>  }
>  ]
> }
> {code}
> Response: 200 OK
> Navigating to the UI results in GPL fields missing.
> Expected: Error to be thrown when trying to update repos without the GPL repo 
> when stack >= HDP-2.6.4.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to