Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F008200BCB for ; Thu, 10 Nov 2016 01:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3D83B160AFD; Thu, 10 Nov 2016 00:00:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 823F9160AFA for ; Thu, 10 Nov 2016 00:59:59 +0100 (CET) Received: (qmail 39748 invoked by uid 500); 9 Nov 2016 23:59:58 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 39739 invoked by uid 99); 9 Nov 2016 23:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2016 23:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 62C052C0087 for ; Wed, 9 Nov 2016 23:59:58 +0000 (UTC) Date: Wed, 9 Nov 2016 23:59:58 +0000 (UTC) From: "Jaimin Jetly (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (AMBARI-18766) Add Service failed when none of the host components report version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Nov 2016 00:00:00 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaimin Jetly reopened AMBARI-18766: ----------------------------------- Reopening the issue as the fix fails to address the scenario when stack version number and repository version number are not same. > Add Service failed when none of the host components report version > ------------------------------------------------------------------ > > Key: AMBARI-18766 > URL: https://issues.apache.org/jira/browse/AMBARI-18766 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.4.0 > Reporter: Sumit Mohanty > Assignee: Jaimin Jetly > Priority: Critical > Fix For: 2.4.2 > > Attachments: AMBARI-18766.2.patch, AMBARI-18766.patch > > > When the underlying packages do not support versioned layout or do not report version (basically distro-select is not supported) then the stack version associated with the cluster is not changed to CURRENT from INIT. > This blocks the UI from discovering the stack version associated with the cluster. UI instead should simply rely on the stack version that is specified in the cluster resource. > *Cluster resource* ("version": "ODPi-1.0") > {code} > { > "href": "http://c6402.ambari.apache.org:8080/api/v1/clusters/c1", > "Clusters": { > "cluster_id": 2, > "cluster_name": "c1", > "health_report": { > "Host/stale_config": 1, > "Host/maintenance_state": 0, > "Host/host_status/ALERT": 0 > }, > "provisioning_state": "INSTALLED", > "security_type": "NONE", > "total_hosts": 1, > "version": "ODPi-1.0", > {code} > *stack_version resource* ("state": "INIT") > {code} > { > "href": "http://c6402.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions/1", > "ClusterStackVersions": { > "cluster_name": "c1", > "id": 1, > "repository_version": 1, > "stack": "ODPi", > "state": "INIT", > "version": "1.0", > "host_states": { > "CURRENT": [], > "INIT": [], > "INSTALLED": [], > "INSTALLING": [], > "INSTALL_FAILED": [], > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)