Project

General

Profile

Bug #19348

Repo sync failing with KeyError with the gitlab repo

Added by Mario Gamboa about 5 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Repo sync failing with KeyError

I'm using Pulp with foreman and katello to sync repo of gitlab and i get the following.

https://packages.gitlab.com/gitlab/gitlab-ce/el/7/x86_64

Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) Listener error on event: succeeded
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) Traceback (most recent call last):
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/event.py", line 39, in call
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) listener.on_event(self)
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/event.py", line 135, in on_event
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) method(event.request)
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/alternate.py", line 119,
in on_succeeded
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) self.content_listener.download_succeeded(report)
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/listener.py", line 201, in download_succeeded
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) added_unit = self.sync.add_rpm_unit(self.metadata_files, unit)
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 587, in add_rpm_unit
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) metadata_files.add_repodata(unit)
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/metadata.py", line 338, in add_repodata
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) raw_xml = db_file[db_key]
Apr 21 15:07:29 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-88512) KeyError: '\xff\xff\xff\xff\xf0A\xdd\x05'
Apr 21 15:07:30 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-67840) Listener error on event: succeeded
Apr 21 15:07:30 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-67840) Traceback (most recent call last):
Apr 21 15:07:30 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-67840) File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/event.py", line 39, in call
Apr 21 15:07:30 satellite pulp: pulp.server.content.sources.event:ERROR: (4477-67840) listener.on_event(self)

i found the following bug fixed but i don't see it in the code of Katello 3.1
https://pulp.plan.io/issues/1287

History

#1 Updated by Mario Gamboa about 5 years ago

  • Priority changed from Normal to High

#2 Updated by Justin Sherrill almost 5 years ago

  • Legacy Backlogs Release (now unused) deleted (184)

#3 Updated by Eric Helms almost 5 years ago

  • Status changed from New to Resolved
  • Legacy Backlogs Release (now unused) set to 166

Current upstream releases have at least Pulp 2.11.1 in which this issue was fixed. Please upgrade to latest release for this fix.

Also available in: Atom PDF