Bug 544316

Summary: [raw-config] Raw only server config change history is not being displayed in the UI
Product: [Other] RHQ Project Reporter: Preethi Thomas <pthomas>
Component: ConfigurationAssignee: John Sanda <jsanda>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecified   
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:49:05 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
history-raw-server none

Description Preethi Thomas 2009-12-04 15:19:05 UTC
Description of problem:
Raw only server config change history is not being displayed in the UI

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


How reproducible:


Steps to Reproduce:
1.Login to rhq
2.Navigate to the Raw server resource
3.Click on configure and Edit files
4. Edit a file & commit (This step is not necessary to reproduce the bug I think)
5. Now Navigate to History of the raw server(configuration->history


  
Actual results:
None of the versions of the config file are displayed in the Configuration History UI

Expected results:
All the versions of the config should be displayed and should be able to revert to any versions

The page should refresh on navigating away
Additional info:

Comment 1 John Sanda 2009-12-15 03:25:39 UTC
The UI code, ListConfigurationUpdateUIBean, calls 
ConfigurationManagerBean.findResourceConfigurationUpdates(). That method has logic
which checks that the configuration definition actually supports updates. It does this by checking that there exists property definitions. If none exists, the
method returns immediately without even querying for updates. That logic of course applies to structured only configurations. It has been modified for raw.

The commit hash for these changes is,

c73d40ce3406a3cc904fb34429b9248b48f8e531

I have tested this manually and verified that I am now able to see the update history for a resource that supports raw configuration.

Comment 2 Preethi Thomas 2009-12-15 19:25:18 UTC
This fixed in latest raw-config branch.
moving to on_qa to test after merge.

Comment 3 Preethi Thomas 2010-01-07 14:27:42 UTC
Created attachment 382242 [details]
history-raw-server

Comment 4 Preethi Thomas 2010-01-07 14:28:20 UTC
verified. check the above ss 
master build
http://10.16.120.159:7080

Comment 5 Corey Welton 2010-08-12 16:49:05 UTC
Mass-closure of verified bugs against JON.