Bug 1136026 - Make "No transport is enabled, nothing to do" error more understandable
Summary: Make "No transport is enabled, nothing to do" error more understandable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-notificiations
Version: 3.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.5.0
Assignee: Martin Perina
QA Contact: Petr Beňas
URL:
Whiteboard: infra
Depends On:
Blocks: 1136211
TreeView+ depends on / blocked
 
Reported: 2014-09-01 13:20 UTC by Martin Perina
Modified: 2016-02-10 19:33 UTC (History)
8 users (show)

Fixed In Version: ovirt-3.5.0_rc2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1136211 (view as bug list)
Environment:
Last Closed: 2014-10-17 12:42:06 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 32241 0 master MERGED tools: Make "No transport ..." error more understandable Never
oVirt gerrit 32305 0 ovirt-engine-3.5 MERGED tools: Make "No transport ..." error more understandable Never

Description Martin Perina 2014-09-01 13:20:44 UTC
Description of problem:

When ovirt-engine-notifier service is started without SMTP or SNMP configured, following error appears in notifier log:

  2014-07-09 17:00:03,624 ERROR [org.ovirt.engine.core.notifier.Notifier] Failed to initialize
  java.lang.RuntimeException: No transport is enabled, nothing to do
        at org.ovirt.engine.core.notifier.Notifier.main(Notifier.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:460)


"No transport is enabled, nothing to do" isn't very understandable error, so I would change it to:

  "No transport is enabled, please enable at least one of SMTP (using MAIL_SERVER option) or SNMP (using SNMP_MANAGERS option) transports."

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

oVirt 3.5 RC1

How reproducible:


Steps to Reproduce:
1. Install oVirt and configure using engine-setup
2. Start ovirt-engine-notifier service


Actual results:

"No transport is enabled, nothing to do" error appears in notifier.log

Expected results:

More understandable log should appear in notifier.log

Additional info:

Comment 1 Petr Beňas 2014-09-16 12:45:46 UTC
in rhevm-tools-3.5.0-0.11.beta.el6ev.noarch

Comment 2 Sandro Bonazzola 2014-10-17 12:42:06 UTC
oVirt 3.5 has been released and should include the fix for this issue.


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