[
https://issues.apache.org/jira/browse/AMBARI-10296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390737#comment-14390737
]
Hudson commented on AMBARI-10296:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2167 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2167/])
AMBARI-10296. UI hard codes OS family mappings causing hostChecks to fail
(alexantonenko) (hiveww:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=72cf909a822b498d9e6d1f769d345c2d2a7f7bcb)
* ambari-web/app/utils/ajax/ajax.js
* ambari-web/app/controllers/wizard/step3_controller.js
* ambari-web/test/controllers/wizard/step3_test.js
> UI hard codes OS family mappings causing hostChecks to fail
> -----------------------------------------------------------
>
> Key: AMBARI-10296
> URL: https://issues.apache.org/jira/browse/AMBARI-10296
> Project: Ambari
> Issue Type: Task
> Components: ambari-web
> Affects Versions: 2.1.0
> Reporter: Antonenko Alexander
> Assignee: Antonenko Alexander
> Fix For: 2.1.0
>
> Attachments: AMBARI-10296.patch
>
>
> UI should use "/api/v1/hosts/host_name?fields=Hosts/os_family" to check
> repository OS (when it will be added to the api)
> Problem:
> We have one place to store os_types and related os_families - os_family.json
> After adding a new OS to os_family.json host check fails.
> {noformat:title=Host Check/Repository Issues}
> Host (centos703) is centos7 OS type, but the repositories chosen in "Select
> Stack"
> step was redhat5,redhat6,redhat7,suse11,ubuntu12. Selected repositories do
> not
> support this host OS type.
> {noformat}
> Code to determine OS type from the OS family is located here:
> app/controllers/wizard/step3_controller.js:1268 (repoToAgentOsType)
> It duplicates os_family.json logic.
> We can add OS_Family to {{/api/v1/hosts/host_name}} (like "os_type" :
> "centos7" we can add "os_family" : "redhat7") and get rid of UI os_family
> determination code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)