Bug 596480
Summary: | Data source configuration update crashes RHQ server | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | John Sanda <jsanda> | ||||||||
Component: | Configuration | Assignee: | Heiko W. Rupp <hrupp> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Heiko W. Rupp <hrupp> | ||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 3.0.0 | CC: | hrupp, rtimaniy | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2010-08-12 16:52:16 UTC | Type: | --- | ||||||||
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: | 591531, 593121 | ||||||||||
Attachments: |
|
Description
John Sanda
2010-05-26 19:41:23 UTC
Further testing reveals that the rhq-ds.xml is getting screwed up. I realized this after bouncing both of my database and rhq server and still having the problem. It wasn't until I replaced rhq-ds.xml with a clean version that my server started up properly. Created attachment 417252 [details]
diff of rhq-ds.xml before and after the configuration update
Here is a diff ignoring whitespace, 1,2c1 < <?xml version="1.0"?> < --- > <?xml version="1.0" encoding="UTF-8"?> 4d2 < 6d3 < 15,18c12 < < <track-connection-by-tx/> < <user-name>${rhq.server.database.user-name}</user-name> < <password>${rhq.server.database.password}</password> --- > <track-connection-by-tx /> 25a20 > <xa-datasource-property name="URL">jdbc:postgresql://127.0.0.1:5432/rhqdev</xa-datasource-property> 27d21 < 44d37 < 45a39 > So the problem is we're adding <xa-datasource-property name="URL"> and losing username/password properties John: do you recall the change you wanted to make? In general messing with datasources of running applications is flaky on the JBossAS itself, so the question is if we should disable this for the RHQ server anyway I don't think that there was a particular change I was trying to make. If memory serves, I think I stumbled onto this while testing a group config update bug, and I was using a group of data sources. 1e195a7280079f300fba44f774de96dc42201e18 on release-3.0.0 Tested on JON 2.4 GA_QA (tag-jon-release build #42) http://hudson-qe.rhq.rdu.redhat.com:8080/view/JON/job/tag-jon-release/42/ Steps: 1. Log into your rhq server which should also be in inventory 2. Go the configuration tab for the RHQDS data source 3. Change the value of the prepared statement cache size 4. Refer server log Observation: Update 'prepared statement cache size' value but it gives error/exception in server log 2010-06-28 15:38:28,796 ERROR [org.quartz.core.ErrorLogger] An error occured while firing trigger 'org.rhq.enterprise.server.scheduler.jobs.CloudManagerJob.org.rhq.enterprise.server.scheduler.jobs.CloudManagerJob' org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'NoTxRHQDS': java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:/NoTxRHQDS' org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.) [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:/NoTxRHQDS' org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)] at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(JobStoreCMT.java:167) at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3750) at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2841) at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:342) Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:/NoTxRHQDS' org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.) at org.quartz.utils.JNDIConnectionProvider.getConnection(JNDIConnectionProvider.java:166) at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:112) at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(JobStoreCMT.java:164) ... 3 more Created attachment 427379 [details]
server log
Rajan, can you please attach the created rhq-ds.xml ? Heiko Created attachment 427388 [details]
rhq-ds.xml
I was discussing this with Rajan yesterday .. the server spit out some exceptions, which is expected, as the datasource becomes unavailable for a moment when it gets (re)deployed by the update. Rajan confirmed, that he was able to continue working on the server later on, so I see this as fixed. Also the generated rhq-ds.xml is (except for whitespace) the same as the one we supply. Assigning back to QA Verified on JON 2.4 GA_QA (tag-jon-release build #44) As per discussed with Heiko - JON server gives exception in server log which is expected, as the datasource unavailable for a moment when it gets (re)deployed by the update. Mass-closure of verified bugs against JON. |