Bug 1020900 - [notifier] MAIL_PORT_SSL ignored - javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
Summary: [notifier] MAIL_PORT_SSL ignored - javax.mail.MessagingException: Could not c...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-notification-service
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.3.0
Assignee: Martin Perina
QA Contact: Jiri Belka
URL:
Whiteboard: infra
Depends On:
Blocks: 3.3snap2
TreeView+ depends on / blocked
 
Reported: 2013-10-18 13:28 UTC by Jiri Belka
Modified: 2016-02-10 19:27 UTC (History)
6 users (show)

Fixed In Version: is21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 20427 0 None None None Never
oVirt gerrit 20640 0 None None None Never

Description Jiri Belka 2013-10-18 13:28:53 UTC
Description of problem:

[notifier] MAIL_PASSWORD ignored - javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;

See MAIL_PORT_SSL in conf below!!!

-%-
# cat /etc/ovirt-engine/notifier/notifier.conf
MAIL_SERVER=smtp.corp.redhat.com
MAIL_PORT=25
MAIL_PORT_SSL=9999
MAIL_USER=jbelka
MAIL_PASSWORD=<<SECURITYBYOBSCURITY>>
MAIL_ENABLE_SSL=true
HTML_MESSAGE_FORMAT=false
MAIL_FROM=ovirt.lab.eng.brq.redhat.com
MAIL_REPLY_TO=
DAYS_TO_KEEP_HISTORY=0
DAYS_TO_SEND_ON_STARTUP=0
-%-

