[ 
https://issues.apache.org/jira/browse/AMBARI-19867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852014#comment-15852014
 ] 

Hadoop QA commented on AMBARI-19867:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12850847/AMBARI-19867.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new 
or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in 
ambari-server.

Test results: 
https://builds.apache.org/job/Ambari-trunk-test-patch/10407//testReport/
Console output: 
https://builds.apache.org/job/Ambari-trunk-test-patch/10407//console

This message is automatically generated.

> Grafana install fails if custom directory's parent does not exist
> -----------------------------------------------------------------
>
>                 Key: AMBARI-19867
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19867
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>            Priority: Minor
>             Fix For: 3.0.0, 2.5.0
>
>         Attachments: AMBARI-19867.patch
>
>
> Creating cluster via blueprint with custom {{metrics_grafana_log_dir}} and/or 
> {{metrics_grafana_data_dir}} whose parent directory does not exist fails.
> {noformat:title=sample config}
> "ams-grafana-env": {
>   "properties": {
>     "metrics_grafana_log_dir": "/var/log/ambari/metrics/grafana",
>     "metrics_grafana_data_dir": "/var/lib/ambari/metrics/grafana"
>   }
> }
> {noformat}
> {noformat:title=error}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py",
>  line 81, in <module>
>     AmsGrafana().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 314, in execute
>     method(env)
>   File 
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py",
>  line 34, in install
>     self.configure(env) # for security
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 117, in locking_configure
>     original_configure(obj, *args, **kw)
>   File 
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py",
>  line 39, in configure
>     ams(name='grafana', action=action)
>   File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", 
> line 89, in thunk
>     return fn(*args, **kwargs)
>   File 
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py",
>  line 426, in ams
>     recursive_ownership = True
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 155, in __init__
>     self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
>     self.run_action(resource, action)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
>     provider_action()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 189, in action_create
>     raise Fail("Applying %s failed, parent directory %s doesn't exist" % 
> (self.resource, dirname))
> resource_management.core.exceptions.Fail: Applying 
> Directory['/var/log/ambari/metrics/grafana'] failed, parent directory 
> /var/log/ambari/metrics doesn't exist
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to