You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Antonenko Alexander (JIRA)" <ji...@apache.org> on 2015/04/01 14:56:53 UTC

[jira] [Updated] (AMBARI-10296) UI hard codes OS family mappings causing hostChecks to fail

     [ https://issues.apache.org/jira/browse/AMBARI-10296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonenko Alexander updated AMBARI-10296:
-----------------------------------------
    Attachment: AMBARI-10296.patch

> 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)