Bug 1037736

Summary: Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component
Product: [Other] RHQ Project Reporter: Thomas Segismont <tsegismo>
Component: PluginsAssignee: Jean-frederic Clere <jclere>
Status: ASSIGNED --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: hrupp, jclere
Target Milestone: ---   
Target Release: RHQ 4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Thomas Segismont 2013-12-03 17:07:21 UTC
Description of problem:
Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component

Version-Release number of selected component (if applicable):
4.7 and up

How reproducible:
Always

Steps to Reproduce:
1. Inventory a Tomcat server
2. Click on "Create Child > Tomcat Virtual Host"

Actual results:
===
org.rhq.core.clientapi.agent.PluginContainerException: Component does not support the [org.rhq.core.pluginapi.inventory.CreateChildResourceFacet] interface: ResourceContainer[resource=Resource[id=10004, uuid=78283a3a-f8d3-4a5b-9b92-e966a4bba150, type={Tomcat}Tomcat Server, key=/home/tsegismont/Tools/apache-tomcat-7.0.37, name=Tomcat (127.0.0.26:8080), parent=localhost.localdomain, version=7.0.37.0], syncState=SYNCHRONIZED, componentState=STARTED, avail=UP]
===

Additional info:
The agent plugin validator shows this error message:
===
Component class [org.jboss.on.plugins.tomcat.TomcatServerComponent] for resource type [Tomcat Server] from plugin [Tomcat] does not support the child creation facet but has metadata saying it can.
===

Comment 1 Thomas Segismont 2013-12-03 17:11:44 UTC
Email sent to the devel list:
https://lists.fedorahosted.org/pipermail/rhq-devel/2013-December/003275.html

Comment 2 Thomas Segismont 2013-12-03 17:17:28 UTC
Rémy,

I'm assigning this BZ to you as you authored commit 417fbb5.

"Tomcat Virtual Host" resources should not be creatable or the TomcatServerComponent should implement CreateChildResourceFacet.

Thanks,
Thomas