Bug 672943

Summary: When an EAR is removed, It's not possible to add it to inventory again
Product: [Other] RHQ Project Reporter: Bruno Machado <bmachado>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0CC: rsoares
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-04 21:45:50 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:
Attachments:
Description Flags
The EAR file used for testing.
none
The datasource file used for testing. none

Description Bruno Machado 2011-01-26 18:49:09 UTC
Description of problem:

EAR deployed in JON 2.4 can be removed because there is the "DELETE" button exposed on the
resources page. However, when you try to add it again using the "Create new option"
in the inventory page, or even copying the same EAR to the deploy directory in JBoss EAP 5.x
it doesn't appear to Jon auto-discovery tab or any other page. It's impossible to
make it visible to Jon again after this operation. To make it visible to Jon
again we need to do an uninventory of the full JBoss EAP stack and inventory it again.



Version-Release number of selected component (if applicable):
Tested in JON 2.4.0 and JBoss EAP 5.1

How reproducible:
Reproducible every time.

Steps to Reproduce:
I used customers EAR file.

1. Run JON server;
2. Run JON agent;
3. Run JBoss - I used 5.1, "default" configuration;
4. Add JBoss to the inventory;
5. Deploy sicos-ds.xml file (for JBoss 5.1 resource -> go to Inventory
-> Overview tab and add a new Datasource)
6. Deploy mps-sicos-ear.ear file (for JBoss 5.1 resource -> go to Inventory
-> Overview tab and add EAR file)
7. Confirm that the EAR file is properly deployed.
8. To delete the EAR file and all resources that were deployed with it - on the
same Inventory -> Overview tab -> check the delete check box located next to
the mps-sicos-ear.ear file and press "DELETE" button.
This step could be also done using the Resources menu -> Services -> check the
checkbox located next to mps-sicos-ear.ear -> uninventory selected
9. Reproduce the steps 5, 6 and 7 again.

Actual results:

When you reproduce 7, you will see that mps-sicos-ear.ear is not deployed
an it doesn't appear in any other place to be included in JON inventory again.

Expected results:

When you reproduce 7, we expected that the mps-sicos-ear.ear should be
available to be monitored and controled by JON again


Additional info:

Comment 1 Bruno Machado 2011-01-26 18:50:37 UTC
Created attachment 475464 [details]
The EAR file used for testing.

Comment 2 Bruno Machado 2011-01-26 18:51:14 UTC
Created attachment 475466 [details]
The datasource file used for testing.

Comment 3 Charles Crouch 2011-10-04 21:45:50 UTC

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