Repository: ambari Updated Branches: refs/heads/branch-2.5 e81361bc4 -> db4093743
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/db409374 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/db409374 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/db409374 Branch: refs/heads/branch-2.5 Commit: db40937430b442613cf91d96e36fd12c131f5d0d Parents: e81361b Author: Attila Doroszlai <adorosz...@hortonworks.com> Authored: Mon Feb 6 15:42:29 2017 +0100 Committer: Toader, Sebastian <stoa...@hortonworks.com> Committed: Mon Feb 6 15:44:32 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/db409374/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 ca1ab76..7e822f2 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 @@ -418,6 +418,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/db409374/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 )