Bug 542697

Summary: Properties of plugin configuration not being persisted
Product: [Other] RHQ Project Reporter: John Sanda <jsanda>
Component: ConfigurationAssignee: John Sanda <jsanda>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: low    
Version: 1.4CC: pthomas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:48:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 538114    
Attachments:
Description Flags
connection-tab for jboss server none

Description John Sanda 2009-11-30 15:35:59 UTC
Description of problem:
On the raw-config branch the properties of a plugin configuration are not being persisted to the database. When you go to view the connection properties on the inventory tab for a resource in the web UI, you will see a blank page because no properties are in the database. 

This is a regesssion that I think I introduced with some of my plugin container of plugin descriptor parser changes during the last couple sprints.

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


How reproducible:


Steps to Reproduce:
1. Deploy the JBoss AS plugin on server and agent
2. The JBoss instance for your local RHQ server should get discovered
3. Import JBoss instance into inventory
4. Go to 'Inventory' tab for resource corresponding to RHQ server
5. In the subnav click on 'connection properties'
  
Actual results:
Below the nav, the page is blank

Expected results:
Should see text and fields corresponding to the plugin configuration of the JBoss plugin.

Additional info:

Comment 1 John Sanda 2009-12-03 14:18:20 UTC
The problem here turned out to be in the serialization code in Configuration.java. I had refactored the Externalization helper methods, and with my changes, the parent references of a configurations' Property's and RawConfiguration's was not getting set; consequently, they were not getting persisted in the database. I have fixed the regression and updated unit tests accordingly. The commit for this work is,

9f6e1dc7c556715481c79e9727c347aa5e6400d8

Comment 2 Preethi Thomas 2009-12-03 20:49:07 UTC
verified.
http://storm.idm.lab.bos.redhat.com:7080

1. Deployed the JBoss AS plugin on server and agent
2. Imported JBoss instance into inventory
3. Go to 'Inventory' tab for resource corresponding to RHQ server
4. In the subnav click on 'connection properties'

result screenshot attached

Comment 3 Preethi Thomas 2009-12-03 20:50:15 UTC
Created attachment 375909 [details]
connection-tab for jboss server

Comment 4 Preethi Thomas 2009-12-15 16:27:06 UTC
moving status to on_qa as this needs to be verified after the intergration.

Comment 5 Preethi Thomas 2010-01-07 16:00:14 UTC
verified that the connection property is retained for resources
http://10.16.120.159:7080

Comment 6 Corey Welton 2010-08-12 16:48:17 UTC
Mass-closure of verified bugs against JON.