You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Lav Jain (JIRA)" <ji...@apache.org> on 2016/01/08 00:48:39 UTC

[jira] [Commented] (AMBARI-14582) Adding custom repository gives 404 error

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

Lav Jain commented on AMBARI-14582:
-----------------------------------

+ [~mithmatt]
[~ncole] Would you like to take a look?

> Adding custom repository gives 404 error
> ----------------------------------------
>
>                 Key: AMBARI-14582
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14582
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: trunk, 2.2.0
>            Reporter: Lav Jain
>            Priority: Minor
>
> This JIRA is follow-up to https://issues.apache.org/jira/browse/AMBARI-14259
> Adding repo using PUT API gives 404 (although it looks the repo was added)
> *Method: PUT*
> *URL:* {{http://ip-10-32-36-114.ore1.vpc.pivotal.io:8080/api/v1/stacks/PHD/versions/3.3/repository_versions/1}}
> *Headers:*
> {noformat}
> Authorization: 'Basic YWRtaW46YWRtaW4='
> X-Requested-By: ambari
> {noformat}
> *Payload:*
> {noformat}
> {"operating_systems": [{"repositories": [{"Repositories": {"repo_id": "PHD-3.3.2.0", "base_url": "http://ip-10-32-36-114.ore1.vpc.pivotal.io/PHD-3.3.2.0", "repo_name": "PHD"}}, {"Repositories": {"repo_id": "PHD-UTILS-1.1.0.20", "base_url": "http://ip-10-32-36-114.ore1.vpc.pivotal.io/PHD-UTILS-1.1.0.20", "repo_name": "PHD-UTILS"}}, {"Repositories": {"repo_id": "PIVOTAL-HDB", "base_url": "http://ip-10-32-36-114.ore1.vpc.pivotal.io/PIVOTAL-HDB", "repo_name": "PIVOTAL-HDB"}}], "OperatingSystems": {"os_type": "redhat6"}}]}
> {noformat}
> *Response:*
> {noformat}
> {
>   "status" : 404,
>   "message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, stackName=PHD, stackVersion= 3.3, osType=redhat6, repoId= PIVOTAL-HDB"
> }
> {noformat}



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