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 7CB5B18827 for ; Tue, 19 Jan 2016 16:20:13 +0000 (UTC) Received: (qmail 1734 invoked by uid 500); 19 Jan 2016 16:20:13 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 1705 invoked by uid 500); 19 Jan 2016 16:20: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 1687 invoked by uid 99); 19 Jan 2016 16:20:12 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 16:20:12 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id A6B2E282105; Tue, 19 Jan 2016 16:20:11 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8743821257104012604==" MIME-Version: 1.0 Subject: Re: Review Request 42501: Blueprints: Stack advisor should consider user provided inputs on ''ONLY_STACK_DEFAULTS_APPLY" strategy From: "Oliver Szabo" To: "Sebastian Toader" , "Robert Levas" , "Sandor Magyari" , "Sumit Mohanty" , "Robert Nettleton" Cc: "Ambari" , "Oliver Szabo" Date: Tue, 19 Jan 2016 16:20:11 -0000 Message-ID: <20160119162011.32038.2887@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Oliver Szabo" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/42501/ X-Sender: "Oliver Szabo" References: <20160119150615.32038.64579@reviews.apache.org> In-Reply-To: <20160119150615.32038.64579@reviews.apache.org> Reply-To: "Oliver Szabo" X-ReviewRequest-Repository: ambari --===============8743821257104012604== 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/42501/ ----------------------------------------------------------- (Updated Jan. 19, 2016, 4:20 p.m.) Review request for Ambari, Robert Levas, Robert Nettleton, Sandor Magyari, Sumit Mohanty, and Sebastian Toader. Bugs: AMBARI-14722 https://issues.apache.org/jira/browse/AMBARI-14722 Repository: ambari Description ------- If the config_recommendation_strategy is 'ONLY_STACK_DEFAULTS_APPLY' in the cluster creation template, it should apply configurations only on stack defaults. In case of a user overrides a stack default property, stack advisor output should not be considered, and force to use the user provided property. (ALWAYS_APPLY strategy still won't use user provided properties in the output of stack advisor, only as inputs) Diffs (updated) ----- ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/StackAdvisorBlueprintProcessor.java 337ad06 ambari-server/src/test/java/org/apache/ambari/server/api/services/stackadvisor/StackAdvisorBlueprintProcessorTest.java 60a8dde Diff: https://reviews.apache.org/r/42501/diff/ Testing (updated) ------- FT: provision with multiple blueprints (with user provided properties in the cluster-creation tempalte and in the blueprint too) Unit testing done. Total run:831 Total errors:0 Total failures:0 OK INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server INFO: Return code from stack upgrade command, retcode = 0 StackAdvisor implementation for stack HDP1, version 2.0.6 was not found Returning DefaultStackAdvisor implementation StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded Returning XYZ101StackAdvisor implementation [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:00:46.271s [INFO] Finished at: Tue Jan 19 16:55:58 CET 2016 [INFO] Final Memory: 39M/1277M [INFO] ------------------------------------------------------------------------ Thanks, Oliver Szabo --===============8743821257104012604==--