Actions
Issue #4412
closedPublish fails in case of lazy sync
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 50
Quarter:
Description
At the moment RPM plugin relies on the rpms to be present on a filesystem.
It should be able to publish using metadata files available (primary, other, filelists).
Feb 12 20:21:54 pulp3 rq[13954]: pulp: rq.worker:ERROR: AttributeError: 'NoneType' object has no attribute 'file'
Feb 12 20:21:54 pulp3 rq[13954]: Traceback (most recent call last):
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 799, in perform_job
Feb 12 20:21:54 pulp3 rq[13954]: rv = job.perform()
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 600, in perform
Feb 12 20:21:54 pulp3 rq[13954]: self._result = self._execute()
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 606, in _execute
Feb 12 20:21:54 pulp3 rq[13954]: return self.func(*self.args, **self.kwargs)
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 132, in publish
Feb 12 20:21:54 pulp3 rq[13954]: pkg = cr.package_from_rpm(artifact.content_artifact.artifact.file.path)
Feb 12 20:21:54 pulp3 rq[13954]: AttributeError: 'NoneType' object has no attribute 'file'
Feb 12 20:21:54 pulp3 rq[13954]: Traceback (most recent call last):
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 799, in perform_job
Feb 12 20:21:54 pulp3 rq[13954]: rv = job.perform()
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 600, in perform
Feb 12 20:21:54 pulp3 rq[13954]: self._result = self._execute()
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 606, in _execute
Feb 12 20:21:54 pulp3 rq[13954]: return self.func(*self.args, **self.kwargs)
Feb 12 20:21:54 pulp3 rq[13954]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 132, in publish
Feb 12 20:21:54 pulp3 rq[13954]: pkg = cr.package_from_rpm(artifact.content_artifact.artifact.file.path)
Feb 12 20:21:54 pulp3 rq[13954]: AttributeError: 'NoneType' object has no attribute 'file'
Related issues
Updated by kersom almost 6 years ago
- Related to Test #4418: Publish lazy synced repos added
Updated by ttereshc almost 6 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 49
Updated by ttereshc over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Updated by ttereshc over 5 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc over 5 years ago
Updated by ttereshc over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset 10a1c0fa3a7fd0f99415600b348caaa6c3d0885c.
Updated by ttereshc almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix publish for the on_demand sync case
closes #4412 https://pulp.plan.io/issues/4412