ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doroszlai, Attila (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-19867) Grafana install fails if custom directory's parent does not exist
Date Fri, 03 Feb 2017 17:12:51 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-19867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Doroszlai, Attila updated AMBARI-19867:
---------------------------------------
    Attachment: AMBARI-19867.patch

> 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)

Mime
View raw message