Bug 781020 (SOA-3502)

Summary: Deleting a VDB from inventory does not remove it
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Pavel Kralik <pkralik>
Component: JONAssignee: Default User <jbpapp-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0 GACC: mvecera, pkralik, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3502
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
JON 2.4.1/3.0.0, PostgreSQL 8.4.8, OpenJDK 1.6.0, SOA-P/EDS 5.1.0/5.2.0 GA
Last Closed: 2012-01-24 18:33:26 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:

Description Pavel Kralik 2011-10-20 11:57:08 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Steps to Reproduce: 1. Deploy a vdb to EDS
2. Have agent report vdb to JON, verify in GUI
3. In JON inventory, delete the vdb
project_key: SOA

Using JON 2.4, deleting a VDB through JON GUI inventory removes the vdb from
the EDS instance, but does not remove it from inventory.  Instead, it shows the
vdb as unavailable.

How reproducible:


Steps to Reproduce:
1. Deploy a vdb to EDS
2. Have agent report vdb to JON, verify in GUI
3. In JON inventory, delete the vdb

Actual results:
VDB is removed from physical server but remains in JON inventory, just as
disabled.  It remains there even after running 'discovery -f' from the agent
console.

Expected results:
VDB is removed from physical server and removed from JON inventory.

Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=739789

Comment 1 Len DiMaggio 2011-10-20 13:31:50 UTC
Affects: Added: Documentation (Ref Guide, User Guide, etc.)


Comment 2 RH Bugzilla Integration 2011-10-25 11:58:30 UTC
Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=739789


Comment 3 Pavel Kralik 2011-11-03 18:22:14 UTC
JON 2.4.1.GA, PostgreSQL 8.4.8, OpenJDK 1.6.0, SOA-P/EDS 5.2.0 ER6
Plugin packs: https://brewweb.devel.redhat.com//buildinfo?buildID=185293

Deleting the VDB leads to NPE:


java.lang.Exception: Failed to stop deployment 'materialized.1' - cause: java.lang.RuntimeException: java.lang.NullPointerException
	at org.teiid.rhq.plugin.Facet.deleteResource(Facet.java:415)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)


Comment 4 Pavel Kralik 2011-11-03 18:22:58 UTC
Tested with JON 3.0.0 BETA3, PostgreSQL 8.4.8, OpenJDK 1.6.0, SOA-P/EDS
5.1.0.GA

The VDB deleted from JON is removed physically and from JON 3 inventory too.

Comment 5 Van Halbert 2011-11-03 20:33:07 UTC
Link: Added: This issue Cloned to SOA-3555


Comment 6 Van Halbert 2012-01-24 18:33:26 UTC

*** This bug has been marked as a duplicate of bug 739789 ***