Bug 1099501
| Summary: | Content not rediscovered after package removal | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Lukas Krejci <lkrejci> |
| Component: | Content, Plugin Container | Assignee: | Lukas Krejci <lkrejci> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.2 | CC: | ahovsepy, hrupp, mfoley, skondkar, snegrea |
| Target Milestone: | ER05 | ||
| Target Release: | JON 3.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1099497 | Environment: | |
| Last Closed: | 2014-12-11 14:00:49 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: | |||
| Bug Depends On: | 1099497 | ||
| Bug Blocks: | |||
|
Description
Lukas Krejci
2014-05-20 13:20:30 UTC
release/jon3.3.x branch commit: https://github.com/rhq-project/rhq/commit/8d27501568e19f159f35c83d8dcce544ad33c3d3 The commit that fixes this issue has been in the release branch for a while; just updating the bug to reflect that. Tested on Uploaded a jar file to EAP 5 resource through EAP5 resource->content->New->Upload new package, then deployed the jar file using 'Deploy Selected' button. Navigated to the Content->Deployed' tab, selected the jar and tried to delete. It shows failure status. Clicking the view link displays UnsupportedOperationException as below: -------------- java.lang.UnsupportedOperationException at org.jboss.on.common.jbossas.AbstractJBossASContentFacetDelegate.removePackages(AbstractJBossASContentFacetDelegate.java:172) at org.rhq.plugins.jbossas5.ApplicationServerComponent.removePackages(ApplicationServerComponent.java:358) 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:601) at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:759) 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:722) --------------------------- The jar remains in the list of deployed packages. Tested on version :3.3.0.ER02 Build Number :4fbb183:7da54e2 Moving into ER05 as didn't make the ER04 cut. Ok, so I discovered this by code inspection and the fix is only inside the plugin container. The test steps were written from top of my head and the exception Sunil got actually proves the plugin container tries to delete the packages. Turns out that the functionality for deleting packages is not implemented in ANY resource type implementing content facet (either due to it being really unsupported for given type of resource or merely because it was not implemented). As such I think we can call this verified, because by getting that exception we proved that the system actually goes out to the correct agent plugin component which then fails because it doesn't implement the feature. But that is not a problem fixed in this BZ. The problem was that before, the compoments were never even called. If we were to decide that we need this implemented we'd have to provide impls in: AS4 and AS5 plugins for JAR files and maybe Linux platform for removing rpms. What is your opinion, Heiko? As this is no regression, I think we should call it a day. Ok, VERIFIED then. |