Project

Profile

Help

Issue #1735

closed

Downloading the CentOS base repository fails with lazy and --verify-all

Added by jcline@redhat.com about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Trying to download the CentOS 7 base repository after it has been synced with `on_demand` results in

celery.worker.job:ERROR: (11904-06560) Task pulp.server.controllers.repository.download_repo[ce48455d-3b49-4685-9916-89001d8fdd15] raised unexpected: AttributeError("'PackageCategory' object has no attribute 'list_files'",)
celery.worker.job:ERROR: (11904-06560) Traceback (most recent call last):
celery.worker.job:ERROR: (11904-06560)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
celery.worker.job:ERROR: (11904-06560)     R = retval = fun(*args, **kwargs)
celery.worker.job:ERROR: (11904-06560)   File "/home/vagrant/devel/pulp/server/pulp/server/async/tasks.py", line 473, in __call__
celery.worker.job:ERROR: (11904-06560)     return super(Task, self).__call__(*args, **kwargs)
celery.worker.job:ERROR: (11904-06560)   File "/home/vagrant/devel/pulp/server/pulp/server/async/tasks.py", line 103, in __call__
celery.worker.job:ERROR: (11904-06560)     return super(PulpTask, self).__call__(*args, **kwargs)
celery.worker.job:ERROR: (11904-06560)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
celery.worker.job:ERROR: (11904-06560)     return self.run(*args, **kwargs)
celery.worker.job:ERROR: (11904-06560)   File "/home/vagrant/devel/pulp/server/pulp/server/controllers/repository.py", line 1184, in download_repo
celery.worker.job:ERROR: (11904-06560)     download_requests = _create_download_requests(missing_content_units)
celery.worker.job:ERROR: (11904-06560)   File "/home/vagrant/devel/pulp/server/pulp/server/controllers/repository.py", line 1238, in _create_download_requests
celery.worker.job:ERROR: (11904-06560)     for file_path in content_unit.list_files():
celery.worker.job:ERROR: (11904-06560) AttributeError: 'PackageCategory' object has no attribute 'list_files'

To reproduce:

  1. pulp-admin rpm repo create --repo-id=centos7 --download-policy=on_demand --serve-http=true --feed=http://ftp.linux.ncsu.edu/pub/CentOS/7/os/x86_64/
  2. pulp-admin rpm repo sync run --repo-id=centos7
  3. pulp-admin repo download --repo-id=centos7 --verify-all

Also available in: Atom PDF