Bug 815343

Summary: [eap6] server configuration initialization should happen when importing, not when discovered
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.4CC: hrupp, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-24 14:00:56 UTC Type: Bug
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: 707223    

Description Libor Zoubek 2012-04-23 12:27:47 UTC
Description of problem: It is quite hard to describe, I'll describe my scenario:

1. I've setup EAP6 as unsecured, I've started it and got it discovered by agent. I've reproduced Bug 789292, so I've decided to secure my EAP. 
2. I've removed EAP from RHQ inventory
3. I've stopped EAP, secured it and started again
4. I've run autodiscovery on agent - for my server with new configuration to be discovered
5. I've imported it and reproduced Bug 789292 again!!

Why that happened? Right afer step 2, EAP was discovered and was still unsecured. Then when I've fixed it's configuration and imported it, RHQ was treating it still as unsecured. That means, there is something, that happens when discovery runs, some initializations.

I think this is a bug in as7 plugin, because it initializes some fields (like path to management realm which is in standalone.xml) during discovery time. 

Probably, in step 4, agent skipped "deeper" discovery of EAP, because it already knew about it

Version-Release number of selected component (if applicable):
Version: 4.4.0-SNAPSHOT
Build Number: 28e565c
EAP6 ER5

How reproducible:always


Expected results: agent should recognize server to be secured even without running step 4.


Additional info:

Comment 1 Heiko W. Rupp 2012-04-24 14:00:56 UTC
Plugin configuration is always initially populated at discovery time and not at import time. That is the way RHQ works.

You can force a re-initialization by changing some plugin configuration properties and save them.