Project

Profile

Help

Test #4752

closed

Test sync in case when registry does not provide scope in the response headers

Added by kersom over 5 years ago. Updated almost 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Platform Release:
Tags:
Sprint:
Quarter:

Description

$ http GET :8000/pulp/api/v3/tasks/e881628c-6eb3-4f93-87e4-b700b2a70827/
HTTP/1.1 200 OK
Allow: GET, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 3007
Content-Type: application/json
Date: Mon, 15 Apr 2019 14:33:19 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_created": "2019-04-15T14:33:09.988597Z",
    "_href": "/pulp/api/v3/tasks/e881628c-6eb3-4f93-87e4-b700b2a70827/",
    "created_resources": [],
    "error": {
        "code": null,
        "description": "401, message='UNAUTHORIZED'",
        "traceback": "  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py\", line 799, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 600, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 606, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulp_docker/pulp_docker/app/tasks/synchronize.py\", line 48, in synchronize\n    dv.create()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/declarative_version.py\", line 169, in create\n    loop.run_until_complete(pipeline)\n  File \"/usr/lib64/python3.7/asyncio/base_events.py\", line 568, in run_until_complete\n    return future.result()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/api.py\", line 209, in create_pipeline\n    await asyncio.gather(*futures)\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/stages/api.py\", line 43, in __call__\n    await self.run()\n  File \"/home/vagrant/devel/pulp_docker/pulp_docker/app/tasks/sync_stages.py\", line 52, in run\n    await list_downloader.run()\n  File \"/home/vagrant/devel/pulpcore-plugin/pulpcore/plugin/download/base.py\", line 212, in run\n    return await self._run(extra_data=extra_data)\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/backoff/_async.py\", line 131, in retry\n    ret = await target(*args, **kwargs)\n  File \"/home/vagrant/devel/pulp_docker/pulp_docker/app/downloaders.py\", line 67, in _run\n    return await self._run(handle_401=False)\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/backoff/_async.py\", line 131, in retry\n    ret = await target(*args, **kwargs)\n  File \"/home/vagrant/devel/pulp_docker/pulp_docker/app/downloaders.py\", line 56, in _run\n    response.raise_for_status()\n  File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/aiohttp/client_reqrep.py\", line 942, in raise_for_status\n    headers=self.headers)\n"
    },
    "finished_at": "2019-04-15T14:33:12.678060Z",
    "name": "pulp_docker.app.tasks.synchronize.synchronize",
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [
        {
            "done": 0,
            "message": "Downloading tag list",
            "state": "failed",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/e881628c-6eb3-4f93-87e4-b700b2a70827/",
            "total": 1
        },
        {
            "done": 0,
            "message": "Downloading Artifacts",
            "state": "canceled",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/e881628c-6eb3-4f93-87e4-b700b2a70827/",
            "total": null
        },
        {
            "done": 0,
            "message": "Associating Content",
            "state": "canceled",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/e881628c-6eb3-4f93-87e4-b700b2a70827/",
            "total": null
        }
    ],
    "spawned_tasks": [],
    "started_at": "2019-04-15T14:33:10.059034Z",
    "state": "failed",
    "worker": "/pulp/api/v3/workers/69588a82-96cb-4cc5-b5b3-2f4d53568ac3/"
}

see pulp2 issue https://pulp.plan.io/issues/3573 for more info


Related issues

Related to Container Support - Issue #4685: Enable sync in case when registry does not provide scope in the response headersCLOSED - CURRENTRELEASEipanova@redhat.comActions

Also available in: Atom PDF