Bug 1735715
| Summary: | cdn-sync fails with LOB variable no longer valid after subsequent fetch | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Kenny Tordeurs <ktordeur> | ||||
| Component: | Other | Assignee: | Michael Mráka <mmraka> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 580 | CC: | rdrazny, saime, tlestach | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | spacewalk-backend-2.5.3-178-sat | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-09-18 02:49:47 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: | |||||||
| Attachments: |
|
||||||
|
Description
Kenny Tordeurs
2019-08-01 10:18:20 UTC
I have tested these changes on my instance with Oracle Release 12.2.0.1.0 and was still able to perform cdn-sync and check the certs info. I put them into patch files for easier usage. One can apply/revert the patches with: # patch -d /usr/lib/python2.6/site-packages/spacewalk/cdn_tools/ -p7 < cdnsync.patch # patch -d /usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/ -p8 < init_base.patch # patch -d /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/ -p7 < reposync.patch Restart the Satellite services: # rhn-satellite restart Created attachment 1599527 [details]
patches
cdnsync.patch init_base.patch reposync.patch
Fixed in upstream spacewalk git by
commit ad8c90e80a4ae1a6393854f0826b33c94c962500
1735715 - read LOBs explicitly
Verified with spacewalk-backend-2.5.3-178.el6sat.noarch using the reproducer from the initial report and using the script from comment #5. cdn-sync --cdn-certs successfully shows the list of certificate keys. cdn-sync was able to sync channels without any issues. VERIFIED 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://access.redhat.com/errata/RHBA-2019:2783 |