Bug 759152

Summary: Plugin install does not tell that a plugins needs a dependency
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: low    
Version: 4.2CC: dlackey, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Heiko W. Rupp 2011-12-01 09:35:29 EST
Start with a fresh RHQ instance, do not install jboss-as and jboss-cache plugin by default

Go to the admin UI, upload the jboss-cache plugin. UI will show a green bar, but the plugin is not showing up, no matter how often I press scan for updates, Server log shows [1]

Only then when I upload the as5 plugin, the cachev3 plugin shows up in the list.

We should show a message in the UI that the cache plugin is not deployed because of missing dependencies.




[1]
15:33:14,807 INFO  [ProductPluginDeployer] Deploying [1] new or updated agent plugins: [JBossCache3]
15:33:14,807 ERROR [ProductPluginDeployer] Plugin [JBossAS5] is required by plugins [[JBossCache3]] but it does not exist in the dependency graph yet
15:33:14,807 INFO  [PluginDependencyGraph] Reducing dependency graph by not including plugin [JBossCache3]. Cause: java.lang.IllegalArgumentException: Plugin [JBossAS5] is required by plugins [[JBossCache3]] but it does not exist in the dependency graph yet
15:33:14,807 INFO  [ProductPluginDeployer] Plugin metadata updates are complete for [0] plugins: []