ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8978) Alerts: Allow Ability To Test An AlertTarget Before Creating It
Date Tue, 13 Jan 2015 18:21:34 GMT

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

Hudson commented on AMBARI-8978:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1470 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1470/])
AMBARI-8978 - Alerts: Allow Ability To Test An AlertTarget Before Creating It (Yurii Shylov
via jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=275e8986b1d45685e20676dc077fd9f8ff5bbf18)
* ambari-server/src/test/java/org/apache/ambari/server/state/services/AlertNoticeDispatchServiceTest.java
* ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/SNMPDispatcherTest.java
* ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/SNMPDispatcher.java
* ambari-server/src/main/java/org/apache/ambari/server/notifications/NotificationDispatcher.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProvider.java
* ambari-server/src/test/java/org/apache/ambari/server/notifications/MockDispatcher.java
* ambari-server/src/main/java/org/apache/ambari/server/state/services/AlertNoticeDispatchService.java
* ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/EmailDispatcherTest.java
* ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/EmailDispatcher.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/AlertTargetResourceDefinition.java
* ambari-server/src/test/java/org/apache/ambari/server/notifications/EmailDispatcherTest.java


> Alerts: Allow Ability To Test An AlertTarget Before Creating It
> ---------------------------------------------------------------
>
>                 Key: AMBARI-8978
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8978
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Yurii Shylov
>            Assignee: Yurii Shylov
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8978.patch
>
>
> During the cluster installation, the web client would like to be able to have the administrator
configure an alert target for use with that cluster. However, because there are many properties
that are used to successfully create an AlertTarget, it's likely that the settings originally
provided may not work.
> For example, when creating an AlertTarget for SMTP, if the security or port are not valid
(or the SMTP server is restricting access to certain IP addresses) then the target won't be
able to properly use it.
> We need to be able to allow an AlertTarget to be "tested" before actually creating it
in the system. 
> I propose a new endpoint off of targets that can be used to POST to. The POST can contain
all of the alert properties that would normally be found on an AlertTarget. The difference
is that no target is created; instead a status is returned about whether the target works
(and why it doesn't if it failed).
> I would suggest also altering the dispatcher interface to support a new method; something
like {{Dispatcher.testAlertTarget(...)}} which will simply exercise the properties of the
target to ensure a good connection.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message