Project

Profile

Help

Issue #1287

closed

Repo sync failing with KeyError

Added by XenoPhage over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.6.2 Beta
Platform Release:
2.11.1
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 13
Quarter:

Description

Greetings,

I'm using Pulp with foreman and katello to sync a number of repos. One of those repos is the gitlab repo located here :

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

The repo continually fails to sync, giving this error in the logs :

Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) <bound method ContainerListener.download_succeeded of <pulp_rpm.plugins.importers.yum.repomd.alternate.ContainerListener object at 0x425ddd0>>
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) Traceback (most recent call last):
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/container.py", line 148, in _forward
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) method(request)
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/alternate.py", line 126, in download_succeeded
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) self.content_listener.download_succeeded(report)
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/listener.py", line 79, in download_succeeded
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) self.metadata_files.add_repodata(model)
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/metadata.py", line 327, in add_repodata
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) raw_xml = db_file[db_key]
Sep 30 12:22:14 katello pulp: pulp.server.content.sources.container:ERROR: (11499-77664) KeyError: 'arch:x86_64::epoch:0::name:gitlab-ce::release:1::version:7.10.1~omnibus.2'

It was suggested in the #foreman IRC channel that tildes may be the cause of this problem. I'm marking this as a pulp 2.6.2 install, but I'm not entirely certain. rpm suggests 2.6.2 based on package names.


Related issues

Has duplicate Pulp - Issue #2003: Pulp will not sync RPM files hosted using "packagecloud".CLOSED - DUPLICATEActions
Has duplicate RPM Support - Issue #1932: More gracefully handle KeyError when an rpm has no data in filelists.xml nor in other.xmlCLOSED - DUPLICATEActions

Also available in: Atom PDF