Problem:
Since late september our rhel7 repos get errata updates which contain a pkglist
with packages that have an empty sum_type
attribute. This in turn makes pulp raise an exception while trying to publish the repo:
pulp [57a57e7b046d4ee78c52d32e6193df69]: pulpcore.tasking.tasks:INFO: Task 018b1e82-2f19-7bf4-944e-cb32e5833465 failed (Number expected!)
pulp [57a57e7b046d4ee78c52d32e6193df69]: pulpcore.tasking.tasks:INFO: File "/usr/lib/python3.9/site-packages/pulpcore/tasking/tasks.py", line 66, in _execute_task
result = func(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 386, in publish
generate_repo_metadata(
File "/usr/lib/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 590, in generate_repo_metadata
upd_xml.add_chunk(cr.xml_dump_updaterecord(update_record.to_createrepo_c()))
File "/usr/lib/python3.9/site-packages/pulp_rpm/app/models/advisory.py", line 187, in to_createrepo_c
rec.append_collection(collection.to_createrepo_c())
File "/usr/lib/python3.9/site-packages/pulp_rpm/app/models/advisory.py", line 322, in to_createrepo_c
col.append(package.to_createrepo_c())
File "/usr/lib/python3.9/site-packages/pulp_rpm/app/models/advisory.py", line 471, in to_createrepo_c
pkg.sum_type = self.sum_type
So far I have seen this in the RHEL7 base repo and optional
repo:
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/optional/os/
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/
One example of such an errata is RHBA-2014:0906
, but there are a lot more and all of them are from 2014. By removing all these erratas from the repository the publish works again, but next sync itâs the same problem.
Is there a way to exclude old erratas from sync? Or any other workaround for this problem?
Expected outcome:
I guess that publish should work by better error handling when getting the sum_type
attribute, or a way to sync without getting old erratas.
Pulpcore version:
python3-pulpcore-3.28.10-7.el9.noarch
Pulp plugins installed and their versions:
python3-pulp-rpm-3.22.3-1.el9.noarch
Operating system - distribution and version:
RHEL 9.2