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 F1DFF186D7 for ; Fri, 13 Nov 2015 19:50:57 +0000 (UTC) Received: (qmail 32947 invoked by uid 500); 13 Nov 2015 19:50:57 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 32911 invoked by uid 500); 13 Nov 2015 19:50:57 -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 32895 invoked by uid 99); 13 Nov 2015 19:50:57 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2015 19:50:57 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 5EB5228FD8E; Fri, 13 Nov 2015 19:50:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0961584945170095991==" MIME-Version: 1.0 Subject: Re: Review Request 40080: AMBARI-13748: Being able to clean repository cache before installing open source components From: "Di Li" To: "Alejandro Fernandez" , "Andrew Onischuk" , "Jayush Luniya" , "Sid Wagle" Cc: "Di Li" , "Ambari" Date: Fri, 13 Nov 2015 19:50:57 -0000 Message-ID: <20151113195057.1634.60222@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Di Li" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40080/ X-Sender: "Di Li" References: <20151113135635.1634.21312@reviews.apache.org> In-Reply-To: <20151113135635.1634.21312@reviews.apache.org> Reply-To: "Di Li" X-ReviewRequest-Repository: ambari --===============0961584945170095991== 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/40080/ ----------------------------------------------------------- (Updated Nov. 13, 2015, 7:50 p.m.) Review request for Ambari, Alejandro Fernandez, Andrew Onischuk, Jayush Luniya, and Sid Wagle. Bugs: AMBARI-13748 https://issues.apache.org/jira/browse/AMBARI-13748 Repository: ambari Description ------- Need a way for Ambari to trigger a repository clean (yum clean expire-cache on rhel, for example) when updating repository files during an Ambari update as well as fresh installation of a cluster. Currently, this must be done occasionally through a manual step, and if not done will lead to problems during install. Diffs (updated) ----- ambari-server/src/main/resources/custom_action_definitions/system_action_definitions.xml e725d68 ambari-server/src/main/resources/custom_actions/scripts/clear_repocache.py PRE-CREATION ambari-server/src/test/python/custom_actions/TestClearRepoCache.py PRE-CREATION Diff: https://reviews.apache.org/r/40080/diff/ Testing ------- New unit test. Patch cluster with the changes and run fresh install and rolling upgrade to verify the repo clean up logic was run. New unit test for custom action code change. Also test the custom action by REST API call curl -u admin:admin -H "X-Requested-By: admin" -X POST -d'{"RequestInfo":{"context":"clear repo cache test", "action" : "clear_repocache"}, "Requests/resource_filters":[{"hosts":"agent.mydomain.com"}]}' http://server.mydomain.com:8080/api/v1/clusters/bi/requests Thanks, Di Li --===============0961584945170095991==--