Project

Profile

Help

Issue #4412

closed

Publish fails in case of lazy sync

Added by ttereshc about 5 years ago. Updated over 4 years 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 - COMPLETEkersomActions
Actions #1

Updated by ttereshc about 5 years ago

  • Description updated (diff)
Actions #2

Updated by kersom about 5 years ago

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

Updated by ttereshc about 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 49
Actions #4

Updated by ttereshc about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc
Actions #5

Updated by rchan about 5 years ago

  • Sprint changed from Sprint 49 to Sprint 50
Actions #6

Updated by ttereshc about 5 years ago

  • Status changed from ASSIGNED to POST

Added by ttereshc about 5 years ago

Revision 10a1c0fa | View on GitHub

Fix publish for the on_demand sync case

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

Actions #7

Updated by ttereshc about 5 years ago

  • Status changed from POST to MODIFIED
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #9

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF