Description of problem: After using Manually Add - Script to a JBossAS5 resource, the child resource cannot be deleted. Version-Release number of selected component (if applicable): JON23 How reproducible: Steps to Reproduce: 1. From within an inventoried JBossAS5 server... 2. Goto INVENTORY / OVERVIEW 3. Manually Add -Script create a dummy.sh script on the patform of the JBossAS5 server and enter the Path to it. 4. Now that the script has been successfully added as a child resource.... 5. Try to DELETE it... Actual results: There is no checkbox next to child resources of type "Script". Moreover, because you cannot uninventory a service, there is no way to get rid of the inventoried child resource script service. Expected results: Additional info: https://tcms.engineering.redhat.com/case/7891/?from_plan=792
This is specific case of https://bugzilla.redhat.com/show_bug.cgi?id=534750 Closing as a duplicate *** This bug has been marked as a duplicate of bug 534750 ***
I do NOT believe that this is a duplicate of bug 534750. Bug 534750 has to do with uninventory/ignore of services. That means that the service still exists on the platform, but for some reason you do not want the RHQ server to pay attention to it. This bug is concerned with "Deletion" of a child resource from disk. In this defect, after manually adding a child resource (a Script) to the inventory of a JBossAS5, there is no way to "Delete" it. The GUI needs is missing the checkboxes next to the scripts. Once the checkboxes are there, I expect that the manually added scripts can be checked and 'Delete'd. The result will be that the script is 'rm' from the file system. Re-opening this defect...
commit 118963a293ce0e6682d6cc951e9354dbd1bc8f60 Author: Lukas Krejci <lkrejci> Date: Fri Nov 12 13:19:25 2010 +0100 BZ 568917 - Enable creation of as5 scripts by uploading them to the server's bin. Also added support to delete arbitrary script. Only scripts with the supported file extensions can be successfully deployed so that they are auto-discovered later and thus appear in the inventory after their uploading.
This needs to be worked on some more...
This needed more work so the commit that implements this feature in full is: commit 689adfded272d5021c61a05e67acd87b0717205a Author: Lukas Krejci <lkrejci> Date: Thu Nov 18 14:16:50 2010 +0100 BZ 568917 - Implementing ContentFacet on ScriptComponent so that the support for uploading a new script is complete.
Verified on JON 2.4.1 Revision: 10957 (build #28) Observation: There is check box next to child resources of type "Script" (uninventory is also working fine) and also on inventory tab of the JBossAS server script has check box and can be deleted.
This has been verified long time ago.