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 55B121822B for ; Tue, 23 Jun 2015 18:18:32 +0000 (UTC) Received: (qmail 57528 invoked by uid 500); 23 Jun 2015 18:18:32 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 57494 invoked by uid 500); 23 Jun 2015 18:18:32 -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 57480 invoked by uid 99); 23 Jun 2015 18:18:31 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 18:18:31 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 07C6DA99CE; Tue, 23 Jun 2015 18:18:31 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6645539000413043076==" MIME-Version: 1.0 Subject: Review Request 35794: Ambari : upgrading from 2.0.0 to 2.0.1 wipes out the added service folder on the stack. From: "Dmytro Sen" To: "Andrew Onischuk" , "Vitalyi Brodetskyi" Cc: "Dmytro Sen" , "Ambari" Date: Tue, 23 Jun 2015 18:18:31 -0000 Message-ID: <20150623181831.3113.60784@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Dmytro Sen" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/35794/ X-Sender: "Dmytro Sen" Reply-To: "Dmytro Sen" X-ReviewRequest-Repository: ambari --===============6645539000413043076== 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/35794/ ----------------------------------------------------------- Review request for Ambari, Andrew Onischuk and Vitalyi Brodetskyi. Bugs: AMBARI-12101 https://issues.apache.org/jira/browse/AMBARI-12101 Repository: ambari Description ------- Install Ambari 2.0 based cluster. Add a new service (custom) which is not part of the stack using "Add Service" wizard. This step requires the new custom service package needs to be copied to the /var/lib/ambari-server/resources/stacks/HDP/2.2/services folder. Deploy the new service and everything works fine. Now upgrade from Ambari 2.0 to Ambari 2.0.1 Problem: The /var/lib/ambari-server/resources/stacks/HDP/2.2/services/mycustomservice folder got wiped out. Restarting the ambari-server results in the following exception. 27 May 2015 10:53:55,441 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=HST at org.apache.ambari.server.api.services.AmbariMetaInfo.getService(AmbariMetaInfo.java:497) at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:265) at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96) at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217) at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665) Expected: After upgrade the added service should be available and active. The custom service folder should not be wiped out from the stacks folder. Diffs ----- ambari-server/src/main/package/deb/control/postinst 629ab09 ambari-server/src/main/package/rpm/postinstall.sh d47a00c Diff: https://reviews.apache.org/r/35794/diff/ Testing ------- Unit tests passed Thanks, Dmytro Sen --===============6645539000413043076==--