Project

Profile

Help

Issue #4412

Publish fails in case of lazy sync

Added by ttereshc over 1 year ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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 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

Related to Pulp - Test #4418: Publish lazy synced reposCLOSED - COMPLETE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 10a1c0fa View on GitHub
Added by ttereshc over 1 year ago

Fix publish for the on_demand sync case

closes #4412 https://pulp.plan.io/issues/4412

History

#1 Updated by ttereshc over 1 year ago

  • Description updated (diff)

#2 Updated by kersom over 1 year ago

  • Related to Test #4418: Publish lazy synced repos added

#3 Updated by ttereshc over 1 year ago

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

#4 Updated by ttereshc over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#5 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 49 to Sprint 50

#6 Updated by ttereshc over 1 year ago

  • Status changed from ASSIGNED to POST

#7 Updated by ttereshc over 1 year ago

  • Status changed from POST to MODIFIED

#8 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

#9 Updated by ttereshc 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF