Bug 1240597
Summary: | ERROR taskomatic org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session | |||
---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Pavel Studeník <pstudeni> | |
Component: | Server | Assignee: | Jan Dobes <jdobes> | |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Hellebrandt <lhellebr> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 570 | CC: | dyordano, jdobes, jhutar, lhellebr, tlestach | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | spacewalk-java-2.3.8-157 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1406453 (view as bug list) | Environment: | ||
Last Closed: | 2017-02-01 15:55:27 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: | 1368978, 1406453 |
Description
Pavel Studeník
2015-07-07 10:29:34 UTC
*** Bug 1267546 has been marked as a duplicate of this bug. *** Steps to reproduce: 1. Have some kickstartable tree synced, fedora-24-server in this case 2. Create some kickstart profiles (may not be needed), e.g. by following python script: ==== #!/usr/bin/python import xmlrpclib SATELLITE_URL = "http://localhost/rpc/api" SATELLITE_LOGIN = "admin" SATELLITE_PASSWORD = "nimda" client = xmlrpclib.Server(SATELLITE_URL, verbose=0) key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD) for i in range(0, 100): client.kickstart.createProfile(key, 'X-ks-profile-%s' % i, 'none', 'fedora-24-server', 'localhost', '1234', 'none') client.auth.logout(key) ==== 3. Keep running following script: ==== #!/usr/bin/python import xmlrpclib import time SATELLITE_URL = "http://localhost/rpc/api" SATELLITE_LOGIN = "admin" SATELLITE_PASSWORD = "nimda" client = xmlrpclib.Server(SATELLITE_URL, verbose=0) key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD) try: client.kickstart.deleteProfile(key, 'ks-profile-test') except: pass while True: client.kickstart.createProfile(key, 'ks-profile-test', 'none', 'fedora-24-server', 'localhost', '1234', 'none') print("CREATED") client.kickstart.deleteProfile(key, 'ks-profile-test') print("DELETED") client.auth.logout(key) ==== 4. Cobbler sync is triggered every 1 minute, it should generate first uncaught org.hibernate.StaleStateException soon 5. All other taskomatic tasks will stop running soon fixed in spacewalk master: d41ffbf2abde6ad194c7683527d4ef483cb19c90 e312d95fbde47e718b5c2605066607594833ae08 FailedQA Tested this on sat57 with spacewalk-java-2.3.8-157 with reproducer from comment 4 and exactly the same errors are present in the log file. Based on discussion, switching back to ON_QA because we print catched exceptions into taskomatic log. The bug is fixed in SW and Sat5.7. The bug is not fixed at all in Sat5.8. The erratum introduces a new problem reproduced on our stable Sat5.7: After some time, the channel repodata cease being built. The channel-repodata bunch's status is "SKIPPED" indefinitely (it keeps refreshing every minute, though). This message is printed in /var/log/rhn/rhn_taskomatic_daemon.log every minute: *** INFO | jvm 1 | 2016/12/05 14:39:03 | 2016-12-05 14:39:03,434 [DefaultQuartzScheduler_Worker-5] WARN com.redhat.rhn.taskomatic.task.ChannelRepodata - Maximum number of workers already put ... skipping. *** After discussion with developers, I am verifying this BZ: - The bug is fixed - The newly found bug appears not to be a regression - The messages in log do not point to any change to worse - they just started to be visible in default configuration While there is still some bug present in Taskomatic causing tasks to stop, it is probably not caused by the erratum this bug is in. Also, it seems the state after applying the fix is much better. We are going to ship the erratum and make a separate bug for the issue. Verified with Sat 5.8, spacewalk-java-2.5.14-48, used reproducer from comment 4. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0236.html The follow-up bug is bug 1421674 |