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 8D5DF18938 for ; Wed, 9 Dec 2015 10:48:13 +0000 (UTC) Received: (qmail 35459 invoked by uid 500); 9 Dec 2015 10:48:13 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 35421 invoked by uid 500); 9 Dec 2015 10:48:13 -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 35407 invoked by uid 99); 9 Dec 2015 10:48:13 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 10:48:13 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C2BD429273A; Wed, 9 Dec 2015 10:48:12 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0517002241497188751==" MIME-Version: 1.0 Subject: Re: Review Request 41132: Ranger admin HA installation with Blueprints fail due to error in stack advisor From: "Andrew Onischuk" To: "Andrew Onischuk" , "Oliver Szabo" Cc: "Ambari" , "Sebastian Toader" Date: Wed, 09 Dec 2015 10:48:12 -0000 Message-ID: <20151209104812.1619.84632@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41132/ X-Sender: "Andrew Onischuk" References: <20151209104115.1619.6161@reviews.apache.org> In-Reply-To: <20151209104115.1619.6161@reviews.apache.org> Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============0517002241497188751== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41132/#review109495 ----------------------------------------------------------- Ship it! Once you run the python tests you got my 'Ship it' :) - Andrew Onischuk On Dec. 9, 2015, 10:41 a.m., Sebastian Toader wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41132/ > ----------------------------------------------------------- > > (Updated Dec. 9, 2015, 10:41 a.m.) > > > Review request for Ambari, Andrew Onischuk and Oliver Szabo. > > > Bugs: AMBARI-14287 > https://issues.apache.org/jira/browse/AMBARI-14287 > > > Repository: ambari > > > Description > ------- > > Ranger admin HA installation fails when the cluster is deployed with a Blueprint that has stack advisor enabled with: > 'unicode' object has no attribute 'isempty' > > Removed the isempty() function call as there is no such function on python string. It's enough just to call strip() on the string and verify that is not empty. > > > Diffs > ----- > > ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py f3e6f8b > > Diff: https://reviews.apache.org/r/41132/diff/ > > > Testing > ------- > > Deployed a cluster of 3 nodes using Blueprint having Ranger Admin in HA mode and cluster creation template with stack advisor enabled ("config_recommendation_strategy" : "ALWAYS_APPLY"). > > Verified that ranger admin installed correctly and also the plugins registered with ranger. > > > Thanks, > > Sebastian Toader > > --===============0517002241497188751==--