Project

Profile

Help

Issue #4685

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

Added by ipanova@redhat.com 7 months ago. Updated about 9 hours ago.

Status:
MODIFIED
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 51

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 - Test #4752: Test sync in case when registry does not provide scope in the response headers NEW Actions

Associated revisions

Revision 3ed72dc4 View on GitHub
Added by ipanova@redhat.com 7 months ago

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

closes #4685
https://pulp.plan.io/issues/4685

Revision 3ed72dc4 View on GitHub
Added by ipanova@redhat.com 7 months ago

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

closes #4685
https://pulp.plan.io/issues/4685

History

#1 Updated by bmbouter 7 months ago

  • Tags Pulp 3 added

#2 Updated by ipanova@redhat.com 7 months ago

  • Status changed from NEW to POST
  • Assignee set to ipanova@redhat.com
  • Triaged changed from No to Yes
  • Sprint set to Sprint 51

#3 Updated by ipanova@redhat.com 7 months ago

  • Status changed from POST to MODIFIED

Applied in changeset commit:pulp_docker|3ed72dc4881ae191f195d82a111ad372fb191aad.

#4 Updated by ipanova@redhat.com 7 months ago

Applied in changeset commit:3ed72dc4881ae191f195d82a111ad372fb191aad.

#5 Updated by bmbouter 7 months ago

  • Tags deleted (Pulp 3)

#6 Updated by kersom 7 months ago

  • Related to Test #4752: Test sync in case when registry does not provide scope in the response headers added

#7 Updated by ipanova@redhat.com about 9 hours ago

  • Project changed from Docker Support to Container Support

Please register to edit this issue

Also available in: Atom PDF