Bug 1092907 - [RFE][notifier] Implement logging of successful sending of mail notification
Summary: [RFE][notifier] Implement logging of successful sending of mail notification
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Services.Notifier
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.1.0-beta
: 4.1.0
Assignee: Ondra Machacek
QA Contact: Aleksei Slaikovskii
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-30 08:40 UTC by Jiri Belka
Modified: 2017-02-15 15:03 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Previously, when notification emails were successfully sent to a configured SMTP server, a success message did not appear in the notifier.log file.In this release, when a message is successfully sent to an SMTP server, the following message appears in the notifier.log file: E-mail subject='...' to='...' sent successfully
Clone Of:
Environment:
Last Closed: 2017-02-15 15:03:25 UTC
oVirt Team: Infra
Embargoed:
mperina: ovirt-4.1?
lsvaty: testing_plan_complete-
rule-engine: planning_ack?
mperina: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 57622 0 master MERGED core: notifier: add successfull mail sent message 2016-05-27 15:50:16 UTC

Description Jiri Belka 2014-04-30 08:40:22 UTC
Description of problem:

Right now there's not clear line logged that mail notification was successfully sent. From BZ1051492:

> [...] from my point of view what is mostly missing here is after
> "Send email..."
> to have
> "Email sent successfully"

Version-Release number of selected component (if applicable):
av7

How reproducible:
100%

Steps to Reproduce:
1. block network to mail server
2. check log
3. unblock

Actual results:
2. you will see only 'Send email...' and 'Failed to send' lines
3. just 'Send email...' lines

Expected results:
to distinguish between 'Send email' and real successful sending, there should be after each successful mailing a line like 'Email sent successfully...'

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-16 13:59:59 UTC
This request has been proposed for two releases. This is invalid flag usage. The ovirt-future release flag has been cleared. If you wish to change the release flag, you must clear one release flag and then set the other release flag to ?.

Comment 4 Aleksei Slaikovskii 2017-02-01 15:18:54 UTC
Verified on ovirt-engine-4.1.1-0.0.master.20170201124236.git503df00.el7.centos.noarch

INFO    [org.ovirt.engine.core.notifier.transport.smtp.Smtp idle] E-mail subject='alertMessage (system-ge.rhev.lab.eng.brq.redhat.com), [VM shutdown initiated by admin@internal-authz on VM 123 (Host: host).]' to='email' sent successfully


Note You need to log in before you can comment on or make changes to this bug.