Actions
Issue #7128
closedPython Publications can't be created if the synced content is on_demand
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
Platform Release:
3.0.0
Target Release - Python:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Steps I followed to find the issue
- Create an empty python repository
- Create a remote with one or more packages in include (I used shelf-reader) and have policy be on_demand
- Sync repo with remote
- 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
Actions
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