[
https://issues.apache.org/jira/browse/AMBARI-21030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012698#comment-16012698
]
Hudson commented on AMBARI-21030:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7479 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7479/])
AMBARI-21030. Custom task script should output specific exception
(dlysnichenko:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=47b845fb9acf2cdfe196731f05ec1395142a1fb5])
* (edit)
ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py
> Custom task script should output specific exception
> ---------------------------------------------------
>
> Key: AMBARI-21030
> URL: https://issues.apache.org/jira/browse/AMBARI-21030
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Reporter: Dmitry Lysnichenko
> Assignee: Dmitry Lysnichenko
> Fix For: 3.0.0
>
> Attachments: AMBARI-21030.patch
>
>
> {{ru_execute_tasks.py}} has the following function:
> {noformat}
> def resolve_ambari_config():
> config_path = os.path.abspath(AmbariConfig.getConfigFile())
> try:
> if os.path.exists(config_path):
> agent_config.read(config_path)
> else:
> raise Exception("No config found at %s" % str(config_path))
> except Exception, err:
> Logger.warn(err)
> {noformat}
> There was an error parsing the config file, and {{Logger.warn()}} isn't
> actually defined (Shockingly, it's called {{warning()}}). Even still,
> changing the code to warning() didn't work either. The exact stack should be
> printed here with throwback.print_exc() (if {{warning()}} doesn't do it).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)