Project

Profile

Help

Issue #4165

Batch iterates over mixed content causing AttributeError

Added by daviddavis 11 months ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 45

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.

Associated revisions

Revision b2c7e296 View on GitHub
Added by daviddavis 11 months ago

Filtering the batch based on model type

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

Revision b2c7e296 View on GitHub
Added by daviddavis 11 months ago

Filtering the batch based on model type

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

Revision b2c7e296 View on GitHub
Added by daviddavis 11 months ago

Filtering the batch based on model type

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

History

#1 Updated by daviddavis 11 months ago

  • Status changed from NEW to POST

#2 Updated by ttereshc 11 months ago

  • Assignee set to daviddavis

#3 Updated by daviddavis 11 months ago

  • Project changed from RPM Support to Pulp

#4 Updated by daviddavis 11 months ago

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

#5 Updated by daviddavis 11 months ago

  • Status changed from POST to MODIFIED

#6 Updated by ttereshc 11 months ago

  • Sprint changed from Sprint 46 to Sprint 45

#7 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#8 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF