Bug 820700
Summary: | if one or more of the Resources in an avail report is no longer inventoried, then the avail manager EJB throws a hibernate ConstraintViolationException, and the entire avail report fails to be persisted | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Ian Springer <ian.springer> | |
Component: | Core Server | Assignee: | Jay Shaughnessy <jshaughn> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.4 | CC: | ccrouch, hrupp | |
Target Milestone: | --- | |||
Target Release: | RHQ 4.5.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 823665 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-01 09:58:40 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: | 823665 |
Description
Ian Springer
2012-05-10 17:50:58 UTC
I thought I had found an easy solution to this, but actually, I've recreated it again and I see the problem occurs forward of where I had expected. Still examining... master commit dcade39f1641473bfe6db4927b6eeef0208e0e72 Allow for this possible sync issue. Although unlikely it is possible given various up/down states of the server and agent. Protect agains stale resources being sent in an avail report, log decent INFO level messages. Test Notes: To reproduce and see the INFO messages: 0) Server and Agent both UP 1) Inventory some sort of server, like an EAP 5. 2) Shut Down Agent 3) Uninventory the server 4) Wait for the server to wipe the uninventoried resources You should see a server log message about Async delete 5) Shut down server 6) Start agent 7) Wait for agent to eventually get to the prompt, this takes a few minutes while it waits for a server to show up, then finally proceeds. 8) Start server You should see some messages like: 17:02:00,109 INFO [AvailabilityManagerBean] Skipping mergeAvailabilityReport() for stale resource [Resource[id=10864, uid=null, type=<null>, key=null, name=null, parent=<null>]]. These messages should go away after the next agent synchronization with the server. You should not see the stack traces in the description. You can force it again with an "avail --force" agent prompt command. An "inventory --sync" will end the issue. Set Target Release correctly Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since. |