-%-
2013-10-18 15:19:15,973 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf".
2013-10-18 15:19:15,976 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/notifier/notifier.conf".
2013-10-18 15:19:15,976 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/notifier/notifier.conf.d/10-setup-jboss.conf".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "DAYS_TO_KEEP_HISTORY" is "0".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "DAYS_TO_SEND_ON_STARTUP" is "0".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_ETC" is "/etc/ovirt-engine".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_INTERVAL_IN_SECONDS" is "300".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_LOG" is "/var/log/ovirt-engine".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_MONITOR_RETRIES" is "3".
2013-10-18 15:19:15,977 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PID" is "/var/lib/ovirt-engine/ovirt-engine.pid".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_TIMEOUT_IN_SECONDS" is "30".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_USR" is "/usr/share/ovirt-engine".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "FAILED_QUERIES_NOTIFICATION_RECIPIENTS" is "".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "FAILED_QUERIES_NOTIFICATION_THRESHOLD" is "30".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "HTML_MESSAGE_FORMAT" is "false".
2013-10-18 15:19:15,978 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "INTERVAL_IN_SECONDS" is "120".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "IS_HTTPS_PROTOCOL" is "false".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "JBOSS_HOME" is "/usr/share/jbossas".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_ENABLE_SSL" is "true".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_FROM" is "ovirt.lab.eng.brq.redhat.com".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_PASSWORD" is "<<SECURITYBYOBSCURITY>>".
2013-10-18 15:19:15,979 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_PORT" is "25".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_PORT_SSL" is "9999".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_REPLY_TO" is "".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_SERVER" is "smtp.corp.redhat.com".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "MAIL_USER" is "jbelka".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "NOTIFIER_STOP_INTERVAL" is "1".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "NOTIFIER_STOP_TIME" is "30".
2013-10-18 15:19:15,980 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "REPEAT_NON_RESPONSIVE_NOTIFICATION" is "false".
2013-10-18 15:19:15,981 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "SSL_IGNORE_CERTIFICATE_ERRORS" is "false".
2013-10-18 15:19:15,981 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "SSL_IGNORE_HOST_VERIFICATION" is "false".
2013-10-18 15:19:15,981 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "SSL_PROTOCOL" is "TLS".
2013-10-18 15:19:16,010 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.conf".
2013-10-18 15:19:16,010 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf".
2013-10-18 15:19:16,011 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/10-rhevm-doc.conf".
2013-10-18 15:19:16,011 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/10-setup-database.conf".
2013-10-18 15:19:16,012 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/10-setup-jboss.conf".
2013-10-18 15:19:16,012 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/10-setup-pki.conf".
2013-10-18 15:19:16,013 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf".
2013-10-18 15:19:16,013 INFO  [org.ovirt.engine.core.utils.LocalConfig] Loaded file "/etc/ovirt-engine/engine.conf.d/50-redhat-support-plugin.conf".
2013-10-18 15:19:16,014 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_AJP_ENABLED" is "true".
2013-10-18 15:19:16,014 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_AJP_PORT" is "8702".
2013-10-18 15:19:16,014 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_APPS" is "engine.ear redhat-support-plugin-rhev.ear".
2013-10-18 15:19:16,014 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_CACHE" is "/var/cache/ovirt-engine".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_CHECK_INTERVAL" is "1000".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_CONNECTION_TIMEOUT" is "300000".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_DATABASE" is "engine".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_DRIVER" is "org.postgresql.Driver".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_HOST" is "localhost".
2013-10-18 15:19:16,015 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_MAX_CONNECTIONS" is "100".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_MIN_CONNECTIONS" is "1".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_PASSWORD" is "***".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_PORT" is "5432".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_SECURED" is "False".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_SECURED_VALIDATION" is "False".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_SSL" is "false".
2013-10-18 15:19:16,016 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_URL" is "jdbc:postgresql://localhost:5432/engine?&sslfactory=org.postgresql.ssl.NonValidatingFactory".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DB_USER" is "engine".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DEBUG_ADDRESS" is "".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_DOC" is "/usr/share/doc/ovirt-engine".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_ETC" is "/etc/ovirt-engine".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_FQDN" is "jb-rh33.rhev.lab.eng.brq.redhat.com".
2013-10-18 15:19:16,017 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_GROUP" is "ovirt".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HEAP_MAX" is "1g".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HEAP_MIN" is "1g".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HTTPS_ENABLED" is "false".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HTTPS_PORT" is "None".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HTTPS_PROTOCOLS" is "SSLv3,TLSv1,TLSv1.1,TLSv1.2".
2013-10-18 15:19:16,018 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HTTP_ENABLED" is "false".
2013-10-18 15:19:16,020 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_HTTP_PORT" is "None".
2013-10-18 15:19:16,020 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_JVM_ARGS" is " -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/var/log/ovirt-engine/dump"".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_LOG" is "/var/log/ovirt-engine".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_LOG_TO_CONSOLE" is "false".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_MANUAL" is "/usr/share/doc/rhevm-doc/manual".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PERM_MAX" is "256m".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PERM_MIN" is "256m".
2013-10-18 15:19:16,021 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI" is "/etc/pki/ovirt-engine".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_CA" is "/etc/pki/ovirt-engine/ca.pem".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_ENGINE_CERT" is "/etc/pki/ovirt-engine/certs/engine.cer".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_ENGINE_STORE" is "/etc/pki/ovirt-engine/keys/engine.p12".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_ENGINE_STORE_ALIAS" is "1".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_ENGINE_STORE_PASSWORD" is "***".
2013-10-18 15:19:16,022 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_TRUST_STORE" is "/etc/pki/ovirt-engine/.truststore".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PKI_TRUST_STORE_PASSWORD" is "***".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PROPERTIES" is " jsse.enableSNIExtension=false".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PROXY_ENABLED" is "true".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PROXY_HTTPS_PORT" is "443".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_PROXY_HTTP_PORT" is "80".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_STOP_INTERVAL" is "1".
2013-10-18 15:19:16,023 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_STOP_TIME" is "10".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_TMP" is "/var/tmp/ovirt-engine".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_UP_MARK" is "/var/lib/ovirt-engine/engine.up".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_USER" is "ovirt".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_USR" is "/usr/share/ovirt-engine".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_VAR" is "/var/lib/ovirt-engine".
2013-10-18 15:19:16,024 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "ENGINE_VERBOSE_GC" is "false".
2013-10-18 15:19:16,025 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "JBOSS_HOME" is "/usr/share/jbossas".
2013-10-18 15:19:16,025 INFO  [org.ovirt.engine.core.utils.LocalConfig] Value of property "SENSITIVE_KEYS" is ",ENGINE_DB_PASSWORD,ENGINE_PKI_TRUST_STORE_PASSWORD,ENGINE_PKI_ENGINE_STORE_PASSWORD".
2013-10-18 15:19:16,188 INFO  [org.ovirt.engine.core.notifier.EngineMonitorService] Engine health servlet URL is "http://jb-rh33.rhev.lab.eng.brq.redhat.com:80/OvirtEngineWeb/HealthStatus".
2013-10-18 15:19:16,190 DEBUG [org.ovirt.engine.core.notifier.EngineMonitorService] Checking server status using HTTP, without ignoring SSL errors.
2013-10-18 15:19:17,191 DEBUG [org.ovirt.engine.core.notifier.NotificationService] Start event notification service iteration
2013-10-18 15:19:17,203 DEBUG [org.ovirt.engine.core.notifier.NotificationService] Finish event notification service iteration
2013-10-18 15:19:17,216 DEBUG [org.ovirt.engine.core.notifier.EngineMonitorService] checkServerStatus return: true
2013-10-18 15:21:17,204 DEBUG [org.ovirt.engine.core.notifier.NotificationService] Start event notification service iteration
2013-10-18 15:21:17,261 DEBUG [org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl] Send email to [jbelka]
 subject:
 [Issue Solved Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).]]
 body:
 [Time:2013-10-18 15:20:12.163
Message:Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).
Severity:0
User Name: admin@internal
VM Name: jb-w8-x86
Host Name: dell-r210ii-03
Template Name: Blank
Data Center Name: Default
]
2013-10-18 15:21:17,931 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Issue Solved Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:79)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
2013-10-18 15:21:48,341 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Issue Solved Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:91)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
2013-10-18 15:22:18,533 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Issue Solved Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:91)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
2013-10-18 15:22:49,090 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Issue Solved Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration completed (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, Duration: 41 sec).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:91)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
2013-10-18 15:22:49,185 DEBUG [org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl] Send email to [jbelka]
 subject:
 [Alert Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration started (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, User: admin@internal).]]
 body:
 [Time:2013-10-18 15:19:30.465
Message:Migration started (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, User: admin@internal).
Severity:0
User Name: admin@internal
VM Name: jb-w8-x86
Host Name: dell-r210ii-03
Template Name: Blank
Data Center Name: Default
]
2013-10-18 15:22:49,705 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Alert Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration started (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, User: admin@internal).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:79)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
2013-10-18 15:23:19,888 ERROR [org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender] Failed to send message  from ovirt.lab.eng.brq.redhat.com to jbelka with subject Alert Notification. (jb-rh33.rhev.lab.eng.brq.redhat.com), [Migration started (VM: jb-w8-x86, Source: dell-r210ii-03, Destination: dell-r210ii-13, User: admin@internal).] due to to error: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.corp.redhat.com, port: 465;
  nested exception is:
	java.net.ConnectException: Connection refused
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.send(JavaMailSender.java:160)
	at org.ovirt.engine.core.notifier.utils.sender.mail.EventSenderMailImpl.send(EventSenderMailImpl.java:91)
	at org.ovirt.engine.core.notifier.NotificationService.processEvents(NotificationService.java:263)
	at org.ovirt.engine.core.notifier.NotificationService.run(NotificationService.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
	... 15 more
-%-

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

How reproducible:
100%

Steps to Reproduce:
1. MAIL_PORT_SSL=9999 in conf
2. restart
3. see notifier.log

Actual results:
MAIL_PORT_SSL value is ignored

Expected results:
who's boss here? use MAIL_PORT_SSL value :)

Additional info:

Comment 1 Jiri Belka 2013-10-18 13:30:36 UTC
It is MAIL_PORT_SSL what is ignored, not MAIL_PASSWORD. But it is obvious from details in comment #0.

Comment 2 Jiri Belka 2013-11-01 10:24:48 UTC
ok, is21.

Comment 3 Itamar Heim 2014-01-21 22:21:28 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:26:50 UTC
Closing - RHEV 3.3 Released


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