Project

Profile

Help

Issue #4165

closed

Batch iterates over mixed content causing AttributeError

Added by daviddavis about 6 years ago. Updated almost 5 years ago.

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

Description

We're seeing the following error in pulp_rpm:

Nov 15 21:28:11 pulp3 rq[10667]: Traceback (most recent call last):
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 793, in perform_job
Nov 15 21:28:11 pulp3 rq[10667]:     rv = job.perform()
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 599, in perform
Nov 15 21:28:11 pulp3 rq[10667]:     self._result = self._execute()
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 605, in _execute
Nov 15 21:28:11 pulp3 rq[10667]:     return self.func(*self.args, **self.kwargs)
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 69, in synchronize
Nov 15 21:28:11 pulp3 rq[10667]:     loop.run_until_complete(pipeline)
Nov 15 21:28:11 pulp3 rq[10667]:   File "/usr/lib64/python3.6/asyncio/base_events.py", line 468, in run_until_complete
Nov 15 21:28:11 pulp3 rq[10667]:     return future.result()
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/api.py", line 129, in create_pipeline
Nov 15 21:28:11 pulp3 rq[10667]:     await asyncio.gather(*futures)
Nov 15 21:28:11 pulp3 rq[10667]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/content_unit_stages.py", line 58, in __call__
Nov 15 21:28:11 pulp3 rq[10667]:     in_memory_digest_value = getattr(declarative_content.content, field)
Nov 15 21:28:11 pulp3 rq[10667]: AttributeError: 'Package' object has no attribute 'digest'

The digest field is declared on the UpdateRecord content model.

Also available in: Atom PDF