Bug 1257741 - First attempt of saving SNMP alert configurations is failed if UDP transport protocol is used
Summary: First attempt of saving SNMP alert configurations is failed if UDP transport ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: UI
Version: JON 3.3.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR01
: JON 3.3.6
Assignee: Josejulio Martínez
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-27 20:01 UTC by Harshada
Modified: 2019-08-15 05:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 15:30:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Contains server.log and screenshots to depict the issue (327.92 KB, application/zip)
2015-08-27 20:01 UTC, Harshada
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1455091 0 urgent CLOSED Error when trying to save agent:SNMP plugin configuration UI 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2016:1519 0 normal SHIPPED_LIVE Critical: Red Hat JBoss Operations Network 3.3.6 update 2016-08-26 00:44:36 UTC

Internal Links: 1455091

Description Harshada 2015-08-27 20:01:01 UTC
Created attachment 1067872 [details]
Contains server.log and screenshots to depict the issue

Description of problem:

SNMP alerts reports error when configuring for the first time, using UDP as Transport option. 

This issue is seen while saving the SNMP alert settings with the 'UDP ' option in the 'General Properites'. If UDP is changed to TCP, the settings are saved successfully. And also, now if the 'Transport' is again set to UDP, then the settings are saved successfully!
        
So, as per the observation this issue is seen only for the very first time and that too with Transport set as UDP. If used TCP, the settings are then saved successfully irrespective of the the Transport selected (UDP/TCP).
     


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


How reproducible: Always


Steps to Reproduce:
1.Take a fresh install of JON 3.3.0 or an install where you are configuring SNMP alerts for the first time.

2. Go to Aministration->Server Plugins -> SNMP Alerts -> General Properties.

3. Keeping the Transport portocol as UDP, Click on SAVE. 

4. Now select TCP as Transport protocol, and Click on SAVE. 
  
5. Again, select UDP as protocol, click on SAVE. 

Actual results: After step 3,  UI shows an error message as "Failed to save settings". See attached Screenshots.   

Server.log has the following entry (See attached server.log for complete stack trace):
--------------------------------------------------------------------------
WARN  [org.rhq.coregui.server.gwt.PluginGWTServiceImpl] (http-/127.0.0.1:7080-7) Sending exception to client: [1440702225329] : org.rhq.core.domain.plugin.PluginConfigurationRequiredException: Plugin [Alert:SNMP] could not be enabled, because some required configuration fields are not set.
	at org.rhq.enterprise.server.plugin.ServerPluginManagerBean.checkForRequiredConfiguration(ServerPluginManagerBean.java:278) [rhq-server.jar:4.12.0.JON330GA]
	at org.rhq.enterprise.server.plugin.ServerPluginManagerBean.enableServerPlugins(ServerPluginManagerBean.java:245) [rhq-server.jar:4.12.0.JON330GA]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
	......
	......
-----------------------------------------------------------------------------

After step 4, settings are saved successfully. 

Expected results: Settings should be saved successfully after step 3 also. 


Additional info:

Comment 2 Josejulio Martínez 2016-01-25 17:28:33 UTC
commit ced8e4d2e3949153d5f78605c9ebd42dd378a784
Author: Josejulio Martínez <jmartine>
Date:   Mon Jan 4 18:47:03 2016 -0600
    Bug 1257741 - First attempt of saving SNMP alert configurations is failed if UDP transport protocol is used.
    The property didn't had a default value, it was using "defaultValue" instead of "default".

Comment 3 Mike McCune 2016-03-28 22:47:43 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Simeon Pinder 2016-06-18 01:11:55 UTC
Moving to ON_QA as available to test with JON 3.3.6 DR01 brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=499890

Comment 6 Sunil Kondkar 2016-06-24 08:16:14 UTC
Verified on version : 3.3.0.GA Update 06 Build Number :	675641d:2fcd5b7

Verified that the settings are saved successfully with message 'The settings have been saved' after step 3. There is no exception in server log. Also verified success message after steps 4 and 5.

Comment 8 errata-xmlrpc 2016-07-27 15:30:45 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.

https://rhn.redhat.com/errata/RHSA-2016-1519.html


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