Bug 1064957 - Removal of a deployment from EAP6 failed with 'Error while sending delete resource request to agent service'
Summary: Removal of a deployment from EAP6 failed with 'Error while sending delete res...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI, Content, Plugin Container, Plugins
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-13 15:54 UTC by Filip Brychta
Modified: 2014-07-10 12:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-10 12:30:44 UTC
Embargoed:


Attachments (Terms of Use)
server log (391.85 KB, application/x-troff-man)
2014-02-13 15:54 UTC, Filip Brychta
no flags Details

Description Filip Brychta 2014-02-13 15:54:06 UTC
Created attachment 862861 [details]
server log

Description of problem:
This issue can be reproduced more or less reliably by our automation (4 out of 5 runs), but I'm still not able to reproduce it locally. So any hint would be helpful.


Version-Release number of selected component (if applicable):
Version :	
4.10.0-SNAPSHOT
Build Number :	
2dd5c24

How reproducible:
4 out of 5

Steps to Reproduce:
Automation runs a CLI script which does following:
1. find EAP6 standalone instance
2. create a new deployment
3. wait until the deployment is discovered
4. delete the deployment

Actual results:
09:30:54,408 ERROR [org.rhq.enterprise.server.resource.ResourceFactoryManagerBean] (http-/0.0.0.0:7080-5) Error while sending delete resource request to agent service: org.rhq.core.clientapi.agent.PluginContainerException: Resource component container could not be retrieved for resource: 10258
	at org.rhq.core.pc.util.ComponentUtil.getComponent(ComponentUtil.java:100)
	at org.rhq.core.pc.inventory.ResourceFactoryManager.getDeleteResourceFacet(ResourceFactoryManager.java:261)
	at org.rhq.core.pc.inventory.ResourceFactoryManager.deleteResource(ResourceFactoryManager.java:225)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]


Expected results:
No errors

Additional info:
There is no error around 09:30:54 in the agent log. Relevant part of RHQ server log attached.

This automation runs against oracle. I launched one run against postgresql to see if it could be DB specific. I will add a comment with results.

Comment 1 Thomas Segismont 2014-02-13 16:00:44 UTC
Maybe the component has not yet been created/started. Try this approach: wait for the new resource to be "UP" in inventory before deleting it.

Comment 2 Filip Brychta 2014-02-13 16:20:22 UTC
Postgresql run failed as well, so used DB is irrelevant.
Automation is now running with changes described in comment 1

Comment 3 Filip Brychta 2014-02-14 13:32:22 UTC
Waiting for resource to become UP solved the problem, so comment 1 is probably correct.


Note You need to log in before you can comment on or make changes to this bug.