Project

Profile

Help

Issue #7128

Python Publications can't be created if the synced content is on_demand

Added by gerrod 5 months ago. Updated 5 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
Platform Release:
Target Release - Python:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Steps I followed to find the issue

  1. Create an empty python repository
  2. Create a remote with one or more packages in include (I used shelf-reader) and have policy be on_demand
  3. Sync repo with remote
  4. Try to create publication with latest repo version

I got the following error traceback:

"description": "'NoneType' object has no attribute 'sha256'",
        "traceback": "  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py\", line 886, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 664, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 670, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulp_python/pulp_python/app/tasks/publish.py\", line 65, in publish\n    write_simple_api(publication)\n  File \"/home/vagrant/devel/pulp_python/pulp_python/app/tasks/publish.py\", line 128, in write_simple_api\n    checksum = content_artifact.artifact.sha256\n"


Related issues

Related to Python Support - Test #4748: Improve Publications functional testsNEW<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 2fd5c019 View on GitHub
Added by gerrod 5 months ago

Fixed 'on_demand' content publishing bug

Content that was synced through the 'on_demand' policy can now be published. Added accompaning functional test to test_crud_publications

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

History

#1 Updated by gerrod 5 months ago

  • Related to Test #4748: Improve Publications functional tests added

#2 Updated by gerrod 5 months ago

  • Status changed from NEW to MODIFIED

Please register to edit this issue

Also available in: Atom PDF