ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jun aoki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-13215) Adding a new repo through repository_version API does not add a new .repo on each node
Date Wed, 23 Sep 2015 21:28:04 GMT
jun aoki created AMBARI-13215:
---------------------------------

             Summary: Adding a new repo through repository_version API does not add a new
.repo on each node
                 Key: AMBARI-13215
                 URL: https://issues.apache.org/jira/browse/AMBARI-13215
             Project: Ambari
          Issue Type: Bug
            Reporter: jun aoki


We can hit a respository_versions API to add it in UI [1] but it would never be propagated
to each node as a .repo file. (Installing a component does not generate .repo files as oppose
to modify .repo files for modified values like URLs )

This was asked in the open source mailing list.
https://mail-archives.apache.org/mod_mbox/ambari-dev/201509.mbox/%3CCA%2BdeypH7OvWsC8HeY4QcJcj6Xpz2qzGZk78ZUf7c9VYjbHZoVA%40mail.gmail.com%3E


[1] repository_version rest API with a new repository called "SOME". This is adds it in the
UI
{code}
```
curl '
http://ip-10-32-36-172.ore1.vpc.pivotal.io:8080/api/v1/stacks/PHD/versions/3.3/repository_versions/1'
-X PUT -H 'Pragma: no-cache' -H 'Origin:
http://ip-10-32-36-172.ore1.vpc.pivotal.io:8080' -H 'Accept-Encoding: gzip,
deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8,et;q=0.6,ja;q=0.4' -H
'X-Requested-By: X-Requested-By' -H 'User-Agent: Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85
Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded;
charset=UTF-8' -H 'Accept: application/json, text/javascript, */*; q=0.01'
-H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H
'Cookie: __utma=105804546.1805197850.1436908328.1440795651.1441054079.4;
__utmc=105804546;
__utmz=105804546.1441054079.4.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided);
_ga=GA1.2.1805197850.1436908328;
_mkto_trk=id:625-IUJ-009&token:_mch-pivotal.io-1438991171603-70536;
__unam=d0e70e0-14f6b71122d-cca27b6-3;
crowd.token_key=0ujsY9020uRSyRadoADPWQ00;
AMBARISESSIONID=w4ekrylwwrrh1wvqbo3l3p9wu' -H 'Connection: keep-alive' -H
'Referer: http://ip-10-32-36-172.ore1.vpc.pivotal.io:8080/' --data
'{"operating_systems":[{"OperatingSystems":{"os_type":"redhat6"},"repositories":[
{"Repositories":{"base_url":"http://ip-10-32-36-172.ore1.vpc.pivotal.io/PADS","repo_id":"PADS","repo_name":"PADS"}},
{"Repositories":{"base_url":"http://ip-10-32-36-172.ore1.vpc.pivotal.io/SOME","repo_id":"SOME","repo_name":"SOME"}},
{"Repositories":{"base_url":"
http://ip-10-32-36-172.ore1.vpc.pivotal.io/PHD-3.3.0.2","repo_id":"PHD-3.3.0.0","repo_name":"PHD"}},
{"Repositories":{"base_url":"
http://ip-10-32-36-172.ore1.vpc.pivotal.io/PHD-UTILS-1.1.0.20","repo_id":"PHD-UTILS-1.1.0.20","repo_name":"PHD-UTILS"}}
]}]}' --compressed
{code}



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

Mime
View raw message