Repository: ambari Updated Branches: refs/heads/trunk 9f2d1d9b6 -> e05e5296c
AMBARI-19867. Grafana install fails if custom directory's parent does not exist. (Attila Doroszlai via stoader) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e05e5296 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e05e5296 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e05e5296 Branch: refs/heads/trunk Commit: e05e5296c580b3b714f784f54754318bc09f67de Parents: 9f2d1d9 Author: Attila Doroszlai <[email protected]> Authored: Mon Feb 6 15:42:29 2017 +0100 Committer: Toader, Sebastian <[email protected]> Committed: Mon Feb 6 15:42:29 2017 +0100 ---------------------------------------------------------------------- .../common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py | 1 + .../test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e05e5296/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py index c3bc600..2886e94 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py @@ -423,6 +423,7 @@ def ams(name=None, action=None): owner=params.ams_user, group=params.user_group, mode=0755, + create_parents = True, recursive_ownership = True ) http://git-wip-us.apache.org/repos/asf/ambari/blob/e05e5296/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py b/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py index 07b27a6..dc064e4 100644 --- a/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py +++ b/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py @@ -91,6 +91,7 @@ class TestMetricsGrafana(RMFTestCase): owner = 'ams', group = 'hadoop', mode=0755, + create_parents = True, recursive_ownership = True )
