Bug 781020 (SOA-3502) - Deleting a VDB from inventory does not remove it
Summary: Deleting a VDB from inventory does not remove it
Keywords:
Status: CLOSED DUPLICATE of bug 739789
Alias: SOA-3502
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JON
Version: 5.2.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-20 11:57 UTC by Pavel Kralik
Modified: 2013-04-30 23:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-3502 0 Major Closed Deleting a VDB from inventory does not remove it 2014-02-04 07:31:57 UTC
Red Hat Issue Tracker TEIID-1811 0 Major Closed Deleting a VDB from inventory does not remove it 2014-02-04 07:31:57 UTC

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 ***


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