Description of problem: This problem is similar to bz 1098187. It takes several hours to load resource configuration unless a user visits the resource configuration via UI. This means that this resource is not included to any dynagroup which uses its configuration. For example Managed Servers in server-group which has following expression: groupby resource.parent.trait[domain-name] groupby resource.resourceConfiguration[group] resource.type.plugin = JBossAS7 resource.type.name = Managed Server Version-Release number of selected component (if applicable): Version : 3.3.0.DR01 Build Number : 6468454:dda0a47 How reproducible: Always Steps to Reproduce: 1. clean JON server is running 2. register new rhq agent which is monitoring eap6 in domain mode 3. import eap6 resource from discovery queue 4. wait for group called "DynaGroup - Managed Servers in server-group ( Unnamed Domain,main-server-group )" to appear in Inventory->All Groups Actual results: It took more then one hour, which is way too long taking in consideration default recalculation interval which is for "Managed Servers in server-group" dynagroup definition 10 minutes. This means that even after several recalculations the actual state of JON groups doesn't reflect actual state of EAP managed servers just because the configuration of Managed Server resource is not yet loaded. Another problem is that after almost 2 hours only one of two EAP managed servers was included in "DynaGroup - Managed Servers in server-group ( Unnamed Domain,main-server-group )" but two managed servers should be there. This probably means that configuration of second managed server was still not loaded. This state is incorrect and confusing. Expected results: JON groups should reflect actual state of EAP managed servers after each recalculation.
Second EAP managed server was not visible in "DynaGroup - Managed Servers in server-group ( Unnamed Domain,main-server-group )" even after 24 hours. I had to visit its configuration via UI and then it was correclty included into that group after next recalculation.
in master commit c79d87fc02caabad3e7ad306f831d895644d2652 Author: Libor Zoubek <lzoubek> Date: Mon Aug 18 12:50:21 2014 +0200 Bug 1129304 - Newly imported resources are not included in dynagroups which use resourceConfiguration in expression for several hours Fixed ConfigurationCheckExecutor which was due to typo (incorrectly nested code inside if/else) not able to load configuration for all resources. in 3.3 branch commit 9c648e9445b06aafb5ba32a31af11b36660430d6 Author: Libor Zoubek <lzoubek> Date: Mon Aug 18 12:50:21 2014 +0200 Bug 1129304 - Newly imported resources are not included in dynagroups which use resourceConfiguration in expression for several hours Fixed ConfigurationCheckExecutor which was due to typo (incorrectly nested code inside if/else) not able to load configuration for all resources. (cherry picked from commit c79d87fc02caabad3e7ad306f831d895644d2652) Signed-off-by: Libor Zoubek <lzoubek>
Moving to ON_QA as available for test with the following brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=381194
Verified on Version : 3.3.0.ER02 Build Number : 4fbb183:7da54e2