Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1211935

Summary: Change the ModeShape configuration to allow integration with JDG
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Horia Chiorean <hchiorea>
Component: ConfigurationAssignee: Julian Coleman <jcoleman>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: vhalbert
Target Milestone: ---   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-21 15:35:12 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Standlone Mode, ModeShape DV cache config
none
Clustered Domain Mode, ModeShape DV cache config
none
Clustered Domain Mode, JGroups config none

Description Horia Chiorean 2015-04-15 08:53:32 UTC
Created attachment 1014627 [details]
Standlone Mode, ModeShape DV cache config

Since https://issues.jboss.org/browse/JBDVPL-182, ModeShape will stop integrating with the Infinispan subsystem defined in EAP and will start using JDG local artifacts.
For the Teiid - ModeShape integration to work correctly, this requires *several* configuration changes to the current DV ModeShape repository defined as:

<repository name="dv" cache-name="dv" cache-container="modeshape" anonymous-roles="readonly" use-anonymous-upon-failed-authentication="false">

1. Both for standalone & domain mode all Infinispan caches and cache containers created for ModeShape should be removed. In other words, the CLI scripts should not be creating any Infinispan caches & containers for ModeShape


2. For standalone mode:
  
   2.1 The attached dv-cache-config.xml should be placed in standalone/configuration/modeshape folder

   2.2 The repository XML definition (and therefore the CLIs) should be changed so that the "cache-container" attribute (see above) is removed, resulting in:

<repository name="dv" cache-name="dv" anonymous-roles="readonly" use-anonymous-upon-failed-authentication="false">

3. For domain mode:

  3.1 Place the dv-cache-config.xml, dv-ha-cache.config.xml and jgroups-config.xml in the domain/configuration/modeshape folder.

  3.2 For the "default" and "full" profiles change the CLI scripts to produce the following repository element:
      <repository name="dv" cache-config="modeshape/dv-cache-config.xml" anonymous-roles="readonly" use-anonymous-upon-failed-authentication="false" config-relative-to="jboss.domain.config.dir"> 

  3.3 For the "ha" and "full-ha" profiles, change the CLI scripts to produce the following XML:

      <repository name="dv" cache-config="modeshape/dv-ha-cache-config.xml" anonymous-roles="readonly" use-anonymous-upon-failed-authentication="false" config-relative-to="jboss.domain.config.dir"> 
    
and remove the "cache-container" attribute from the <cache-binary-storage/> element, resulting in:

       <cache-binary-storage data-cache-name="dv-binary-data" metadata-cache-name="dv-binary-metadata"/>

Comment 1 Horia Chiorean 2015-04-15 08:54:37 UTC
Created attachment 1014628 [details]
Clustered Domain Mode, ModeShape DV cache config

Comment 2 Horia Chiorean 2015-04-15 08:55:33 UTC
Created attachment 1014629 [details]
Clustered Domain Mode, JGroups config

Comment 3 Horia Chiorean 2015-04-21 15:35:12 UTC
Closing, as ModeShape-JDG integration for DV 6.2 has been decided against. ModeShape for DV 6.2 will still be using the Infinispan 5.x subsystem.