[
https://issues.apache.org/jira/browse/AMBARI-23265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Hurley resolved AMBARI-23265.
--------------------------------------
Resolution: Fixed
> Provide Original Operating Systems from Mpack repoinfo.xml In Responses
> -----------------------------------------------------------------------
>
> Key: AMBARI-23265
> URL: https://issues.apache.org/jira/browse/AMBARI-23265
> Project: Ambari
> Issue Type: Task
> Affects Versions: 3.0.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Management packs now have a response which includes the operating systems
> associated with the mpack:
> {code:title=GET api/v1/mpacks/1}
> {
> "href" : "http://c7401.ambari.apache.org:8080/api/v1/mpacks/1",
> "MpackInfo" : {
> "id" : 1,
> "mpack_description" : "Hortonworks Data Platform Core",
> "mpack_id" : "hdpcore",
> "mpack_name" : "HDPCORE",
> "mpack_uri" :
> "http://repo.ambari.apache.org/hdpcore/centos7/HDPCORE-1.0.0-b96/mpack.json",
> "mpack_version" : "1.0.0-b96",
> "registry_id" : null,
> "stack_name" : "",
> "stack_version" : ""
> },
> "operating_systems" : [
> {
> "href" :
> "http://c7401.ambari.apache.org:8080/api/v1/mpacks/1/operating_systems/redhat7",
> "OperatingSystems" : {
> "is_ambari_managed" : true,
> "mpack_id" : 1,
> "os_type" : "redhat7",
> "repositories" : [
> {
> "distribution" : null,
> "components" : null,
> "unique" : true,
> "tags" : [ ],
> "base_url" :
> "http://repo.ambari.apache.org/hdpcore/centos7/HDPCORE-1.0.0-b96/foo",
> "os_type" : "redhat7",
> "repo_id" : "HDPCORE-1.0.0-b96",
> "repo_name" : "HDPCORE",
> "mirrors_list" : null,
> "default_base_url" : null,
> "ambari_managed" : true
> },
> {
> "distribution" : null,
> "components" : null,
> "unique" : false,
> "tags" : [ ],
> "base_url" :
> "http://repo.ambari.apache.org/hdpcore/centos7/HDP-UTILS-1.1.0.22/foo",
> "os_type" : "redhat7",
> "repo_id" : "HDP-UTILS-1.1.0.21",
> "repo_name" : "HDP-UTILS",
> "mirrors_list" : null,
> "default_base_url" : null,
> "ambari_managed" : true
> }
> ]
> }
> }
> ],
> "version" : [ ]
> }
> {code}
> These repositories are editable. If the UI (or any client for that matter)
> needed to see the original OS's and repositories which shipped with the
> mpack, they would not be able to. We will now expose a new key call
> {{default_operating_systems}} which will include this information.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)