Bug 535017 (RHQ-1757)

Summary: Error message after submitting group config change and switching to Current subtab
Product: [Other] RHQ Project Reporter: Jeff Weiss <jweiss>
Component: ConfigurationAssignee: Lukas Krejci <lkrejci>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Weiss <jweiss>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: dajohnso
Target Milestone: ---Keywords: SubBug
Target Release: ---Flags: jweiss: archived+
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1757
Whiteboard:
Fixed In Version: 1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
rev3351
Last Closed: 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: 534605    

Description Jeff Weiss 2009-03-10 17:28:00 UTC
How to repeat:

On a group config page, change a value (homogenously, don't use the modal), and click save.  As soon as the next page loads (the history page) click the link for the Current subtab.   You get this error message:

Failed to load group Resource configuration. Cause: java.lang.Exception:Current group Resource configuration for org.rhq.core.domain.resource.group.ResourceGroup@5a629453 cannot be calculated, because a group Resource configuration update is currently in progress.

This is ugly, if you can't load the tab, you should print "Resource configuration update is currently in progress. Please wait..." and then auto-reload the page every 5-10 seconds.

Comment 1 Joseph Marques 2009-03-20 05:34:17 UTC
rev3465 - better error handling (at UI layer as well as corresponding SLSB) when viewing current group configuration for a resourceGroup that current has INPROGRESS members; 

Comment 2 Joseph Marques 2009-03-20 05:36:26 UTC
note: the page doesn't auto-refresh in these circumstances as i didn't have enough time before 1.2 release to implement the reloading logic conditionally (i.e., only reload if there are inprogress elements, and /do not/ reload if the group config could be calculated).  

Comment 3 Joseph Marques 2009-03-20 05:37:23 UTC
jeff, when testing, make sure that you test the group plugin configuration (a.k.a connection properties) UI pages too, as i changed both areas of code with this single fix.

Comment 4 Jeff Weiss 2009-03-24 18:43:17 UTC
rev3509/linux/postgres: I created a compat group with just my one RHQ server in it.  I edit the connection properties to change the shutdown method to shutdown script, then saved.   Then i clicked the link to go back to the Current page, and got this in a red box:

Failed to load group plugin configuration. Cause: java.lang.Exception:Current group plugin configuration for ResourceGroup[id=500062, name=rhq-1757, category=COMPATIBLE, type=JBossAS Server, isDynaGroup=false, isClusterGroup=false] cannot be calculated, because a group plugin configuration update is currently in progress.

Comment 5 Lukas Krejci 2009-04-17 12:28:06 UTC
the connection properties page should display the correct message now.

Comment 6 Jeff Weiss 2009-04-20 12:52:30 UTC
now get "Configuration update is currently in progress. Please wait a few moments and refresh the page. " on both config and connection properties pages.

rev3798

Comment 7 Red Hat Bugzilla 2009-11-10 20:46:01 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1757