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 B6DE117CAA for ; Thu, 16 Apr 2015 00:09:00 +0000 (UTC) Received: (qmail 37435 invoked by uid 500); 16 Apr 2015 00:09:00 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 37406 invoked by uid 500); 16 Apr 2015 00:09:00 -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 37393 invoked by uid 99); 16 Apr 2015 00:09:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 00:09:00 +0000 Date: Thu, 16 Apr 2015 00:09:00 +0000 (UTC) From: "Jonathan Hurley (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-10511) Use Stack Table For Entity Relationships MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jonathan Hurley created AMBARI-10511: ---------------------------------------- Summary: Use Stack Table For Entity Relationships Key: AMBARI-10511 URL: https://issues.apache.org/jira/browse/AMBARI-10511 Project: Ambari Issue Type: Task Components: ambari-server Affects Versions: 2.1.0 Reporter: Jonathan Hurley Assignee: Jonathan Hurley Priority: Critical Fix For: 2.1.0 The following tables reference the desired/current stack using a JSON string. These will need to be replaced by using the {{stack.stack_id}} reference column: - clusters.desired_stack_version - clusterstate.current_stack_version - hostcomponentdesiredstate.desired_stack_version - hostcomponentstate.current_stack_version - servicecomponentdesiredstate.desired_stack_version - blueprint.stack_name, blueprint.stack_version - repo_version.stack Add FK to stack.stack_id for tables and columns above. {{UpgradeCatalog210}} also needs to calculate the correct stack that the Ambari 2.0.0 cluster is using in addition to making the appropriate column changes. In addition to the above changes, new fields will need to be added to the following tables in order to associate the service configuration version and the individual configuration types with the stack that they belong to. - serviceconfig - clusterconfig Although there may be service configurations saved from a prior manual stack upgrade, these will all be marked with the current HDP stack version as there will be no way to determine which prior version was associated with a particular stack. -- This message was sent by Atlassian JIRA (v6.3.4#6332)