Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 227A1179EC for ; Wed, 1 Apr 2015 13:01:54 +0000 (UTC) Received: (qmail 32548 invoked by uid 500); 1 Apr 2015 13:01:54 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 32518 invoked by uid 500); 1 Apr 2015 13:01:54 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 32504 invoked by uid 99); 1 Apr 2015 13:01:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 13:01:53 +0000 Date: Wed, 1 Apr 2015 13:01:53 +0000 (UTC) From: "Aleksandr Kovalenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-10296) UI hard codes OS family mappings causing hostChecks to fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-10296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390498#comment-14390498 ] Aleksandr Kovalenko commented on AMBARI-10296: ---------------------------------------------- +1 for the 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)