Actions
Issue #5630
closedPublication creation fails after syncing http://mirror.centos.org/centos-6/6.10/os/x86_64/
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 61
Quarter:
Description
Publication creation fails when syncing the CentOS 6 or 7 repositories. I followed the instructions here besides changing the upstream url.
Traceback:
[vagrant@pulp3-devel-rpm foreman]$ http GET http://admin:password@localhost:24817/pulp/api/v3/tasks/57128153-81e4-42e1-a64c-a4ae17faa1a2/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 1407
Content-Type: application/json
Date: Mon, 28 Oct 2019 17:43:56 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"created_resources": [],
"error": {
"description": "[Errno 2] No such file or directory: '24b727ab5df8bb0a7a92bd0d1ddbb8e7dcb67234b579c8b3e9a6db876e695bfc-primary.xml.gz'",
"traceback": " File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 822, in perform_job\n rv = job.perform()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 605, in perform\n self._result = self._execute()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 611, in _execute\n return self.func(*self.args, **self.kwargs)\n File \"/usr/local/lib/pulp/src/pulp-rpm/pulp_rpm/app/tasks/publishing.py\", line 260, in publish\n create_rempomd_xml(packages, publication, extra_repomdrecords, name)\n File \"/usr/local/lib/pulp/src/pulp-rpm/pulp_rpm/app/tasks/publishing.py\", line 378, in create_rempomd_xml\n file=File(open(os.path.basename(path), 'rb'))\n"
},
"finished_at": "2019-10-28T17:43:50.659996Z",
"name": "pulp_rpm.app.tasks.publishing.publish",
"parent": null,
"progress_reports": [],
"pulp_created": "2019-10-28T17:43:10.247063Z",
"pulp_href": "/pulp/api/v3/tasks/57128153-81e4-42e1-a64c-a4ae17faa1a2/",
"reserved_resources_record": [
"/pulp/api/v3/repositories/25bfea54-7ee3-4c7d-869c-e9d8777fc1ae/"
],
"spawned_tasks": [],
"started_at": "2019-10-28T17:43:10.387835Z",
"state": "failed",
"worker": "/pulp/api/v3/workers/cc3d1865-db3a-4bd6-a45b-975b0dac1263/"
}
Actions
Fixing publication for sub repos
Publication was raising errors for sub repos, because it couldn't find the file due to wrong path https://pulp.plan.io/issues/5630 closes #5630