Bug 1115192
| Summary: | Agent Exception When App Attempts To Connect Via API | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Matt Mahoney <mmahoney> | ||||
| Component: | Agent | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | JON 3.2 | CC: | loleary, myarboro | ||||
| Target Milestone: | DR04 | ||||||
| Target Release: | JON 3.2.2 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-29 00:17:01 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: | |||||||
| Attachments: |
|
||||||
Reproduction Step Clarification: Steps to Reproduce: 1. Start agent as root 2. Start a java app with -Dorg.rhq.resourceKey=foo Verified against JON 3.2.2 DR4 This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1]. [1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783 |
Created attachment 913923 [details] Agent.log Description of problem: When agent is started as 'root' and java app (connecting via API) is running as 'root', an agent exception is generated - thus preventing the agent from discovering the java app. 2014-06-30 08:59:16,650 ERROR [ResourceDiscoveryComponent.invoker.daemon-1] (org.modeshape.rhq.ModeShapePlugin)- No ModeShape Engine discovered 2014-06-30 08:59:25,128 WARN [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failure during discovery for [Query Cache] Resources - failed after 115 ms. java.lang.Exception: Discovery component invocation failed. at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:309) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Version-Release number of selected component (if applicable): JON 3.2.2 DR3 How reproducible: Always Steps to Reproduce: 1. Start agent as root 2. Start Java app (that connects via API) as root 3. Actual results: Java application does not inventory Expected results: Java application should inventory Additional info: