Bug 729084

Summary: GUI allows an Agent plugin which other plugins depend on to be deleted, without requiring the user to also delete the plugins that depend on it
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WORKSFORME QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.1CC: ccrouch, hrupp, mazz
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-20 02:01:54 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:
Bug Depends On:    
Bug Blocks: 678340    

Description Ian Springer 2011-08-08 17:11:11 UTC
For example, the Augeas plugin,which a bunch of other plugins (Apache, Cron, etc.) depend on, can be deleted. The GUI should do dependency checking and not allow a plugin to be deleted unless the user also deletes all other plugins that depend on that plugin.

Comment 1 Charles Crouch 2011-10-06 19:00:32 UTC
Setting as improvement. For JON3 we will make sure when deleting a plugin users 
are prompted to verify what they are doing

Comment 2 Charles Crouch 2011-10-07 18:28:07 UTC
Added link to https://bugzilla.redhat.com/show_bug.cgi?id=683543, which is 
where we will be putting the plugin deletion warning.

Comment 3 John Mazzitelli 2011-10-20 02:01:54 UTC
I just tried this and its working as expected. I selected the JBossAS plugin and tried to both delete it and disable it. Both times I got appropriate error messages:

You must delete the following dependent plugins also: [JBossCache 2.x Services, mod_cluster, RHQ Server, Hibernate Services]

You must disable the following dependent plugins also: [JBossCache 2.x Services, mod_cluster, RHQ Server, Hibernate Services]

For the plugin specifically mentioned in the description of this BZ, the Augeas plugin, I attempted to disable it and got this:

You must disable the following dependent plugins also: [Aliases, Sudo Access, Cobbler, Samba, Hosts, Postfix, Cron, Apache HTTP Server]

I tried deleting it and got this:

You must delete the following dependent plugins also: [Aliases, Sudo Access, Cobbler, Samba, Hosts, Postfix, Cron, Apache HTTP Server]

This appears to be working as expected.