ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Di Li" <>
Subject Re: Review Request 40080: AMBARI-13748: Being able to clean repository cache before installing open source components
Date Fri, 13 Nov 2015 19:50:57 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Nov. 13, 2015, 7:50 p.m.)

Review request for Ambari, Alejandro Fernandez, Andrew Onischuk, Jayush Luniya, and Sid Wagle.

Bugs: AMBARI-13748

Repository: ambari


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

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_actions/scripts/ PRE-CREATION

  ambari-server/src/test/python/custom_actions/ PRE-CREATION 



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":""}]}'


Di Li

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message