Bug 1084651
| Summary: | Storage Node (un)deployment can cause deadlock in rhq_storage_node table | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | John Sanda <jsanda> |
| Component: | Core Server, Storage Node | Assignee: | Jay Shaughnessy <jshaughn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.2 | CC: | fbrychta, hrupp, jshaughn, loleary, mazz, myarboro |
| Target Milestone: | DR02 | Keywords: | Triaged |
| Target Release: | JON 3.2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1079027 | Environment: | |
| Last Closed: | 2014-07-29 00:17:10 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: | 1079027 | ||
| Bug Blocks: | |||
|
Description
John Sanda
2014-04-05 01:59:00 UTC
I am reassigning to Jay since he did the work on this. I started to cherry pick the first commit. There are some merge conflicts. I would feel more comfortable with Jay resolving those conflicts since he is more familiar with the changes.
Missing in the list above was:
master commit 4921949e2e203015cf09f699b5d7a1352daab3a0:
Initial commit that attempts to remove umbrella transactions starting at
many entry points, such that scheduling operations happens in their own
trans context. Needs review and testing...
---------------------------------------------------------------------------
So, backport of fixes includes the following release/jon3.2.x commits:
commit e2363d24122bcf734ccf00e2b55c12a9b17cee29
Author: Jay Shaughnessy <jshaughn>
Date: Tue May 27 16:26:31 2014 -0400
Fix issue with new transactioning that left some entity changes uncommitted.
Cherry-Pick master 919604ca697644ecf9fc8109395ecac9d21d781c
commit 7a711090fbcc8effa86dc918e1e543568ad4d28f
Author: Jay Shaughnessy <jshaughn>
Date: Tue May 27 16:25:05 2014 -0400
More changes to LinkStorageNode to try and get the transactioning right.
Cherry-Pick master b8523c3bc2bc09eb7a9ce09005ded4a4a9cd364a
commit 5c4dc2d09b20d1eb73dbc2191920759d660b7c16
Author: Jay Shaughnessy <jshaughn>
Date: Fri Mar 21 15:52:48 2014 -0400
Make sure StorageNode is committed before we try and deploy it.
Cherry-Pick master 710c93131f44dc32ab7397dafdec23c086dc2758
commit d413e07e6c129e7bafcfd468f0890eff50ee50ca
Author: Jay Shaughnessy <jshaughn>
Date: Tue May 27 16:23:54 2014 -0400
Transaction delimiters have been updatedin StorageNode beans to try and
prevent db-locking issues. This caused a problem for storage node
deployment during mergeInventory, because it relied on an umbrella
transaction providing a persisted (but not yet committed) Resource.
Added a general mechanism for performing post-commit actions on newly
merged resources and leveraged it to perform linking a StorageNode to a
Resource.
Conflicts:
modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/discovery/DiscoveryBossBean.java
Cherry-Pick master b6e70d104756db633df7b4ff642c29e3fad81d2b
commit a6597c38bbe77fda9df9dd9a831b91aeed459fd5
Author: Jay Shaughnessy <jshaughn>
Date: Thu Mar 20 17:17:17 2014 -0400
Initial commit that attempts to remove umbrella transactions starting at
many entry points, such that scheduling operations happens in their own
trans context. Needs review and testing...
Conflicts: modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/cloud/StorageNodeManagerBean.java
Cherry-Pick master 4921949e2e203015cf09f699b5d7a1352daab3a0
Moving to ON_QA as available for test in latest cumulative patch build(DR01): http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/3.2.2.GA/5-29-2014/ Verified on Version : 3.2.0.GA Update 02 Build Number : 055b880:0620403 I verified following on oracle db: 1- there was no deadlock during deployment(all storage nodes were discovered and became UP with Cluster status NORMAL) 2- parallel undeployment works with this exception bz 1107579 3- sequential deployment/undeployment works correctly with this exception bz 1104647 but this doesn't mean that parallel deployment works. See bz 1106505. This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1]. [1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783 |