Bug 1260757 - Hosted-engine notification not work
Summary: Hosted-engine notification not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-ha
Classification: oVirt
Component: Agent
Version: 1.3.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-3.6.0-rc3
: 1.3.0
Assignee: Simone Tiraboschi
QA Contact: Artyom
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-07 16:07 UTC by Artyom
Modified: 2015-11-04 13:40 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-04 13:40:24 UTC
oVirt Team: ---
Embargoed:
rule-engine: ovirt-3.6.0+
rule-engine: blocker+
bmcclain: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 46543 0 master MERGED setup: add default state transition notifications Never
oVirt gerrit 46544 0 master MERGED sharedconf: moving initial broker.conf to engine_ha_statedir Never
oVirt gerrit 46570 0 ovirt-hosted-engine-setup-1.3 MERGED setup: add default state transition notifications Never
oVirt gerrit 46601 0 ovirt-hosted-engine-ha-1.3 MERGED sharedconf: moving initial broker.conf to engine_ha_statedir Never

Description Artyom 2015-09-07 16:07:34 UTC
Description of problem:
Hosted-engine broker notification not send emails

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-1.3.0-0.4.beta.git1bcfe28.el7ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Deploy hosted engine and give your email as destination email
2. Change state of hosted-engine(hosted-engine --set-maintenance --mode=global)
3.

Actual results:
No email coming on email with notification about state change

Expected results:
Email about state change must come to email

Additional info:
I checked a little code, and from some reason we use file /var/lib/ovirt-hosted-engine-ha/broker.conf as configuration file for notification
cfg.read(constants.NOTIFY_CONF_FILE), when 
NOTIFY_CONF_FILE = '@ENGINE_HA_STATEDIR@/broker.conf'
but file /var/lib/ovirt-hosted-engine-ha/broker.conf looks like,
[email]
smtp-server = localhost
smtp-port = 25
source-email = root@localhost
destination-emails = alukiano
and do not have section
[notify]
state_transition=maintenance|start|stop|migrate|up|down

if I change cfg.read(constants.NOTIFY_CONF_FILE) to use file under /etc/ovirt-hosted-engine-ha/broker.conf all works as expected
also hosted-engine --deploy update file under /var/lib and not under /etc/

Comment 1 Red Hat Bugzilla Rules Engine 2015-09-22 08:26:35 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Artyom 2015-10-11 12:45:13 UTC
Verified on ovirt-hosted-engine-ha-1.3.0-1.el7ev.noarch

Comment 3 Sandro Bonazzola 2015-11-04 13:40:24 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.


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