[ 
https://issues.apache.org/jira/browse/AMBARI-22934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jayush Luniya updated AMBARI-22934:
-----------------------------------
    Fix Version/s:     (was: 2.7.1)
                   3.0.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: 3.0.0
>
>          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://<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