Bug 1466229
Summary: | when there is a problem with specific errata parsing, rest of errata should be imported | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
Component: | Satellite Synchronization | Assignee: | Jan Dobes <jdobes> |
Status: | CLOSED ERRATA | QA Contact: | Jan Hutař <jhutar> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 580 | CC: | ggainey, ktordeur, lhellebr, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-backend-2.5.3-150-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-06 12:27:53 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: | 1450111 |
Description
Jan Hutař
2017-06-29 09:53:55 UTC
By adding `raise` to /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py to line 466 (might not be precise, I might have added more debug prints along the way): [...] except Exception: e = sys.exc_info()[1] log2(0, 0, "ERROR: %s" % e, stream=sys.stderr) log2disk(0, "ERROR: %s" % e) raise # pylint: disable=W0104 sync_error = -1 [...] this is the traceback: [...] 05:50:07 >>> RHSA-2017:1615 # <--- IMO this is the problematic errata 05:50:07 ERROR: cannot concatenate 'str' and 'NoneType' objects Traceback (most recent call last): File "/usr/bin/cdn-sync", line 220, in <module> sys.exc_info()[2]) File "/usr/bin/cdn-sync", line 164, in <module> error_messages = cdnsync.sync(channels=args.channel) File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/cdnsync.py", line 460, in sync cur_time, failed_packages = self._sync_channel(channel) File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/cdnsync.py", line 402, in _sync_channel return sync.sync() File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 452, in sync self.import_updates(plugin, url) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 535, in import_updates self.upload_updates(notices) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 749, in upload_updates refers_to += other['href'] Exception: SYNC ERROR: attempting to display as much information as possible cannot concatenate 'str' and 'NoneType' objects This is not reproducible anymore but your proposal - importing as many errata as possible if there are any faulty errata - makes sense. fixed in spacewalk.git(master): a8e29162cd2ef5fb2eb52ac7bbdb92d2d9793744 Reverified with spacewalk-backend-2.5.3-151 using channel http://download/qa/rhts/lookaside/RHN-Satellite/tests/bz1466229/ which has missing "href" in one reference: # cdn-sync -c rhel-x86_64-server-rh-common-7 -vvv [...] 09:16:43 Linking packages to channel. 09:16:44 Repo http://download/qa/rhts/lookaside/RHN-Satellite/tests/bz1466229//content/dist/rhel/server/7/7Server/x86_64/rh-common/os has comps file cb329cadcd7701d5b4f752e6ef8fbe7fe2bbc3a74b971d47c3ab3682c5e67121-comps.xml. 09:16:45 Repo http://download/qa/rhts/lookaside/RHN-Satellite/tests/bz1466229//content/dist/rhel/server/7/7Server/x86_64/rh-common/os has 40 errata. 09:16:45 No checksum found for rhel-guest-image-7-7.2-20160301.0.el7_2.noarch. Skipping Package 09:16:45 Skipped RHBA-2016:0356 - Advisory RHBA-2016:0356 skipped because of empty package list (filtered). 09:16:45 Skipped RHBA-2015:0040 - cannot concatenate 'str' and 'NoneType' objects 09:16:45 No checksum found for rhel-guest-image-7-7.0-20150127.0.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2015:0221 - Advisory RHBA-2015:0221 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.0-20140909.0.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2014:1267 - Advisory RHBA-2014:1267 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.0-20140506.1.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2014:0754 - Advisory RHBA-2014:0754 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.2-20160219.1.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2016:0295 - Advisory RHBA-2016:0295 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.2-20151102.0.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2015:2480 - Advisory RHBA-2015:2480 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.0-20140618.1.el7.noarch. Skipping Package 09:16:45 Skipped RHEA-2014:0817 - Advisory RHEA-2014:0817 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.1-20150224.0.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2015:0648 - Advisory RHBA-2015:0648 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.2-20160302.0.el7_2.noarch. Skipping Package 09:16:45 Skipped RHBA-2016:0522 - Advisory RHBA-2016:0522 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.0-20140930.0.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2014:1675 - Advisory RHBA-2014:1675 skipped because of empty package list (filtered). 09:16:45 No checksum found for rhel-guest-image-7-7.0-20140729.1.el7.noarch. Skipping Package 09:16:45 Skipped RHBA-2014:1043 - Advisory RHBA-2014:1043 skipped because of empty package list (filtered). 09:16:45 Syncing 28 new errata to channel. 09:16:46 Trying treeinfo [...] (40 errata, 11 without packages, 1 with broken metadata) # spacewalk-report errata-channels | grep common | wc -l 28 => The errata with correct metadata got indeed synced 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/RHSA-2017:2645 |