Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1092907

Summary: [RFE][notifier] Implement logging of successful sending of mail notification
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: Services.NotifierAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Aleksei Slaikovskii <aslaikov>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: bugs, eheftman, gklein, lsvaty, mperina, oourfali, rbalakri, Rhev-m-bugs, srevivo
Target Milestone: ovirt-4.1.0-betaKeywords: EasyFix, FutureFeature
Target Release: 4.1.0Flags: mperina: ovirt-4.1?
lsvaty: testing_plan_complete-
rule-engine: planning_ack?
mperina: devel_ack+
lsvaty: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 15:03:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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