Project

Profile

Help

Issue #7909

closed

Downloader map from repair feature contains only core downloaders

Added by ipanova@redhat.com over 3 years ago. Updated over 3 years ago.

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

Description

(pulp) [vagrant@pulp3-source-fedora32 ~]$ http POST :24817/pulp/api/v3/repositories/container/container/0a911015-c5e3-46ec-9320-4d0ce928725a/versions/1/repair/
HTTP/1.1 202 Accepted
Allow: POST, OPTIONS
Connection: close
Content-Length: 67
Content-Type: application/json
Date: Tue, 01 Dec 2020 13:33:00 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "task": "/pulp/api/v3/tasks/e6d7610f-bf4d-465c-8bc2-f5ccf86b4932/"
}

(pulp) [vagrant@pulp3-source-fedora32 ~]$ prestart
systemctl restart pulpcore-content pulpcore-worker@1 pulpcore-worker@2 pulpcore-resource-manager pulpcore-api
(pulp) [vagrant@pulp3-source-fedora32 ~]$ http GET :24817/pulp/api/v3/tasks/e6d7610f-bf4d-465c-8bc2-f5ccf86b4932/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 2739
Content-Type: application/json
Date: Tue, 01 Dec 2020 13:33:39 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [],
    "error": {
        "description": "401, message='Unauthorized', url=URL('https://registry-1.docker.io/v2/pulp/test-fixture-1/blobs/sha256:38d9ff8c3ba9299afb737027f926ebab2f9eb533f4b2c187a2ad5a4e8c57c8e1')",
        "traceback": "  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/rq/worker.py\", line 936, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/rq/job.py\", line 684, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/rq/job.py\", line 690, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py\", line 161, in repair_version\n    loop.run_until_complete(\n  File \"/usr/lib64/python3.8/asyncio/base_events.py\", line 616, in run_until_complete\n    return future.result()\n  File \"/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py\", line 137, in _repair_artifacts_for_content\n    await asyncio.gather(*pending)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py\", line 65, in _repair_ca\n    dl_result = await downloader.run()\n  File \"/home/vagrant/devel/pulpcore/pulpcore/download/base.py\", line 227, in run\n    return await self._run(extra_data=extra_data)\n  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/backoff/_async.py\", line 133, in retry\n    ret = await target(*args, **kwargs)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/download/http.py\", line 210, in _run\n    self.raise_for_status(response)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/download/http.py\", line 164, in raise_for_status\n    response.raise_for_status()\n  File \"/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/client_reqrep.py\", line 941, in raise_for_status\n    raise ClientResponseError(\n"
    },
    "finished_at": "2020-12-01T13:33:22.058966Z",
    "name": "pulpcore.app.tasks.repository.repair_version",
    "parent_task": null,
    "progress_reports": [
        {
            "code": "repair.repaired",
            "done": 0,
            "message": "Repair corrupted units",
            "state": "failed",
            "suffix": null,
            "total": null
        },
        {
            "code": "repair.corrupted",
            "done": 0,
            "message": "Identify corrupted units",
            "state": "failed",
            "suffix": null,
            "total": null
        },
        {
            "code": "repair.missing",
            "done": 1,
            "message": "Identify missing units",
            "state": "failed",
            "suffix": null,
            "total": null
        }
    ],
    "pulp_created": "2020-12-01T13:33:00.270072Z",
    "pulp_href": "/pulp/api/v3/tasks/e6d7610f-bf4d-465c-8bc2-f5ccf86b4932/",
    "reserved_resources_record": [
        "/pulp/api/v3/repositories/container/container/0a911015-c5e3-46ec-9320-4d0ce928725a/"
    ],
    "started_at": "2020-12-01T13:33:00.529611Z",
    "state": "failed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/57aadbed-d349-489a-a8e1-2d09f7f615c6/"
}

Also available in: Atom PDF