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 57888200BA4 for ; Fri, 30 Sep 2016 20:26:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5643F160AB4; Fri, 30 Sep 2016 18:26:22 +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 99E53160AD9 for ; Fri, 30 Sep 2016 20:26:21 +0200 (CEST) Received: (qmail 47589 invoked by uid 500); 30 Sep 2016 18:26:20 -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 47580 invoked by uid 99); 30 Sep 2016 18:26:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 18:26:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 96C872C2A6B for ; Fri, 30 Sep 2016 18:26:20 +0000 (UTC) Date: Fri, 30 Sep 2016 18:26:20 +0000 (UTC) From: "Shubhangi Nivas Pardeshi (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-18507) Ambari issue: Unexpected repo used while installing services MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Sep 2016 18:26:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shubhangi Nivas Pardeshi updated AMBARI-18507: ---------------------------------------------- Attachment: Original_repo_version.txt Formatted_repositoriesJSON_From_repo_version.txt Screenshot3.png Screenshot2.png Screenshot1.png > Ambari issue: Unexpected repo used while installing services > ------------------------------------------------------------ > > Key: AMBARI-18507 > URL: https://issues.apache.org/jira/browse/AMBARI-18507 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.2.2 > Reporter: Shubhangi Nivas Pardeshi > Priority: Critical > Attachments: Formatted_repositoriesJSON_From_repo_version.txt, Original_repo_version.txt, Screenshot1.png, Screenshot2.png, Screenshot3.png > > > PROBLEM: > Ambari picks up public repository instead one registed because of incorrect HDP repo ID. Details are given below. > Scanario : > Lets consider one HDP version is already registered(screenshot1.png). Here we have repo URL for Redhat6 (screenshot2.png) > Now For given version of HDP already registered to Ambari, we add new local/custom repository URLs for Redhat7(screenshot3.png) > We try to add new node with Redhat7 OS , this will pick up public repo inspite of local repo configuration > Cause of picking up public repo : > RepoID of repository added later are not correct in Ambari database table repo_version. > Excerpt of repositories column value from repo_version table after adding redhat7 repo URLs. > [ > { > "OperatingSystems/stack_name": "HDP", > "OperatingSystems/stack_version": "2.3", > "repositories": [ > { > "Repositories/repo_id": "HDP-2.3", > "Repositories/os_type": "redhat6", > > }, > { > "Repositories/repo_id": "HDP-UTILS-1.1.0.20", > "Repositories/os_type": "redhat6", > ... > } > ], > ... > }, > { > "repositories": [ > { > "Repositories/repo_id": "HDP-2.3.4.0-3485", > ... > }, > { > "Repositories/repo_id": "HDP-UTILS-2.3.4.0-3485", > ... > } > ], > "OperatingSystems/os_type": "redhat7", > ... > } > ] > In above JSON we see repoID for redhat6 is "HDP-2.3" and redhat7 is "HDP-2.3.4.0-3485". > Please provide fix to register repo correctly into Ambari DB. > EXPECTED RESULT: > Installation should happen from registered custom/local repo. > ACTUAL RESULT: > Public repo is used instead of registered custom/local repo. > WORKAROUND : > Modify repo_version table and fix repoID for repositoried added later. -- This message was sent by Atlassian JIRA (v6.3.4#6332)