Project

Profile

Help

Issue #4165

closed

Batch iterates over mixed content causing AttributeError

Added by daviddavis over 5 years ago. Updated over 4 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.

Actions #1

Updated by daviddavis over 5 years ago

  • Status changed from NEW to POST
Actions #2

Updated by ttereshc over 5 years ago

  • Assignee set to daviddavis
Actions #3

Updated by daviddavis over 5 years ago

  • Project changed from RPM Support to Pulp
Actions #4

Updated by daviddavis over 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 46

Added by daviddavis over 5 years ago

Revision b2c7e296 | View on GitHub

Filtering the batch based on model type

fixes #4165 https://pulp.plan.io/issues/4165

Added by daviddavis over 5 years ago

Revision b2c7e296 | View on GitHub

Filtering the batch based on model type

fixes #4165 https://pulp.plan.io/issues/4165

Actions #5

Updated by daviddavis over 5 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc over 5 years ago

  • Sprint changed from Sprint 46 to Sprint 45
Actions #7

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #9

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF