Bug 817863

Summary: [as7] [itests] a number of Resources do not get imported by the fake RHQ Server in the itest environment
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.3CC: hbrock, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=808231
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:
Bug Depends On:    
Bug Blocks: 707223    

Description Ian Springer 2012-05-01 12:05:11 EDT
The Arquillian+Mockito-based test infrastructure is supposed to auto-import all Resources that are discovered, so there is a bug somewhere in that infrastructure.

The significant consequence of this issue is that the Resources that are not imported and never started/activated in the test PC and we are not able to run our generic tests (e.g. checking for null metric values, checking for invalid Resource configs) on them.

We have a test which asserts that all Resource components are started. Here is the output from that test, which lists the ResourceContainers of the Resources that did not start (limiting it to one container per ResourceType). As can be seen from the output, all of the container have syncState=NEW, which either means:

a) the Resource never got imported/committed on the fake Server side
or 
b) the Resource got imported but the inventory status didn't get synced to the PC side

testAllResourceComponentsStarted(org.rhq.modules.plugins.jbossas7.itest.GenericJBossAS7PluginTest): Resource containers with non-started Resource components by type: {{jboss-as-7}JVM Definition=ResourceContainer[resource=Resource[id=0, uuid=ca5c2cdf-df16-45b6-bb55-44f896acb5a4, type={jboss-as-7}JVM Definition, key=server-group=other-server-group,jvm=default, name=default, parent=other-server-group], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JPA=ResourceContainer[resource=Resource[id=0, uuid=61a2f83a-fdb1-4d3e-9f47-d1edfe0c6c08, type={jboss-as-7}JPA, key=profile=default,subsystem=jpa, name=jpa, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JBossWeb=ResourceContainer[resource=Resource[id=0, uuid=310d5b27-4ea8-496b-9e3d-2a3e2b368e23, type={jboss-as-7}JBossWeb, key=profile=default,subsystem=web, name=web, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Remoting=ResourceContainer[resource=Resource[id=0, uuid=a1c2e9c1-244e-414f-9b03-7db60287d503, type={jboss-as-7}Remoting, key=profile=default,subsystem=remoting, name=remoting, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Webservices=ResourceContainer[resource=Resource[id=0, uuid=9f8aede8-9459-4020-933e-f84003a2badc, type={jboss-as-7}Webservices, key=profile=default,subsystem=webservices, name=webservices, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}EJB3=ResourceContainer[resource=Resource[id=0, uuid=b67bb43c-3885-4a8f-bdab-e2e80ed51034, type={jboss-as-7}EJB3, key=profile=default,subsystem=ejb3, name=ejb3, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Transactions Subsystem (Domain)=ResourceContainer[resource=Resource[id=0, uuid=cbd54d67-9724-44b2-bff4-7f703e321ba9, type={jboss-as-7}Transactions Subsystem (Domain), key=profile=default,subsystem=transactions, name=transactions, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Resource Adapters=ResourceContainer[resource=Resource[id=0, uuid=ac270ac5-d88c-4213-b8ab-2bc52cb7d966, type={jboss-as-7}Resource Adapters, key=profile=default,subsystem=resource-adapters, name=resource-adapters, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}EE=ResourceContainer[resource=Resource[id=0, uuid=41ed837b-5a8c-4382-8ab6-0bd1b1cee38f, type={jboss-as-7}EE, key=profile=default,subsystem=ee, name=ee, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Threads=ResourceContainer[resource=Resource[id=0, uuid=b71934bd-cb9c-4f88-918b-6f71dd602b3d, type={jboss-as-7}Threads, key=profile=default,subsystem=threads, name=threads, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JMX=ResourceContainer[resource=Resource[id=0, uuid=8a097c07-3490-4498-bc1c-c2a1c2a26efc, type={jboss-as-7}JMX, key=profile=default,subsystem=jmx, name=jmx, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JDR=ResourceContainer[resource=Resource[id=0, uuid=e805dd2a-cfdf-4089-83cc-1d29168d9436, type={jboss-as-7}JDR, key=profile=default,subsystem=jdr, name=jdr, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Datasources (Profile)=ResourceContainer[resource=Resource[id=0, uuid=d11d0146-37bb-4097-a01d-ae47575ae804, type={jboss-as-7}Datasources (Profile), key=profile=default,subsystem=datasources, name=datasources, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JCA=ResourceContainer[resource=Resource[id=0, uuid=b779f8cd-c3f5-4a09-892a-2145715c2105, type={jboss-as-7}JCA, key=profile=default,subsystem=jca, name=jca, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Security=ResourceContainer[resource=Resource[id=0, uuid=05d240a9-59d1-4044-bb83-473987e774ea, type={jboss-as-7}Security, key=profile=default,subsystem=security, name=security, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Mail=ResourceContainer[resource=Resource[id=0, uuid=db7a94fd-ec6d-4eaa-a57a-6090891ffa97, type={jboss-as-7}Mail, key=profile=default,subsystem=mail, name=mail, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Infinispan=ResourceContainer[resource=Resource[id=0, uuid=79b3a9fb-ec40-4ed7-976f-1159cb8f3b5c, type={jboss-as-7}Infinispan, key=profile=default,subsystem=infinispan, name=infinispan, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Logging=ResourceContainer[resource=Resource[id=0, uuid=cc5cae78-9724-4f97-87a2-ad2a8c9956d1, type={jboss-as-7}Logging, key=profile=default,subsystem=logging, name=logging, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Osgi=ResourceContainer[resource=Resource[id=0, uuid=c406a45c-c9ac-44d7-a554-91def433f597, type={jboss-as-7}Osgi, key=profile=default,subsystem=osgi, name=osgi, parent=default], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Datasources (Managed)=ResourceContainer[resource=Resource[id=0, uuid=0f7b094f-995d-4ad0-a752-cc7fff7f364b, type={jboss-as-7}Datasources (Managed), key=host=master,server=server-two,subsystem=datasources, name=datasources, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JAXR=ResourceContainer[resource=Resource[id=0, uuid=b0be9326-cf47-4aef-ba62-25e50efd50a6, type={jboss-as-7}JAXR, key=host=master,server=server-two,subsystem=jaxr, name=jaxr, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JacORB=ResourceContainer[resource=Resource[id=0, uuid=c59e00eb-6e2a-463c-8d11-b55c1f6b6a60, type={jboss-as-7}JacORB, key=host=master,server=server-two,subsystem=jacorb, name=jacorb, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Messaging-Provider=ResourceContainer[resource=Resource[id=0, uuid=7745300c-80d4-4d9c-868d-b89dbf34075a, type={jboss-as-7}Messaging-Provider, key=host=master,server=server-two,subsystem=messaging, name=messaging, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Transactions Subsystem (Managed)=ResourceContainer[resource=Resource[id=0, uuid=e09f9f69-feab-47cf-b59f-f36518ea35ff, type={jboss-as-7}Transactions Subsystem (Managed), key=host=master,server=server-two,subsystem=transactions, name=transactions, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}CMP=ResourceContainer[resource=Resource[id=0, uuid=ce580be6-784d-4a1b-a970-6b2c337ccfe6, type={jboss-as-7}CMP, key=host=master,server=server-two,subsystem=cmp, name=cmp, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JVM=ResourceContainer[resource=Resource[id=0, uuid=0e6978de-5c09-4f63-b1d8-0f0ff8561151, type={jboss-as-7}JVM, key=host=master,server=server-two,core-service=platform-mbean, name=host=master,server=server-two,core-service=platform-mbean, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Naming=ResourceContainer[resource=Resource[id=0, uuid=21779c8e-a306-4e6f-8514-f6897e1422d1, type={jboss-as-7}Naming, key=host=master,server=server-two,subsystem=naming, name=naming, parent=EAP server-two], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}Network Interface=ResourceContainer[resource=Resource[id=0, uuid=b3c2cfb9-3b51-468a-b437-b4d7b74e243f, type={jboss-as-7}Network Interface, key=host=master,interface=public, name=public, parent=master], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JVM Definition (Host)=ResourceContainer[resource=Resource[id=0, uuid=6653ee0e-bd4e-4c79-8ca2-c9e4458e9aab, type={jboss-as-7}JVM Definition (Host), key=host=master,jvm=default, name=default, parent=master], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}JGroups=ResourceContainer[resource=Resource[id=0, uuid=c8710f4f-2582-4fda-ad28-cc53ed4daed9, type={jboss-as-7}JGroups, key=profile=ha,subsystem=jgroups, name=jgroups, parent=ha], syncState=NEW, componentState=STOPPED, avail=null], {jboss-as-7}ModCluster Domain Service=ResourceContainer[resource=Resource[id=0, uuid=e0092adc-6a73-4f6f-b6a1-57d8180d6e3c, type={jboss-as-7}ModCluster Domain Service, key=profile=ha,subsystem=modcluster, name=modcluster, parent=ha], syncState=NEW, componentState=STOPPED, avail=null]} expected:<true> but was:<false>



NOTE: testAllResourceComponentsStarted has been temporarily disabled. We should re-enable it, once this issue has been fixed.
Comment 1 Ian Springer 2012-05-01 12:06:25 EDT
I was hopeful that the fix for bug 808231 would fix this issue; unfortunately, it did not.