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 51BF418B30 for ; Tue, 7 Jul 2015 13:13:53 +0000 (UTC) Received: (qmail 63771 invoked by uid 500); 7 Jul 2015 13:13:53 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 63736 invoked by uid 500); 7 Jul 2015 13:13:53 -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 63721 invoked by uid 99); 7 Jul 2015 13:13:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 13:13:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id A1672A8CAD; Tue, 7 Jul 2015 13:13:52 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0416174622007326087==" MIME-Version: 1.0 Subject: Re: Review Request 36171: Pre RU - install failed and attempts to re-install continue to fail From: "Dmitro Lisnichenko" To: "Alejandro Fernandez" , "Nate Cole" , "Jonathan Hurley" Cc: "Dmitro Lisnichenko" , "Ambari" Date: Tue, 07 Jul 2015 13:13:52 -0000 Message-ID: <20150707131352.1573.44041@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Dmitro Lisnichenko" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36171/ X-Sender: "Dmitro Lisnichenko" References: <20150706171612.8753.80121@reviews.apache.org> In-Reply-To: <20150706171612.8753.80121@reviews.apache.org> Reply-To: "Dmitro Lisnichenko" X-ReviewRequest-Repository: ambari --===============0416174622007326087== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On July 6, 2015, 5:16 p.m., Alejandro Fernandez wrote: > > ambari-server/src/main/resources/custom_actions/scripts/install_packages.py, line 242 > > > > > > Can you add a comment that it's important to use the normalized version here that doesn't contain the build number? > > > > If self.repository_version does contain the build number, it will have to be removed. > > E.g., > > first call is for 2.3.0.0-1234 (wrong build number, which actually installs 2.3.0.0-5678) > > Then we should save to the history file, > > 2.3.0.0,2.3.0.0-5678 > > > > This can then update the DB record. > > > > On the next call, the repository_version will contain the correct build number, but the first element in the history file will not. > > Dmitro Lisnichenko wrote: > How should it work when we add few repo versions of 2.3.0.0 in parallel? We can not have few entries in history file like > > 2.3.0.0,2.3.0.0-5678 > 2.3.0.0,2.3.0.0-5670 > > Nate Cole wrote: > It's CSV?! But it's called .json? Yes. I'm not the original author of this code, but suppose that it was going to be a json at first. Will rename - Dmitro ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36171/#review90501 ----------------------------------------------------------- On July 6, 2015, 5:06 p.m., Dmitro Lisnichenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36171/ > ----------------------------------------------------------- > > (Updated July 6, 2015, 5:06 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Jonathan Hurley, and Nate Cole. > > > Bugs: AMBARI-12278 > https://issues.apache.org/jira/browse/AMBARI-12278 > > > Repository: ambari > > > Description > ------- > > 2015-07-01 08:07:10,323 - Failure while computing actual version. Error: Could not determine actual version. This stack's root directory (/usr/hdp) exists but was not able to determine the actual repository version installed. Try reinstalling packages again. > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 299, in install_packages > self.compute_actual_version() > File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 254, in compute_actual_version > raise Fail(msg) > Fail: Could not determine actual version. This stack's root directory (/usr/hdp) exists but was not able to determine the actual repository version installed. Try reinstalling packages again. > Traceback (most recent call last): > > > Diffs > ----- > > ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py 5fdc35d > ambari-server/src/main/resources/custom_actions/scripts/install_packages.py b028852 > ambari-server/src/test/python/custom_actions/TestInstallPackages.py 1e6dcea > > Diff: https://reviews.apache.org/r/36171/diff/ > > > Testing > ------- > > Performed E2E tests > > > OK > ---------------------------------------------------------------------- > Total run:796 > Total errors:0 > Total failures:0 > OK > > > Thanks, > > Dmitro Lisnichenko > > --===============0416174622007326087==--