ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jun aoki (JIRA)" <>
Subject [jira] [Commented] (AMBARI-13215) Adding a new repo through repository_version API does not add a new .repo on each node
Date Thu, 08 Oct 2015 22:41:26 GMT


jun aoki commented on AMBARI-13215:

[~jluniya] helped me to solve this issue and closing it. (Thank you!!)

Just to share with the whole community, the solution was to add the same repo information
to repoinfo.xml 
I added a new repo through the API and it was stored in DB and shown on UI but it was not
sufficient for Ambari to let agents generate a new corresponding .repo file. The same info
needs to be added to repoinfo.xml 

> Adding a new repo through repository_version API does not add a new .repo on each node
> --------------------------------------------------------------------------------------
>                 Key: AMBARI-13215
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: jun aoki
>            Assignee: 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.
> [1] repository_version rest API with a new repository called "SOME". This is adds it
in the UI
> {code}
> ```
> curl '
> -X PUT -H 'Pragma: no-cache' -H 'Origin:
>' -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&;
> __unam=d0e70e0-14f6b71122d-cca27b6-3;
> crowd.token_key=0ujsY9020uRSyRadoADPWQ00;
> AMBARISESSIONID=w4ekrylwwrrh1wvqbo3l3p9wu' -H 'Connection: keep-alive' -H
> 'Referer:' --data
> '{"operating_systems":[{"OperatingSystems":{"os_type":"redhat6"},"repositories":[
> {"Repositories":{"base_url":"","repo_id":"PADS","repo_name":"PADS"}},
> {"Repositories":{"base_url":"","repo_id":"SOME","repo_name":"SOME"}},
> {"Repositories":{"base_url":"
> {"Repositories":{"base_url":"
> ]}]}' --compressed
> {code}

This message was sent by Atlassian JIRA

View raw message