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

Bug 1051048

Summary: [notifier] MAIL_PORT=blabla does not make the app fail but it continues to send to port 25
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-notification-serviceAssignee: Martin Perina <mperina>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aberezin, acathrow, emesika, gklein, iheim, pstehlik, Rhev-m-bugs, talayan, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.4.0-beta2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
notifier.log none

Description Jiri Belka 2014-01-09 16:06:36 UTC
Created attachment 847705 [details]
notifier.log

Description of problem:
MAIL_PORT=blabla does not make the app fail but it continues to send to port 25. One would expect a failure. But if the value is integer the app tries to use it :)

Version-Release number of selected component (if applicable):
is31 - rhevm-tools-3.3.0-0.44.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. MAIL_PORT=blabla
2. generate an event
3. was delivered? anything logged in notifier.log?

Actual results:
the app happily continues even MAIL_PORT is string instead of integer :)

Expected results:
fail, admin is stupid and he should be informed that MAIL_PORT is nonsense

Additional info:

Comment 1 Arthur Berezin 2014-01-28 18:42:31 UTC
So will this now trow an error message to notifier.log?

Comment 2 Tareq Alayan 2014-02-17 17:15:01 UTC
verified Mail_PORT=blabla 

notifier will fail to start 

 /etc/init.d/ovirt-engine-notifier restart
Stopping oVirt Engine Notifier:                            [  OK  ]
Starting oVirt Engine Notifier: 
Validation result:
stderr: Check configuration file, MAIL_PORT value has to be in range from 1 to 65535, currently 'blabla'
Validation failed returncode is 1:
                                                           [FAILED]
tested on ovirt-engine-tools-3.4.0-0.7.beta2.el6.noarch

Comment 3 Itamar Heim 2014-06-12 14:07:01 UTC
Closing as part of 3.4.0