Bug 1312405
Summary: | EAP7 - unable to create xa datasource - At least one xa-datasource-property is required | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> |
Component: | Plugin -- JBoss EAP 7 | Assignee: | Thomas Segismont <tsegismo> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Hayk Hovsepyan <hhovsepy> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | JON 3.3.5 | CC: | hhovsepy, loleary, miburman, spinder, tsegismo |
Target Milestone: | DR01 | Keywords: | Triaged |
Target Release: | One-off release | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-06-06 18:57:59 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: | |||
Bug Blocks: | 1314853 |
Description
Filip Brychta
2016-02-26 15:59:52 UTC
Is adding XA datasource really working for EAP6 either? This is what we send to the server: {"operation":"add","address":[{"subsystem":"datasources"},{"xa-data-source":"XATest"}],"driver-name":"h2","flush-strategy":"FailingConnectionOnly","*2":[{"value":"jdbc:h2:mem:testDatasourceXA;DB_CLOSE_DELAY=-1","key":"url"}],"xa-datasource-class":"org.h2.jdbcx.JdbcDataSource","jndi-name":"ava:jboss/datasources/testDatasourceXA"} Note the "*2" instead of xa-datasource-properties. We don't send that info correctly to EAP6 either. Hmm. Yes it is working for EAP6. There is automation for both UI and CLI. I think that tsegismont will be able to explain "*2" The problem itself is in DatasourcesComponent doing this: CreateResourceDelegate delegate = new CreateResourceDelegate(configDef, getASConnection(), getAddress()); report = delegate.createResource(report); There's later on the fix for this "*2" property, but this one misses it. Pull request sent https://github.com/rhq-project/rhq/pull/215 (In reply to Thomas Segismont from comment #4) > Pull request sent https://github.com/rhq-project/rhq/pull/215 EAP7, unlike EAP6, wants xa-datasource-properties to be part of the creation operation. Same applies to regular datasource. Merged in master commit e07852abc67546365c1fee94cc3ac9f8369a7a68 Merge: 9066941 f6ae2ef Author: Michael Burman <yak> Date: Mon Mar 14 12:07:39 2016 +0200 Verified on jon-plugin-pack-eap-3.3.0.GA-update-03-DR02 XA and Non-XA datasources are able to create. |