Project

Profile

Help

Issue #1064

rpm repo group distributor requires undocumented _repo-type key to be present in repo.notes dict

Added by mkovacik@redhat.com almost 5 years ago. Updated about 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
2.6.2 Beta
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

if the _repo-type key isn't present in repo.notes of particular repo, following error can be seen when a repo group containing this repo gets published:

Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608) Task pulp.server.managers.repo.group.publish.publish[464b1afb-2d38-4777-9fb7-dd5837adcf0d] raised unexpected: KeyError('_repo-type',)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608) Traceback (most recent call last):
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     R = retval = fun(*args, **kwargs)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 328, in __call__
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     return super(Task, self).__call__(*args, **kwargs)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     return self.run(*args, **kwargs)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/group/publish.py", line 73, in publish
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     conduit, call_config)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/group/publish.py", line 85, in _do_publish
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     report = distributor_instance.publish_group(group, conduit, call_config)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/export_distributor/groupdistributor.py", line 110, in publish_group
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     ids.TYPE_ID_DISTRIBUTOR_GROUP_EXPORT)
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 194, in __init__
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608)     if repo.notes['_repo-type'] != 'rpm-repo':
Jun 18 07:58:25 ip-172-31-24-137 pulp: celery.worker.job:ERROR: (5962-96608) KeyError: '_repo-type'

However, the documentation doesn't mention that the _repo-type attribute is required for group distributor.

History

#1 Updated by bmbouter almost 5 years ago

  • Triaged changed from No to Yes

#2 Updated by bmbouter about 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#3 Updated by bmbouter about 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF