Bug 756106

Summary: RHQ Agent resource is UP, but all its child Resources are DOWN
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Plugin ContainerAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.2CC: ccrouch, hrupp, lkrejci
Target Milestone: ---   
Target Release: RHQ 4.3.0, JON 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:24:27 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: 752488    
Attachments:
Description Flags
screenshot
none
agent log containing various errors related to null plugin classloader and failing to init plugin classloader none

Description Ian Springer 2011-11-22 17:21:13 UTC
This should never happen ...

Each of the DOWN resources has a Resource error like this:

org.rhq.core.clientapi.agent.PluginContainerException: Failed to start component for resource Resource[id=10166, type=Plugin Container, key=rhq.pc:type=PluginContainer, name=Agent Plugin Container, parent=RHQ Agent].
	at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:1601)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.checkInventory(AvailabilityExecutor.java:202)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.checkInventory(AvailabilityExecutor.java:238)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.checkInventory(AvailabilityExecutor.java:238)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.call(AvailabilityExecutor.java:127)
	at org.rhq.core.pc.inventory.AvailabilityExecutor.run(AvailabilityExecutor.java:90)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: No plugin class loader was specified for org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread@12ec7979.
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:548)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	... 3 more


I'm thinking this may be a plugin container bug. Note, I ran the "plugins update" Agent prompt command a couple times prior to noticing this issue.

Comment 1 Ian Springer 2011-11-22 17:23:00 UTC
Created attachment 535126 [details]
screenshot

Comment 2 Ian Springer 2011-11-22 18:10:43 UTC
Created attachment 535143 [details]
agent log containing various errors related to null plugin classloader and failing to init plugin classloader

Comment 3 Ian Springer 2011-11-22 21:31:37 UTC
[master b33a340] - ensure resource classloader is initialized in processSyncInfo() prior to making any resource component facet calls.

QE, try running the "plugins update" Agent prompt command and then checking for Agent child resources being down or any other conspicuous availability-related problems.

Comment 4 Lukas Krejci 2011-11-25 12:15:35 UTC
Looks good in master.

Comment 5 Ian Springer 2011-11-28 19:53:23 UTC
Cherry-picked to release_jon3.x branch - commit ebdd048:

http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=ebdd048

Comment 6 Mike Foley 2012-02-07 19:24:27 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE

Comment 7 Mike Foley 2012-02-07 19:26:29 UTC
marking VERIFIED JON 3 bugs to CLOSED/CURRENTRELEASE