You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rz...@apache.org on 2017/02/17 22:56:48 UTC

[10/51] [abbrv] ambari git commit: AMBARI-19867. Grafana install fails if custom directory's parent does not exist. (Attila Doroszlai via stoader)

AMBARI-19867. Grafana install fails if custom directory's parent does not exist. (Attila Doroszlai via stoader)

(cherry picked from commit db40937430b442613cf91d96e36fd12c131f5d0d)

Change-Id: I75790e6393317e3793cd0de518138f442a0cc995


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f04d7ba8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f04d7ba8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f04d7ba8

Branch: refs/heads/branch-feature-BUG-74026
Commit: f04d7ba8b88fcd0f0ff1cad4188b790ce5eed643
Parents: 218371c
Author: Attila Doroszlai <ad...@hortonworks.com>
Authored: Mon Feb 6 15:42:29 2017 +0100
Committer: Zuul <re...@hortonworks.com>
Committed: Mon Feb 6 21:39:00 2017 -0800

----------------------------------------------------------------------
 .../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/f04d7ba8/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/f04d7ba8/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
                               )