Bug 882847

Summary: upgrade 3.0 to 3.1: event notification is not sent.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engine-notification-serviceAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: ayersmj, chetan, dyasny, iheim, italkohe, mgoldboi, oourfali, oramraz, pkshiras, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---Keywords: ZStream
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, an issue with notification service resource closing meant notification emails for upgrades would sometimes fail. This has been fixed so that emails are sent as they should be.
Story Points: ---
Clone Of:
: 884244 (view as bug list) Environment:
Last Closed: 2013-06-10 21:25:57 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:
Bug Depends On:    
Bug Blocks: 884244    
Attachments:
Description Flags
engine.log
none
notifier.log
none
notifier_ovirt_engine.conf
none
notifier_rhevm none

Description Ilanit Stein 2012-12-03 08:46:26 UTC
Description of problem:

After upgrade from IC158.2 to SI24.5, 
Though event notification is activated, email is not sent.

After the upgrade there are 2 notifier.conf files:
[1] /etc/rhevm-old/notifier/notifier.conf
[2] /etc/ovirt-engine/notifier/notifier.conf

Setting both to correct settings didn't made the email sent.

Version-Release number of selected component (if applicable):
IC158.2 to SI24.5

How reproducible:
always

Steps to Reproduce:
1. Define the /etc/ovirt-engine/notifier/notifier.conf for sending notifications
(attached)
2. Activate engine-notifierd service. 
(/etc/rc.d/init.d/engine-notifierd start)
3. Attach event notification to a user 
(I added a user from AD, attached to it event notification for ovirt-engine stop)
4. service ovirt-engine restart several times, and expect email.
   
Expected results:
no email is sent

Additional info:
There is another bug, on that the values from the old notifier.conf [1] are not copied to the new notifier conf [2] - Bug 880923

Comment 1 Ilanit Stein 2012-12-03 08:48:58 UTC
Created attachment 656451 [details]
engine.log

Comment 2 Ilanit Stein 2012-12-03 08:50:03 UTC
Created attachment 656453 [details]
notifier.log

Comment 3 Ilanit Stein 2012-12-03 08:56:40 UTC
Created attachment 656455 [details]
notifier_ovirt_engine.conf

Comment 4 Ilanit Stein 2012-12-03 08:57:23 UTC
Created attachment 656456 [details]
notifier_rhevm

Comment 5 Ilanit Stein 2012-12-03 15:27:38 UTC
*** Bug 881071 has been marked as a duplicate of this bug. ***

Comment 6 Ilanit Stein 2012-12-03 15:30:56 UTC
As mentioned in bug 881071, which was marked as duplicate of this bug,
here also there are many error messages "PSQLException: FATAL: connection limit exceeded for non-superusers".

Comment 7 Yair Zaslavsky 2012-12-04 18:54:51 UTC
one thing I did notice is that the code is not using a DB connection pool.
The error appears every 5 seconds. please provide the configuration file of the notification service on your setup.

Comment 9 Ilanit Stein 2012-12-05 14:25:58 UTC
The configuration file of the notification service is already attached.
I first configured conf file [2], and when it didn't work I configured [1],
both mentioned in the description.

Comment 13 Yair Zaslavsky 2012-12-09 11:36:56 UTC
*** Bug 882682 has been marked as a duplicate of this bug. ***

Comment 14 Moran Goldboim 2012-12-20 12:39:29 UTC
test only. 3.0->3.1 upgrade flow

Comment 15 Yair Zaslavsky 2012-12-30 11:11:30 UTC
*** Bug 882688 has been marked as a duplicate of this bug. ***

Comment 16 Yair Zaslavsky 2012-12-30 11:12:12 UTC
*** Bug 882690 has been marked as a duplicate of this bug. ***

Comment 17 Ilanit Stein 2013-02-11 07:26:20 UTC
Verified on upgrade IC158.2 -> SI27.

First verified notification sent for ISC158.2, then after upgrade verified the notifier.conf is kept and notification is sent.

Comment 20 errata-xmlrpc 2013-06-10 21:25:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0888.html