Project

Profile

Help

Issue #1064

closed

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

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

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.2 Beta
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

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.

Also available in: Atom PDF