Bug 1314437

Summary: ModeShape vdb undeployed on startup when data-roles-required is set to true
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: Teiid, ModeShapeAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Andrej Smigala <asmigala>
Severity: high Docs Contact:
Priority: medium    
Version: 6.3.0CC: aszczucz, blafond, drieden, felias, jolee, lfabriko, mbaluch, thauser, vhalbert
Target Milestone: ER5Keywords: Reopened
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
URL: CloudForms for Management for the 7.x version
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:44:51 UTC Type: Bug
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: 1334945    
Bug Blocks:    

Description Andrej Smigala 2016-03-03 15:34:38 UTC
When the data-roles-required property (see TEIID-3419) is set to true, the ModeShape vdb gets undeployed on server startup, because it does not have any data roles defined.


ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.teiid.vdb.ModeShape.1: org.jboss.msc.service.StartException in service jboss.teiid.vdb.ModeShape.1: org.teiid.deployers.VirtualDatabaseException: TEIID40143 ModeShape.1[ModeShape{ModeShape=ModeShape, modeshape, java:/datasources/ModeShapeDS}, VDB_Lineage{}, Relational_Model_View{}] deploy failed - data roles are required, but none are defined.
        at org.teiid.jboss.VDBService.start(VDBService.java:182)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_72]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_72]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_72]
Caused by: org.teiid.deployers.VirtualDatabaseException: TEIID40143 ModeShape.1[ModeShape{ModeShape=ModeShape, modeshape, java:/datasources/ModeShapeDS}, VDB_Lineage{}, Relational_Model_View{}] deploy failed - data roles are required, but none are defined.
        at org.teiid.deployers.VDBRepository.addVDB(VDBRepository.java:95)
        at org.teiid.jboss.VDBService.start(VDBService.java:179)
        ... 5 more

Comment 2 Van Halbert 2016-03-03 16:06:59 UTC
This probably looks like expected behavior, because the VDB is not accessible because it has no roles.  Not sure what other expected behavior, unless just indicating its inactive, but that's still essentially the same as not being able to be deployed.   Will get the engineer to confirm.

Comment 3 Van Halbert 2016-03-03 17:05:09 UTC
Confirmed with Steve, that this is the expected behavior.  That the VDB will fail deployment when data-roles-required=true and the VDB does not define any roles.

Comment 4 Filip Elias 2016-03-07 14:59:09 UTC
I was decided on bug triage to record this behavior in documentation. 

User should be informed that if he/she set data-roles-required to true, the Modeshape VDB will fail to deploy.

Comment 5 Andrej Smigala 2016-03-07 15:18:55 UTC
Another solution would be to add a datarole with grant-all and any-authenticated set to true, this should not break anything and still allow the vdb to deploy when data-roles-required is set.

Comment 6 Van Halbert 2016-03-09 13:52:04 UTC
Assuming the ModeShape issues accessing the repository get resolved in ER2, then this issue can get resolved in ER3.

Comment 9 JBoss JIRA Server 2016-05-11 14:10:00 UTC
Van Halbert <vhalbert> updated the status of jira TEIIDDES-2839 to Closed

Comment 10 Andrej Smigala 2016-06-09 08:56:34 UTC
The ER4.1 build still contains the old ModeShape.vdb in $JBOSS_HOME/dataVirtualization/vdb.

The md5sum is ad608c45b2476062dbd870901473781a, same as in ER3 and ER4.1

Comment 13 Van Halbert 2016-06-09 13:36:35 UTC
Ah, I see the issue.  The vdb in the Teiid kit is still there, it didn't get removed.   So there are 2, one Teiid and the other in Teiid-modeshape.   I can delete it in Teiid for the next build.